Microscope tube focusing method, device, equipment and medium in cell morphology detection
In the microscopic cell morphology detection, the focus surface of the RBC cavity is used as a reference to focus the WBC cavity and the PLT cavity, and 9 grid pictures are taken at multiple points, which solves the blur problem caused by long focus time and uneven counting plates in the prior art, and achieves efficient focus and clear photo quality.
Patent Information
- Application Number
- CN202510304886.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-14
- Publication Date
- 2025-06-13
AI Technical Summary
The existing focusing method in microscopic cell morphology detection needs to repeat the coarse focus range after focusing on the RBC cavity, resulting in a long focus time. Due to the uneven counting plate, fine focus is prone to errors, which affects the clarity of the photo and the calculation of red blood cell MCV.
A microscope cylinder focusing method is provided. By performing thick focus and thin focus on the RBC cavity, the focus surface of the RBC cavity is determined; then, using the focus surface of the RBC cavity as the reference, the WBC cavity and PLT cavity are subjected to thick focus on the WBC cavity and PLT cavity to reduce the number of times of thick focus on the WBC cavity and PLT cavity, and by taking 9 grid pictures at multiple points, the blur problem caused by uneven counting plates is solved.
It effectively reduces the number of times the WBC cavity and PLT cavity is thicker, improves the focus efficiency, and solves the blur problem caused by uneven counting plates, reducing the fine focus time.
Smart Images

Figure CN120143433A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of focusing, and particularly relates to a microscope barrel focusing method, device, equipment and medium in cell morphology detection. Background Art
[0002] In microscope cell morphology detection, the detection of RBC, WBC, and PLT are the detections of the three most basic cell components in blood. Among them, RBC is the abbreviation of Red Blood Cell, and its Chinese meaning is red blood cell; WBC is the abbreviation of White Blood Cell, and its Chinese meaning is white blood cell; PLT is the abbreviation of Platelet, and its Chinese meaning is platelet.
[0003] In the existing microscope barrel focusing method in microscope cell morphology detection, after focusing on the RBC (red blood cell) cavity, the WBC (white blood cell) cavity and the PLT (platelet) cavity both need to repeat the rough focusing range, resulting in a longer focusing time. In addition, due to the unevenness of the counting plate and the unevenness of the platform with a small probability, the fine focusing is prone to focus errors, resulting in blurred and haloed photos, which seriously affects the calculation of the mean corpuscular volume (MCV) of red blood cells. Summary of the Invention
[0004] The embodiments of the present invention provide a microscope barrel focusing method, device, equipment and medium in cell morphology detection, aiming to solve at least one of the technical problems in the above background art.
[0005] In a first aspect, the embodiments of the present invention provide a microscope barrel focusing method in cell morphology detection, which includes:
[0006] Performing a first preset number of rough focusings on the RBC cavity, and determining the surface with the maximum clarity in the rough focusing of the RBC cavity as the first rough focusing surface;
[0007] Taking the first rough focusing surface as a reference, performing a second preset number of fine focusings on the RBC cavity to determine the first fine focusing surface of the RBC cavity;
[0008] Taking the first rough focusing surface as a reference, performing a third preset number of rough focusings on the WBC cavity, and determining the surface with the maximum clarity in the rough focusing of the WBC cavity as the second rough focusing surface;
[0009] Taking the second rough focusing surface as a reference, performing a fourth preset number of fine focusings on the WBC cavity to determine the second fine focusing surface of the WBC cavity;
[0010] Taking the first rough focus plane as a reference, perform a fifth preset number of rough foci on the PLT cavity, and determine the plane with the maximum clarity in the rough focus of the PLT cavity as the third rough focus plane;
[0011] Taking the third rough focus plane as a reference, perform a sixth preset number of fine foci on the PLT cavity to determine the third fine focus plane of the PLT cavity.
[0012] A further technical solution thereof is that taking the first rough focus plane as a reference, performing a second preset number of fine foci on the RBC cavity to determine the first fine focus plane of the RBC cavity includes:
[0013] Perform curve fitting on the focusing results of performing a second preset number of fine foci on the RBC cavity to obtain a clarity curve, where the abscissa of the clarity curve is the focusing distance and the ordinate is the clarity value;
[0014] Judge whether there is a clarity peak in the clarity curve;
[0015] If there is a clarity peak in the clarity curve, judge whether the maximum value of the clarity curve is at the position of the largest clarity peak;
[0016] If the maximum value of the clarity curve is at the position of the largest clarity peak, judge whether the number of clarity peaks is multiple;
[0017] If the number of clarity peaks is multiple, then judge whether the difference between the largest clarity peak and the second largest clarity peak is greater than a preset difference threshold;
[0018] If the difference between the largest clarity peak and the second largest clarity peak is less than the preset difference threshold, then select the focusing plane of the clarity peak with the smaller abscissa among the largest clarity peak and the second largest clarity peak as the first fine focus plane.
[0019] A further technical solution thereof is that taking the first rough focus plane as a reference, performing a second preset number of fine foci on the RBC cavity to determine the first fine focus plane of the RBC cavity further includes:
[0020] If the difference between the largest clarity peak and the second largest clarity peak is not less than the preset difference threshold, then select the focusing plane of the largest clarity peak as the first fine focus plane.
[0021] A further technical solution thereof is that taking the first rough focus plane as a reference, performing a second preset number of fine foci on the RBC cavity to determine the first fine focus plane of the RBC cavity further includes:
[0022] If the number of the clarity peaks is one, the focusing plane of the clarity peak is taken as the first fine focusing plane.
[0023] A further technical solution thereof is that, based on the first coarse focusing plane, performing a second preset number of fine focusings on the RBC cavity to determine the first fine focusing plane of the RBC cavity, further including:
[0024] If the maximum value of the clarity curve is not at the position of the largest clarity peak, determining whether the value of the largest clarity peak is greater than 0.4 times the maximum value of the clarity curve, and whether the abscissa of the largest clarity peak is smaller than the abscissa of the maximum value of the clarity curve;
[0025] If the value of the largest clarity peak is greater than 0.4 times the maximum value of the clarity curve, and the abscissa of the largest clarity peak is smaller than the abscissa of the maximum value of the clarity curve, then the focusing plane of the largest clarity peak is selected as the first fine focusing plane.
[0026] A further technical solution thereof is that, based on the first coarse focusing plane, performing a second preset number of fine focusings on the RBC cavity to determine the first fine focusing plane of the RBC cavity, further including:
[0027] If the clarity curve has no clarity peak, the focusing plane corresponding to the maximum value of the clarity curve is taken as the first fine focusing plane.
[0028] A further technical solution thereof is that after determining the first fine focusing plane of the RBC cavity, the method further includes:
[0029] Based on the first fine focusing plane, taking multiple RBC photos and displaying the multiple RBC photos in an array manner; wherein, the shooting positions of the respective RBC photos are different;
[0030] After determining the second fine focusing plane of the WBC cavity, the method further includes:
[0031] Based on the second fine focusing plane, taking multiple WBC photos and displaying the multiple WBC photos in an array manner; wherein, the shooting positions of the respective WBC photos are different;
[0032] After determining the second fine focusing plane of the PLT cavity, the method further includes:
[0033] Based on the second fine focusing plane, taking multiple PLT photos and displaying the multiple PLT photos in an array manner; wherein, the shooting positions of the respective PLT photos are different.
[0034] In a second aspect, an embodiment of the present invention further provides a focusing device for a microscope barrel in cell morphology detection, which includes a unit for performing the above method.
[0035] In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor. A computer program is stored on the memory, and when the processor executes the computer program, the above method is implemented.
[0036] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium. The storage medium stores a computer program, and when the computer program is executed by a processor, the above method can be implemented.
[0037] An embodiment of the present invention provides a method, device, equipment and medium for focusing a microscope barrel in cell morphology detection. Among them, the method includes: performing a first preset number of rough focusings on the RBC cavity, and determining the surface with the maximum clarity in the rough focusing of the RBC cavity as the first rough focusing surface; based on the first rough focusing surface, performing a second preset number of fine focusings on the RBC cavity to determine the first fine focusing surface of the RBC cavity; based on the first rough focusing surface, performing a third preset number of rough focusings on the WBC cavity, and determining the surface with the maximum clarity in the rough focusing of the WBC cavity as the second rough focusing surface; based on the second rough focusing surface, performing a fourth preset number of fine focusings on the WBC cavity to determine the second fine focusing surface of the WBC cavity; based on the first rough focusing surface, performing a fifth preset number of rough focusings on the PLT cavity, and determining the surface with the maximum clarity in the rough focusing of the PLT cavity as the third rough focusing surface; based on the third rough focusing surface, performing a sixth preset number of fine focusings on the PLT cavity to determine the third fine focusing surface of the PLT cavity. In the present invention, based on the second rough focusing surface determined for the RBC cavity, rough focusing is performed on the WBC cavity and the PLT cavity, which can effectively reduce the number of rough focusings on the WBC cavity and the PLT cavity and improve the focusing efficiency.
[0038] Furthermore, by taking 9-grid pictures at multiple different points on the platform, not only can the blurring phenomenon caused by the uneven counting plate be solved, but also the time for fine focusing can be greatly reduced. Description of the Drawings
[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly introduced below. Obviously, the drawings below are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0040] Figure 1Schematic flowchart of a microscope barrel focusing method in cell morphology detection provided by an embodiment of the present invention;
[0041] Figure 2 Schematic diagram showing a picture presented in a 9 - grid format for the microscope barrel focusing method in cell morphology detection provided by an embodiment of the present invention;
[0042] Figure 3 Schematic block diagram of a computer device provided by an embodiment of the present invention. Detailed implementation manners
[0043] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present invention.
[0044] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprise" indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.
[0045] It should also be understood that the terms used in this specification of the present invention are merely for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in this specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an", and "the" are intended to include the plural forms.
[0046] It should be further understood that the term "and / or" used in this specification of the present invention and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0047] As used in this specification and the appended claims, the term "if" can be interpreted as "when", "once", "in response to determining", or "in response to detecting" according to the context. Similarly, the phrase "if determined" or "if [the described condition or event] is detected" can be interpreted as meaning "once determined", "in response to determining", "once [the described condition or event] is detected", or "in response to detecting [the described condition or event]" according to the context.
[0048] Please refer to Figure 1 , an embodiment of the present invention proposes a microscope barrel focusing method in cell morphology detection, as Figure 1As shown, the method includes the following steps:
[0049] S1, perform a first preset number of rough focusings on the RBC chamber, and determine the surface with the maximum clarity in the rough focusing of the RBC chamber as the first rough focusing surface.
[0050] In specific implementation, RBC refers to red blood cells, and the RBC chamber refers to the sample chamber of red blood cells for placing red blood cell samples. The first preset number can be set by those skilled in the art. For example, it can be set to 76 times, and the present invention does not specifically limit this. It can be understood that multiple rough focusings can be achieved by adjusting the focusing distance. The distance adjusted each time can be set by those skilled in the art, and the present application does not specifically limit this. Different from fine focusing, when performing rough focusing, the value of the adjusted focusing distance is relatively large. The focusing distance can be adjusted through the Z-axis motor of the microscope tube.
[0051] Further, after multiple rough focusings are completed, determine the surface with the maximum clarity in the rough focusing of the RBC chamber as the first rough focusing surface.
[0052] S2, taking the first rough focusing surface as a reference, perform a second preset number of fine focusings on the RBC chamber to determine the first fine focusing surface of the RBC chamber.
[0053] In specific implementation, with the first rough focusing surface as the center, adjust the focusing distance up and down to perform a second preset number of fine focusings on the RBC chamber. The second preset number can be set by those skilled in the art. For example, it can be set to 4 times. Each time of fine focusing, 14 motor movements are performed to find the surface with the maximum clarity value, and the present invention does not specifically limit this. It can be understood that multiple fine focusings can be achieved by adjusting the focusing distance. The distance adjusted each time can be set by those skilled in the art, and the present application does not specifically limit this. Different from rough focusing, when performing fine focusing, the value of the adjusted focusing distance is relatively small.
[0054] Further, based on the results of multiple fine focusings, determine the first fine focusing surface of the RBC chamber.
[0055] For example, in some embodiments, such as this embodiment, the above step "taking the first rough focusing surface as a reference, perform a second preset number of fine focusings on the RBC chamber to determine the first fine focusing surface of the RBC chamber" specifically includes:
[0056] S21, perform curve fitting on the focusing results of the second preset number of fine focusings on the RBC chamber to obtain a clarity curve, where the abscissa of the clarity curve is the focusing distance and the ordinate is the clarity value.
[0057] In specific implementation, with the focusing distance as the abscissa and the clarity value as the ordinate, curve fitting is performed on the focusing results of the second preset number of fine focusings on the RBC cavity to obtain a clarity curve.
[0058] S22, determine whether there is a clarity peak in the clarity curve.
[0059] In specific implementation, determining whether there is a clarity peak in the clarity curve, that is, a local maximum value.
[0060] S23, if there is a clarity peak in the clarity curve, determine whether the maximum value of the clarity curve is at the position of the largest clarity peak.
[0061] In specific implementation, if there is a clarity peak in the clarity curve, determine whether the maximum value of the clarity curve is at the position of the largest clarity peak.
[0062] That is, when there is a clarity peak, determine whether the value of the largest clarity peak is the maximum value of the clarity curve.
[0063] S24, if the maximum value of the clarity curve is at the position of the largest clarity peak, determine whether the number of clarity peaks is multiple.
[0064] In specific implementation, if the maximum value of the clarity curve is at the position of the largest clarity peak, determine whether the number of clarity peaks is multiple.
[0065] S25, if the number of clarity peaks is multiple, then determine whether the difference between the largest clarity peak and the second largest clarity peak is greater than a preset difference threshold.
[0066] In specific implementation, if the number of clarity peaks is multiple, then determine whether the difference between the largest clarity peak and the second largest clarity peak is greater than a preset difference threshold.
[0067] Specifically, in this embodiment, the difference threshold is set to 0.4 times the largest clarity peak. Those skilled in the art can also set it to other values according to actual needs. The present invention does not specifically limit this.
[0068] S26, if the difference between the largest clarity peak and the second largest clarity peak is less than the preset difference threshold, then select the focusing plane of the clarity peak with the smaller abscissa among the largest clarity peak and the second largest clarity peak as the first fine focusing plane.
[0069] In specific implementation, if the difference between the largest sharpness peak and the second largest sharpness peak is less than a preset difference threshold, then among the largest sharpness peak and the second largest sharpness peak, select the focal plane of the sharpness peak with a smaller abscissa as the first fine focal plane. That is, select the focal plane of the sharpness peak with a smaller focusing distance as the first fine focal plane.
[0070] S27. If the difference between the largest sharpness peak and the second largest sharpness peak is not less than the preset difference threshold, then select the focal plane of the largest sharpness peak as the first fine focal plane.
[0071] In specific implementation, if the difference between the largest sharpness peak and the second largest sharpness peak is not less than the preset difference threshold, then select the focal plane of the largest sharpness peak as the first fine focal plane.
[0072] S28. If the number of the sharpness peaks is one, use the focal plane of this sharpness peak as the first fine focal plane.
[0073] In specific implementation, if the number of the sharpness peaks is one, use the focal plane of this sharpness peak as the first fine focal plane. That is, if there is only one sharpness peak and the maximum value of the sharpness curve is at the position of this sharpness peak, then use the focal plane of this sharpness peak as the first fine focal plane.
[0074] S29. If the maximum value of the sharpness curve is not at the position of the largest sharpness peak, determine whether the value of the largest sharpness peak is greater than 0.4 times the maximum value of the sharpness curve, and whether the abscissa of the largest sharpness peak is smaller than the abscissa of the maximum value of the sharpness curve.
[0075] In specific implementation, if the maximum value of the sharpness curve is not at the position of the largest sharpness peak, the following two-step judgment is carried out: First, determine whether the value of the largest sharpness peak is greater than 0.4 times the maximum value of the sharpness curve, and further determine whether the abscissa of the largest sharpness peak is smaller than the abscissa of the maximum value of the sharpness curve.
[0076] S210. If the value of the largest sharpness peak is greater than 0.4 times the maximum value of the sharpness curve, and the abscissa of the largest sharpness peak is smaller than the abscissa of the maximum value of the sharpness curve, then select the focal plane of the largest sharpness peak as the first fine focal plane.
[0077] In specific implementation, if the value of the largest sharpness peak is greater than 0.4 times the maximum value of the sharpness curve, and the abscissa of the largest sharpness peak is smaller than the abscissa of the maximum value of the sharpness curve, then select the focal plane of the largest sharpness peak as the first fine focal plane; otherwise, select the focal plane of the maximum value of the sharpness curve as the first fine focal plane.
[0078] S211, if there is no sharpness peak in the sharpness curve, the focusing plane corresponding to the maximum value of the sharpness curve is taken as the first fine focusing plane.
[0079] In specific implementation, if there is no sharpness peak in the sharpness curve, the focusing plane corresponding to the maximum value of the sharpness curve is taken as the first fine focusing plane.
[0080] S3, based on the first rough focusing plane, perform a third preset number of rough focusings on the WBC chamber, and determine the surface with the maximum sharpness in the rough focusing of the WBC chamber as the second rough focusing plane.
[0081] In specific implementation, WBC refers to white blood cells, and the WBC chamber refers to the sample chamber of white blood cells for placing white blood cell samples. When focusing on the WBC chamber, different from the prior art, in the present invention, based on the first rough focusing plane, perform a third preset number of rough focusings on the WBC chamber, and determine the surface with the maximum sharpness in the rough focusing of the WBC chamber as the second rough focusing plane. That is, on the basis of the first rough focusing plane, adjust the focusing distance (increase or decrease), and the distance adjusted each time can be set by those skilled in the art, and the present invention does not specifically limit this. Since theoretically, the focusing distances of WBC and RBC are not much different, therefore, performing rough focusing based on the first rough focusing plane can quickly determine the position of the maximum sharpness and reduce the number of rough focusings. For example, in this embodiment, the number of rough focusings is set to 14 times, and the motor moves 30 times to find the position with the best sharpness. Or, the number of rough focusings can also be set to other values, and the present application does not specifically limit this.
[0082] S4, based on the second rough focusing plane, perform a fourth preset number of fine focusings on the WBC chamber to determine the second fine focusing plane of the WBC chamber.
[0083] In specific implementation, based on the second rough focusing plane, perform a fourth preset number of fine focusings on the WBC chamber to determine the second fine focusing plane of the WBC chamber.
[0084] Specifically, on the basis of the second rough focusing plane, complete the fourth preset number of fine focusings on the WBC chamber by adjusting the focusing distance. The distance adjusted each time can be set by those skilled in the art, and the present invention does not specifically limit this. For example, in this embodiment, it is set to 9 times of fine focusing, and 14 motor movements are performed each time of fine focusing to find the position with the best sharpness. Or, the number of fine focusings can also be set to other values, and the present application does not specifically limit this.
[0085] Further, among multiple fine focusings, the focusing plane of the fine focusing with the maximum sharpness value is determined as the second fine focusing plane of the WBC chamber.
[0086] S5, with the first rough focusing plane as a reference, perform a fifth preset number of rough focusings on the PLT cavity, and determine the plane with the maximum clarity in the rough focusing of the PLT cavity as the third rough focusing plane.
[0087] In specific implementation, PLT refers to white blood cells, and the PLT cavity refers to the sample cavity of platelets for placing platelet samples. When focusing on the PLT cavity, different from the prior art, in the present invention, with the first rough focusing plane as a reference, perform a fifth preset number of rough focusings on the PLT cavity, and determine the plane with the maximum clarity in the rough focusing of the PLT cavity as the rough focusing plane. That is, on the basis of the first rough focusing plane, adjust the focusing distance (increase or decrease), and the distance adjusted each time can be set by those skilled in the art, and the present invention does not specifically limit this. Since theoretically, the focusing distances of PLT and RBC are not very different, therefore, rough focusing with the first rough focusing plane as a reference can quickly determine the position with the maximum clarity and reduce the number of rough focusings. For example, in this embodiment, the number of rough focusings is set to 14 times, and the motor moves 40 times to find the position with the best clarity. Or, the number of rough focusings can also be set to other values, and the present application does not specifically limit this.
[0088] S6, with the third rough focusing plane as a reference, perform a sixth preset number of fine focusings on the PLT cavity, and determine the third fine focusing plane of the PLT cavity.
[0089] Specifically, on the basis of the third rough focusing plane, complete a fourth preset number of fine focusings on the PLT cavity by adjusting the focusing distance. The distance adjusted each time can be set by those skilled in the art, and the present invention does not specifically limit this. For example, in this embodiment, it is set to 9 times of fine focusing. Or, the number of fine focusings can also be set to other values, and the present application does not specifically limit this.
[0090] Further, among multiple fine focusings, determine the focusing plane of the fine focusing with the maximum clarity value as the third fine focusing plane of the PLT cavity.
[0091] Further, in some embodiments, such as this embodiment, after determining the first fine focusing plane of the RBC cavity, the method further includes: based on the first fine focusing plane, take multiple RBC photos and display the multiple RBC photos in an array manner; wherein, the shooting points of each of the RBC photos are different.
[0092] Specifically, 9 RBC photos can be taken and displayed in the form of a 9-grid as Figure 2 described, wherein, Figure 2The numbers therein are the numbers of RBC photos. By taking 9-grid pictures at multiple different positions on the platform, not only can the blurring phenomenon caused by the uneven counting plate be solved, but also the time for fine focusing can be greatly reduced.
[0093] Further, in some embodiments, such as this embodiment, after determining the second fine focusing plane of the WBC chamber, the method further includes: based on the second fine focusing plane, taking multiple WBC photos and displaying the multiple WBC photos in an array; wherein, the shooting positions of the WBC photos are different from each other.
[0094] Specifically, 9 WBC photos can be taken and displayed in the form of a 9-grid as Figure 2 described, wherein, Figure 2 the numbers therein are the numbers of WBC photos. By taking 9-grid pictures at multiple different positions on the platform, not only can the blurring phenomenon caused by the uneven counting plate be solved, but also the time for fine focusing can be greatly reduced.
[0095] Further, in some embodiments, such as this embodiment, after determining the second fine focusing plane of the PLT chamber, the method further includes: based on the second fine focusing plane, taking multiple PLT photos and displaying the multiple PLT photos in an array; wherein, the shooting positions of the PLT photos are different from each other.
[0096] Specifically, 9 PLT photos can be taken and displayed in the form of a 9-grid as Figure 2 described, wherein, Figure 2 the numbers therein are the numbers of PLT photos. By taking 9-grid pictures at multiple different positions on the platform, not only can the blurring phenomenon caused by the uneven counting plate be solved, but also the time for fine focusing can be greatly reduced.
[0097] An embodiment of the present invention provides a method for focusing a microscope barrel in cell morphology detection, including: performing a first preset number of rough focusings on the RBC chamber, and determining the surface with the maximum clarity in the rough focusing of the RBC chamber as the first rough focusing surface; based on the first rough focusing surface, performing a second preset number of fine focusings on the RBC chamber to determine the first fine focusing surface of the RBC chamber; based on the first rough focusing surface, performing a third preset number of rough focusings on the WBC chamber, and determining the surface with the maximum clarity in the rough focusing of the WBC chamber as the second rough focusing surface; based on the second rough focusing surface, performing a fourth preset number of fine focusings on the WBC chamber to determine the second fine focusing surface of the WBC chamber; based on the first rough focusing surface, performing a fifth preset number of rough focusings on the PLT chamber, and determining the surface with the maximum clarity in the rough focusing of the PLT chamber as the third rough focusing surface; based on the third rough focusing surface, performing a sixth preset number of fine focusings on the PLT chamber to determine the third fine focusing surface of the PLT chamber. In the present invention, based on the second rough focusing surface determined for the RBC chamber, rough focusing is performed on the WBC chamber and the PLT chamber, which can effectively reduce the number of rough focusings on the WBC chamber and the PLT chamber and improve the focusing efficiency.
[0098] Further, by taking 9-grid pictures at multiple different points on the platform, not only can the blurring phenomenon caused by the uneven counting plate be solved, but also the time for fine focusing can be greatly reduced.
[0099] Corresponding to the above method for focusing a microscope barrel in cell morphology detection, the present invention also provides a device for focusing a microscope barrel in cell morphology detection. The device for focusing a microscope barrel in cell morphology detection includes a unit for executing the above method for focusing a microscope barrel in cell morphology detection, and the device for focusing a microscope barrel in cell morphology detection can be configured in terminals such as desktop computers, tablet computers, and laptops. Specifically, the device for focusing a microscope barrel in cell morphology detection includes:
[0100] A first rough focusing unit for performing a first preset number of rough focusings on the RBC chamber and determining the surface with the maximum clarity in the rough focusing of the RBC chamber as the first rough focusing surface;
[0101] A first fine focusing unit for performing a second preset number of fine focusings on the RBC chamber based on the first rough focusing surface to determine the first fine focusing surface of the RBC chamber;
[0102] A second rough focusing unit for performing a third preset number of rough focusings on the WBC chamber based on the first rough focusing surface and determining the surface with the maximum clarity in the rough focusing of the WBC chamber as the second rough focusing surface;
[0103] The second fine focusing unit is configured to perform a fourth preset number of fine focusings on the WBC cavity based on the second coarse focusing plane, and determine a second fine focusing plane of the WBC cavity;
[0104] The third coarse focusing unit is configured to perform a fifth preset number of coarse focusings on the PLT cavity based on the first coarse focusing plane, and determine the plane with the maximum clarity in the coarse focusing of the PLT cavity as the third coarse focusing plane;
[0105] The third fine focusing unit is configured to perform a sixth preset number of fine focusings on the PLT cavity based on the third coarse focusing plane, and determine a third fine focusing plane of the PLT cavity.
[0106] In some embodiments, such as this embodiment, the step of performing a second preset number of fine focusings on the RBC cavity based on the first coarse focusing plane to determine a first fine focusing plane of the RBC cavity includes:
[0107] Performing curve fitting on the focusing results of the second preset number of fine focusings on the RBC cavity to obtain a clarity curve, where the abscissa of the clarity curve is the focusing distance and the ordinate is the clarity value;
[0108] Determining whether there is a clarity peak in the clarity curve;
[0109] If there is a clarity peak in the clarity curve, determining whether the maximum value of the clarity curve is at the position of the largest clarity peak;
[0110] If the maximum value of the clarity curve is at the position of the largest clarity peak, determining whether the number of clarity peaks is multiple;
[0111] If the number of clarity peaks is multiple, determining whether the difference between the largest clarity peak and the second largest clarity peak is greater than a preset difference threshold;
[0112] If the difference between the largest clarity peak and the second largest clarity peak is less than the preset difference threshold, selecting the focusing plane of the clarity peak with the smaller abscissa between the largest clarity peak and the second largest clarity peak as the first fine focusing plane.
[0113] In some embodiments, such as this embodiment, the step of performing a second preset number of fine focusings on the RBC cavity based on the first coarse focusing plane to determine a first fine focusing plane of the RBC cavity further includes:
[0114] If the difference between the largest clarity peak and the second largest clarity peak is not less than the preset difference threshold, selecting the focusing plane of the largest clarity peak as the first fine focusing plane.
[0115] In some embodiments, such as this embodiment, taking the first rough focusing plane as a reference, performing a second preset number of fine focusings on the RBC cavity to determine the first fine focusing plane of the RBC cavity further includes:
[0116] If the number of clarity peaks is one, taking the focusing plane of the clarity peak as the first fine focusing plane.
[0117] In some embodiments, such as this embodiment, taking the first rough focusing plane as a reference, performing a second preset number of fine focusings on the RBC cavity to determine the first fine focusing plane of the RBC cavity further includes:
[0118] If the maximum value of the clarity curve is not at the position of the largest clarity peak, determining whether the value of the largest clarity peak is greater than 0.4 times the maximum value of the clarity curve, and whether the abscissa of the largest clarity peak is smaller than the abscissa of the maximum value of the clarity curve;
[0119] If the value of the largest clarity peak is greater than 0.4 times the maximum value of the clarity curve, and the abscissa of the largest clarity peak is smaller than the abscissa of the maximum value of the clarity curve, then selecting the focusing plane of the largest clarity peak as the first fine focusing plane.
[0120] In some embodiments, such as this embodiment, taking the first rough focusing plane as a reference, performing a second preset number of fine focusings on the RBC cavity to determine the first fine focusing plane of the RBC cavity further includes:
[0121] If the clarity curve has no clarity peak, taking the focusing plane corresponding to the maximum value of the clarity curve as the first fine focusing plane.
[0122] In some embodiments, such as this embodiment, the microscope barrel focusing device in cell morphology detection further includes:
[0123] A display unit, configured to take multiple RBC photos based on the first fine focusing plane and display the multiple RBC photos in an array manner; wherein, the shooting positions of the respective RBC photos are different; take multiple WBC photos based on the second fine focusing plane and display the multiple WBC photos in an array manner; wherein, the shooting positions of the respective WBC photos are different; and take multiple PLT photos based on the second fine focusing plane and display the multiple PLT photos in an array manner; wherein, the shooting positions of the respective PLT photos are different.
[0124] It should be noted that those skilled in the art can clearly understand that the specific implementation processes of the microscope tube focusing device and each unit in the above-mentioned cell morphology detection can refer to the corresponding descriptions in the foregoing method embodiments. For the convenience and conciseness of description, they will not be elaborated here.
[0125] The microscope tube focusing device in the above-mentioned cell morphology detection can be implemented in the form of a computer program, and this computer program can run on a computer device as shown in Figure 3 the figure.
[0126] Please refer to Figure 3 , Figure 3 which is a schematic block diagram of a computer device provided by an embodiment of the present application. The computer device 500 can be a terminal or a server. Among them, the terminal can be an electronic device with communication functions such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server can be an independent server or a server cluster composed of multiple servers.
[0127] The computer device 500 includes a processor 502, a memory, and a network interface 505 connected through a system bus 501. Among them, the memory can include a non-volatile storage medium 503 and an internal memory 504.
[0128] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can be made to execute a microscope tube focusing method in cell morphology detection.
[0129] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500.
[0130] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can be made to execute a microscope tube focusing method in cell morphology detection.
[0131] The network interface 505 is used for network communication with other devices. Those skilled in the art can understand that the above structure is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0132] Among them, the processor 502 is used to run the computer program 5032 stored in the memory to implement the steps of a microscope barrel focusing method in cell morphology detection.
[0133] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0134] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a storage medium, and the storage medium is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.
[0135] Therefore, the present invention also provides a storage medium. The storage medium can be a computer-readable storage medium. The storage medium stores a computer program. When the computer program is executed by the processor, the processor is caused to execute the steps of a microscope barrel focusing method in cell morphology detection.
[0136] The storage medium is a physical, non-transitory storage medium, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disc, etc., which are various physical storage media that can store program codes. The computer-readable storage medium can be non-volatile or volatile.
[0137] Those of ordinary skill in the art will appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of the examples have been generally described in terms of function in the above description. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0138] In several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is only a logical function division, and 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.
[0139] The steps in the method embodiments of the present invention can be adjusted, combined, and deleted according to actual needs. The units in the apparatus embodiments of the present invention can be combined, divided, and deleted according to actual needs. In addition, the functional units in each embodiment of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
[0140] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or 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 and includes several instructions for causing a computer device (which can be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present invention.
[0141] In the above embodiments, the descriptions of the various embodiments have their own emphases. For the parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0142] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these modifications and variations.
[0143] As described above, it is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should 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 tube focusing method for cell morphology detection, characterized in that: include: Performing a first preset number of coarse focusing on the RBC cavity, and determining a surface with the highest clarity in the coarse focusing of the RBC cavity as a first coarse focusing surface; Based on the first coarse focus plane, a second preset number of fine focuses are performed on the RBC cavity to determine a first fine focus plane of the RBC cavity; Taking the first coarse focus plane as a reference, performing a third preset number of coarse focus on the WBC cavity, and determining the surface with the highest clarity in the coarse focus of the WBC cavity as the second coarse focus plane; Based on the second coarse focus plane, a fourth preset number of fine focuses are performed on the WBC cavity to determine a second fine focus plane of the WBC cavity; Taking the first coarse focusing plane as a reference, performing a fifth preset number of coarse focusing on the PLT cavity, and determining the plane with the highest clarity in the coarse focusing of the PLT cavity as the third coarse focusing plane; Based on the third coarse focusing plane, a sixth preset number of fine focusings are performed on the PLT cavity to determine a third fine focusing plane of the PLT cavity.
2. The microscope tube focusing method in cell morphology detection according to claim 1, characterized in that: The step of performing a second preset number of fine focusing operations on the RBC cavity based on the first coarse focusing plane to determine a first fine focusing plane of the RBC cavity includes: Performing curve fitting on the focusing results of a second preset number of fine focusing on the RBC cavity to obtain a clarity curve, wherein the abscissa of the clarity curve is the focusing distance, and the ordinate is the clarity value; Determining whether the clarity curve has a clarity peak; If the clarity curve has a clarity peak, determining whether the maximum value of the clarity curve is at the position of the largest clarity peak; If the maximum value of the clarity curve is at the position of the largest clarity peak, determining whether there are multiple clarity peaks; If there are multiple clarity peaks, determining whether the difference between the largest clarity peak and the second largest clarity peak is greater than a preset difference threshold; If the difference between the largest clarity peak and the second largest clarity peak is smaller than a preset difference threshold, the focus plane of the clarity peak with a smaller abscissa between the largest clarity peak and the second largest clarity peak is selected as the first fine focus plane.
3. The microscope tube focusing method in cell morphology detection according to claim 2, characterized in that: The method further comprises: performing a second preset number of fine focusing operations on the RBC cavity based on the first coarse focusing plane to determine a first fine focusing plane of the RBC cavity; If the difference between the largest clarity peak and the second largest clarity peak is not less than a preset difference threshold, the focus plane of the largest clarity peak is selected as the first fine focus plane.
4. The microscope tube focusing method in cell morphology detection according to claim 2, characterized in that: The method further comprises: performing a second preset number of fine focusing operations on the RBC cavity based on the first coarse focusing plane to determine a first fine focusing plane of the RBC cavity; If the number of the clarity peak is one, the focus plane of the clarity peak is used as the first fine focus plane.
5. The microscope tube focusing method in cell morphology detection according to claim 2, characterized in that: The method further comprises: performing a second preset number of fine focusing operations on the RBC cavity based on the first coarse focusing plane to determine a first fine focusing plane of the RBC cavity; If the maximum value of the clarity curve is not at the position of the largest clarity peak, determine whether the value of the largest clarity peak is greater than 0.4 times the maximum value of the clarity curve, and whether the abscissa of the largest clarity peak is smaller than the abscissa of the maximum value of the clarity curve; If the value of the maximum clarity peak is greater than 0.4 times the maximum value of the clarity curve, and the abscissa of the maximum clarity peak is smaller than the abscissa of the maximum value of the clarity curve, the focus plane of the maximum clarity peak is selected as the first fine focus plane.
6. The microscope tube focusing method in cell morphology detection according to claim 2, characterized in that: The method further comprises: performing a second preset number of fine focusing operations on the RBC cavity based on the first coarse focusing plane to determine a first fine focusing plane of the RBC cavity; If the clarity curve does not have a clarity peak, the focus plane corresponding to the maximum value of the clarity curve is used as the first fine focus plane.
7. The microscope tube focusing method in cell morphology detection according to claim 1, characterized in that: After determining the first fine focus plane of the RBC cavity, the method further includes: Based on the first fine focus plane, a plurality of RBC photos are taken, and the plurality of RBC photos are displayed in an array manner; wherein the shooting points of the RBC photos are different; After determining the second fine focus plane of the WBC cavity, the method further includes: Based on the second fine focus plane, a plurality of WBC photos are taken, and the plurality of WBC photos are displayed in an array manner; wherein the shooting points of the WBC photos are different; After determining the second fine focus plane of the PLT cavity, the method further includes: Based on the second fine focusing plane, multiple PLT photos are taken, and the multiple PLT photos are displayed in an array; wherein the shooting points of the PLT photos are different.
8. A microscope tube focusing device for cell morphology detection, characterized in that: The method comprises a unit for executing the method according to any one of claims 1 to 7.
9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 can be implemented.