A laboratory inspection method and device based on visual inspection

By using visual inspection technology in the laboratory, using microscopes and cameras to collect sample images and adjusting the sliding speed of the slide according to image characteristics, the problem of low sample inspection efficiency is solved and more efficient and accurate sample inspection is achieved.

CN115115582BActive Publication Date: 2024-10-11SHENZHEN ADICON MEDICAL LAB
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210631041.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-06
Publication Date
2024-10-11
Estimated Expiration
2042-06-06

AI Technical Summary

Technical Problem

In the existing technology, it is impossible to accurately control the collection and analysis process of sample images during laboratory sample inspection, resulting in low sample inspection efficiency.

Method used

Using inspection methods and devices based on visual inspection in the inspection room, the sample is transferred to the inspection area through the transmission unit, and the sample image is collected using a microscope and camera. The controller adjusts the contraction speed and state of the skateboard according to the image brightness, texture complexity and target individual density. , perform image analysis in real time to determine whether the sample poses a safety risk.

Benefits of technology

It improves the efficiency and accuracy of sample inspection in the inspection room, ensures the accuracy of sample image collection and image analysis, and promptly handles potential safety issues through risk reminders.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115115582B_ABST
    Figure CN115115582B_ABST
Patent Text Reader

Abstract

The present invention relates to a laboratory inspection method and device based on visual inspection, and in particular to the field of sample inspection technology, including a transmission unit for transmitting samples to an inspection area, the transmission unit including a slide arranged inside a main body, and also including a first groove arranged inside the main body, the first groove is used for the slide to slide, one end of the slide is connected to an electric push rod, the electric push rod is used to drive the slide to slide, two limit blocks are symmetrically arranged above the slide, a slide is inserted inside the limit block, a second groove for the slide to be inserted is opened inside the limit block, and the slide is used to place the sample to be inspected; an image acquisition unit is used to acquire the image of the sample to be inspected, including a microscope, which is set inside a connecting frame, and the image acquisition unit also includes a camera. The present invention effectively improves the inspection efficiency of samples in the laboratory.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of sample detection, and in particular to a laboratory detection method and device based on visual detection. Background Art

[0002] The machine vision inspection system obtains the surface image of the product through appropriate light sources and image sensors, extracts the feature information of the image using the corresponding image processing algorithm, and then locates, identifies, and grades surface defects and performs operations such as statistics, storage, and query based on the feature information.

[0003] Chinese patent publication number: CN211928296U discloses a microscope for cell observation in a biological laboratory, including a microscope body, a bottom plate is provided at the bottom of the microscope body, a strip groove is opened on one side of the placement plate, the groove walls on both sides of the strip groove are respectively connected with a first screw and a second screw, and the tops of the two sliding sleeves are fixed with clamps, and the two clamps are respectively placed on both sides of the top of the placement plate. The utility model is provided with clamps on both sides of the placement plate, and the two clamps can be moved towards each other by rotating the first screw and the second screw at the same time, so as to clamp the cover glass placed in the middle of the placement plate to avoid displacement of the cover glass and affect the observation effect. It can be seen that manual sample inspection is required in this scheme, which affects the efficiency of sample inspection. Summary of the invention

[0004] To this end, the present invention provides a laboratory inspection method and device based on visual detection, so as to overcome the problem of low sample inspection efficiency caused by the inability to accurately control the collection and analysis process of sample images during laboratory sample inspection in the prior art.

[0005] To achieve the above objectives, on the one hand, the present invention provides a laboratory inspection device based on visual inspection, comprising:

[0006] A transmission unit is used to transmit the sample to the inspection area. The transmission unit includes a slide plate arranged inside the main body, and also includes a first groove arranged inside the main body. The first groove is used for the slide plate to slide. One end of the slide plate is connected to an electric push rod. The electric push rod is used to drive the slide plate to slide. Two limit blocks are symmetrically arranged above the slide plate. A glass slide is inserted inside the limit blocks. A second groove for the glass slide to be inserted is opened inside the limit blocks. The glass slide is used to place the sample to be inspected.

[0007] An image acquisition unit, used to acquire images of samples to be inspected, including:

[0008] A microscope, which is mounted inside the connecting frame;

[0009] A camera, located above the microscope, for collecting and recording images of samples in the microscope;

[0010] A controller is used to control the sample detection process and to control the contraction state of the slide according to the brightness of the sample image, wherein when the slide is contracted, the controller is also used to determine whether there is a target image in the sample image according to the graphic texture complexity of the sample image, and to adjust the contraction speed of the slide when there is a target image in the sample image. When there is a target image in the sample image, the controller is also used to divide the sample image into regions, and to screen the target individuals according to the edge shape and grayscale value of the divided target region. After the target individuals are determined, the controller is also used to determine the target individual density according to the target individual proportion in the sample image, and to correct the contraction speed of the adjusted slide according to the target individual density. When the slide is contracted, the controller is also used to issue a risk reminder to the sample according to the average target individual proportion of each sample image.

[0011] Furthermore, when controlling the contraction state of the slide, the controller collects the sample image on the glass slide, obtains the brightness C of the sample image, compares it with the preset standard brightness C0, and controls the contraction state of the slide according to the comparison result, wherein,

[0012] When C<C0, the controller determines that the brightness of the sample image does not meet the requirement, stops shrinking and issues an alarm, prompting that the brightness of the observation area needs to be increased;

[0013] When C≥C0, the controller determines that the brightness of the sample image meets the requirement, and controls the slide plate to shrink.

[0014] Furthermore, the controller controls the slide to shrink at a shrinking speed V, and analyzes the sample image collected in real time. The controller obtains the graphic texture complexity P of the sample image, compares it with the preset graphic texture complexity P0, and adjusts the shrinking speed V of the slide according to the comparison result, wherein,

[0015] When P<P0, the controller determines that there is no target image in the sample image and does not make any adjustment;

[0016] When P≥P0, the controller determines that there is a target image in the sample image, and selects an adjustment coefficient a to adjust the contraction speed V, 0.85<a<1, to reduce the contraction speed of the slide, the adjusted contraction speed is Va, and Va=V×a is set.

[0017] Furthermore, when the controller determines that there is a target image in the sample image, the controller divides the sample image into regions, divides regions with the same grayscale value into the same region, and uses each region formed after the sample image is divided as the target region. The controller obtains the edge shape of the target region, and compares it with the preset target individual shape, and pre-selects the target individual according to the comparison result, wherein,

[0018] When the edge shape of the target area is the same as the shape of the preset target individual, the controller determines that the target area is a pre-selected target individual;

[0019] When the border shape of the target area is different from the preset target individual shape, the controller determines that the target area is not the target individual.

[0020] Furthermore, after the controller completes the judgment of the pre-selected target individual in the sample image, the controller obtains the gray value C of the pre-selected target individual, compares it with each preset standard gray value, and judges the target individual according to the comparison result, wherein,

[0021] When C1≤C≤C2, the controller determines that the pre-selected target individual is the target individual;

[0022] When C<C1 or C>C2, the controller determines that the preselected target individual is not a target individual;

[0023] Wherein, C1 is a first preset standard grayscale value, C2 is a second preset standard grayscale value, and C1<C2.

[0024] Furthermore, after the controller completes the determination of the target individuals in the sample image, the controller obtains the number of target individuals H in the sample image, and calculates the target individual ratio G, setting G=H / H0, where H0 is the number of target areas in the sample image. The controller compares the calculated target individual ratio G with each preset target individual ratio, and determines the target individual density according to the comparison result, wherein,

[0025] When G<G1, the controller determines that the density of the target individual is low, and marks the sample image as having low density;

[0026] When G1≤G≤G2, the controller determines that the target individual density is normal;

[0027] When G2<G, the controller determines that the target individual density is high, and performs a high-density mark on the sample image;

[0028] Among them, G1 is the first preset target individual proportion, G2 is the second preset target individual proportion, and G1<G2.

[0029] Furthermore, the controller corrects the contraction speed Va of the adjusted slide according to the target individual density in the sample image acquired in real time, wherein:

[0030] When the target individual density is low, the controller selects the first correction coefficient k1 to correct Va, 1<k1<1.1, so as to increase the contraction speed of the slide plate;

[0031] When the target individual density is normal, the controller does not perform correction;

[0032] When the target individual density is high, the controller selects the second correction coefficient k2 to correct Va, 0.9<k2<1, so as to reduce the contraction speed of the slide plate;

[0033] When the i-th correction coefficient ki is selected to correct the contraction speed Va of the adjusted sliding plate, i=1,2 is set, the contraction speed of the corrected sliding plate is Vk, and Vk=Va×ki is set.

[0034] Further, after the skateboard is retracted, the controller calculates the average target individual ratio △G of each sample image, and sets △G=(G1+G2...+Gm) / m, where G1...Gm are the target individual ratios of each sample image during the skateboard retraction process, and m is the number of sample images collected during the skateboard retraction process. The controller compares the average target individual ratio △G with each preset target individual ratio, and issues a risk reminder based on the comparison result, wherein,

[0035] When △G<G1, the controller reminds the sample that there is a safety risk and outputs the sample image with low-density marks;

[0036] When G1≤△G≤G2, the controller does not issue a risk reminder;

[0037] When G2<ΔG, the controller reminds the sample that there is a safety risk and outputs an image of the sample with high-density marks.

[0038] Furthermore, a rubber base plate is provided under the main body, and the rubber base plate is used to increase the friction between the main body and the workbench. An adjustment knob is provided on the microscope, and the adjustment knob is used to adjust the focal length. A mounting frame is provided at one end of the microscope away from the connecting frame, and the camera is arranged above the mounting frame.

[0039] On the other hand, the present invention also provides a laboratory inspection method based on visual inspection, comprising:

[0040] Step S1, placing the sample to be tested on a glass slide;

[0041] Step S2, adjusting the brightness of the observation area according to the brightness of the sample image;

[0042] Step S3, controlling the slide plate to contract, and collecting sample images in real time while contracting; when the slide plate contracts, judging whether there is a target image in the sample image according to the graphic texture complexity of the sample image, and adjusting the contraction speed of the slide plate when there is a target image in the sample image; when there is a target image in the sample image, dividing the sample image into regions, and screening target individuals according to the edge shape and grayscale value of the divided target region; after the target individuals are determined, determining the target individual density according to the proportion of the target individuals in the sample image, and correcting the contraction speed of the adjusted slide plate according to the target individual density;

[0043] Step S4: after the skateboard is retracted, a risk reminder is given to the sample according to the average target individual proportion of each sample image.

[0044] Compared with the prior art, the beneficial effect of the present invention lies in that a camera is set to perform real-time image acquisition to obtain video images of different areas on the slide when the slide is retracted. The controller divides the acquired video image into several video frame images, and uses the video frame images as sample images for image analysis. The analysis can ultimately determine whether the sample has a safety risk. If there is a safety risk, a reminder will be given, thereby improving the inspection efficiency of samples in the inspection room.

[0045] In particular, when collecting sample images, the accuracy of sample image collection during the contraction process can be effectively guaranteed by limiting the contraction process of the sliding plate according to the image brightness, so as to facilitate image analysis and improve the inspection efficiency of samples in the testing room. The controller compares the brightness of the acquired sample image with the preset value. If it is above the preset value, the brightness requirement is met. Otherwise, the brightness of the observation area needs to be increased to improve the brightness of the sample image, thereby further improving the accuracy of image analysis and improving the inspection efficiency of samples in the testing room.

[0046] In particular, the controller adjusts the retraction speed of the slide to improve the clarity of the collected sample image, thereby improving the accuracy of image analysis. The controller compares the graphic texture complexity of the sample image with a preset value. If it is less than the preset value, it is determined that there is no target image in the sample image and no adjustment is made. Otherwise, it is determined that there is a target image in the sample image. The retraction speed is reduced by adjustment to improve the clarity of image collection, and the accuracy of image analysis is further improved to improve the inspection efficiency of samples in the inspection room.

[0047] In particular, when the controller makes a target individual judgment on a sample image, it first divides the sample image and pre-selects a target individual judgment on the divided target area, and uses the target area with the same edge shape as the preset shape as the pre-selected target individual to ensure the accuracy of the target individual judgment in the sample image. When making a target individual judgment, the controller compares the grayscale value of the target individual with a preset range. If it is within the preset range, it is judged as a target individual, otherwise it is judged as a non-target individual. The controller uses the target area with the edge shape and grayscale value that meet the requirements as the target individual, which can effectively ensure the accuracy of the target individual judgment, thereby improving the accuracy of image analysis and improving the inspection efficiency of samples in the inspection room.

[0048] In particular, when the slide plate is retracted, the controller corrects the slide plate retraction speed by judging the target individual density in the sample image, thereby improving the acquisition efficiency of the sample image. When judging the target individual density, the controller calculates the target individual ratio G and compares it with the preset value. If it is less than the preset value, the density is judged to be low; if it is within the preset range, it is normal; if it is greater than the preset value, the density is judged to be high, and the sample image with abnormal target individual density is marked for easy output and viewing. The target individual ratio can effectively reflect the target individual density, thereby improving the accuracy of correction. When the controller corrects the slide plate retraction speed, if the target individual density in the sample image is low, the retraction speed is increased through correction; if the target individual density in the sample image is high, the retraction speed is reduced through correction. By accurately correcting the retraction speed, the accuracy and efficiency of image acquisition can be effectively improved, thereby further improving the inspection efficiency of samples in the inspection room.

[0049] In particular, when the controller issues a sample risk warning, it calculates and obtains the average target individual proportion △G of several sample images during the contraction of the skateboard, and compares it with the preset value. If it is outside the preset range, a corresponding risk warning is issued and a corresponding marked image is output for easy viewing. The controller further improves the inspection efficiency of samples in the inspection room by issuing accurate risk warnings. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 It is a front schematic diagram of the inspection room inspection device based on visual inspection in this embodiment;

[0051] Figure 2 It is a side schematic diagram of the inspection room inspection device based on visual inspection in this embodiment;

[0052] Figure 3 Schematic diagram of the flow of the laboratory inspection method based on visual inspection in this embodiment. DETAILED DESCRIPTION

[0053] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0054] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.

[0055] It should be noted that, in the description of the present invention, terms such as "up", "down", "left", "right", "inside" and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the drawings. This is merely for the convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention.

[0056] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0057] See also Figure 1-2 As shown, it is a schematic diagram of the structure of the inspection device of the inspection room based on visual inspection in this embodiment, and the inspection device includes:

[0058] A main body 1, with a rubber bottom plate 2 disposed below, the rubber bottom plate 2 is used to increase the friction between the main body 1 and the workbench;

[0059] A transmission unit, used to transmit the sample to the inspection area, the transmission unit includes a slide plate 5, which is arranged inside the main body 1, and the main body 1 is also provided with a first groove for the slide plate 5 to slide, one end of the slide plate 5 is connected to an electric push rod 10, and the electric push rod 10 is used to drive the slide plate 5 to slide, and two limit blocks 6 are symmetrically arranged above the slide plate 5, and a slide glass 7 is inserted in the limit blocks 6, and a second groove for the slide glass 7 to be inserted is opened in the limit blocks 6, and the slide glass 7 is used to place the sample to be inspected, and the sample includes a human blood smear;

[0060] A control unit, including a connecting frame 3, which is arranged above the main body 1, and a controller 11 is provided on the outer surface of the connecting frame 3, and the controller 11 is used to control the detection process;

[0061] The image acquisition unit is used to acquire the image of the sample to be inspected, and includes a microscope 4, which is mounted inside the connecting frame 3 to magnify the sample image. The microscope 4 is provided with an adjustment knob 12, and the adjustment knob 12 is used to adjust the focal length. The microscope 4 is provided with a mounting frame 8 at one end away from the connecting frame 3, and a camera 9 is provided above the mounting frame 8. The camera 9 is used to acquire and record the sample image in the microscope. The controller 11 is also used to perform image analysis on the acquired sample image to provide a sample risk reminder.

[0062] Specifically, when collecting sample images, the controller is also used to control the contraction state of the slide board according to the brightness of the sample image. When the slide board is contracted, the controller is also used to determine whether there is a target image in the sample image according to the graphic texture complexity of the sample image, and adjust the contraction speed of the slide board when there is a target image in the sample image. When there is a target image in the sample image, the controller is also used to divide the sample image into regions, and screen the target individuals according to the edge shape and grayscale value of the divided target region. After the target individuals are determined, the controller is also used to determine the target individual density according to the proportion of target individuals in the sample image, and correct the contraction speed of the adjusted slide board according to the target individual density. When the slide board is contracted, the controller is also used to issue risk reminders to the samples according to the average proportion of target individuals in each sample image.

[0063] Specifically, in this embodiment, a camera is set to perform real-time image acquisition to obtain video images of different areas on the slide when the slide is retracted. The controller divides the acquired video image into several video frame images, and uses the video frame images as sample images for image analysis. The analysis is used to ultimately determine whether there is a safety risk in the sample. If there is a safety risk, a reminder is given, thereby improving the inspection efficiency of samples in the testing room. In this embodiment, when controlling the slide to retract, the retraction speed of the slide is adjusted by determining whether there is a target image in the sample image. The slide speed is adjusted to improve the clarity of the collected sample image, thereby improving the accuracy of sample risk judgment, thereby improving the inspection efficiency of samples in the testing room. In this embodiment, the retraction speed of the adjusted slide is also corrected according to the target individual density. The correction is used to further improve the clarity of the collected sample image, thereby improving the accuracy of sample risk judgment, thereby improving the inspection efficiency of samples in the testing room. It can be understood that in this embodiment, when controlling the sliding plate to retract, it is necessary to ensure that there is a sample on the glass slide. This embodiment does not limit the detection method of the sample on the glass slide. Those skilled in the art can determine whether there is a sample on the glass slide by setting an image acquisition method, or setting a pressure sensor on the glass slide and other detection methods. It is only necessary to meet the detection of the sample. In this embodiment, when obtaining the sample image, the sample image can also be obtained by taking a photo with a camera to replace the video recording method. It is only necessary to meet the acquisition of the sample image.

[0064] See also Figure 3 As shown, it is a flow chart of the laboratory inspection method based on visual inspection in this embodiment, and the inspection method includes:

[0065] Step S1, placing the sample to be tested on a glass slide;

[0066] Step S2, adjusting the brightness of the observation area according to the brightness of the sample image;

[0067] Step S3, controlling the slide plate to contract, and collecting sample images in real time while contracting; when the slide plate contracts, judging whether there is a target image in the sample image according to the graphic texture complexity of the sample image, and adjusting the contraction speed of the slide plate when there is a target image in the sample image; when there is a target image in the sample image, dividing the sample image into regions, and screening target individuals according to the edge shape and grayscale value of the divided target region; after the target individuals are determined, determining the target individual density according to the proportion of the target individuals in the sample image, and correcting the contraction speed of the adjusted slide plate according to the target individual density;

[0068] Step S4: after the skateboard is retracted, a risk reminder is given to the sample according to the average target individual proportion of each sample image.

[0069] Specifically, when controlling the contraction state of the slide, the controller collects the sample image on the glass slide, obtains the brightness C of the sample image, compares it with the preset standard brightness C0, and controls the contraction state of the slide according to the comparison result, wherein,

[0070] When C<C0, the controller determines that the brightness of the sample image does not meet the requirement, stops shrinking and issues an alarm, prompting that the brightness of the observation area needs to be increased, and defines the area directly below the microscope as the observation area;

[0071] When C≥C0, the controller determines that the brightness of the sample image meets the requirement, and controls the slide plate to shrink.

[0072] Specifically, in this embodiment, when collecting sample images, by limiting the contraction process of the slide plate according to the image brightness, the accuracy of sample image collection during the contraction process can be effectively guaranteed, so as to facilitate image analysis, thereby improving the inspection efficiency of samples in the inspection room. The controller compares the brightness of the acquired sample image with a preset value. If it is above the preset value, the brightness requirement is met. Otherwise, the brightness of the observation area needs to be increased to improve the brightness of the sample image, thereby further improving the accuracy of image analysis, so as to improve the inspection efficiency of samples in the inspection room. It can be understood that in this embodiment, by changing the brightness of the observation area to improve the brightness of the acquired sample image, the brightness of the observation area can be increased by increasing the illumination, and those skilled in the art can also set other brightness adjustment methods, as long as the brightness requirement of the sample image is met.

[0073] Specifically, when the controller controls the slide plate to shrink, the controller controls the slide plate to shrink at a shrinking speed V, and analyzes the sample image collected in real time. The controller obtains the graphic texture complexity P of the sample image, and compares it with the preset graphic texture complexity P0, and adjusts the shrinking speed V of the slide plate according to the comparison result, wherein,

[0074] When P<P0, the controller determines that there is no target image in the sample image and does not make any adjustment;

[0075] When P≥P0, the controller determines that there is a target image in the sample image, and selects an adjustment coefficient a to adjust the contraction speed V, 0.85<a<1, to reduce the contraction speed of the slide, the adjusted contraction speed is Va, and Va=V×a is set.

[0076] Specifically, the controller in this embodiment adjusts the retraction speed of the slide to improve the clarity of the collected sample image, thereby improving the accuracy of image analysis. The controller compares the graphic texture complexity of the sample image with a preset value. If it is less than the preset value, it is determined that there is no target image in the sample image and no adjustment is made. Otherwise, it is determined that there is a target image in the sample image. The retraction speed is reduced by adjustment to improve the clarity of image acquisition, and the accuracy of image analysis is further improved to improve the inspection efficiency of samples in the inspection room.

[0077] Specifically, when the controller determines that there is a target image in the sample image, the controller divides the sample image into regions, divides regions with the same grayscale value into the same region, takes each region formed after the sample image is divided as the target region, and performs target region recognition. The controller obtains the edge shape of the target region, compares it with the preset target individual shape, and pre-selects the target individual according to the comparison result, wherein,

[0078] When the edge shape of the target area is the same as the shape of the preset target individual, the controller determines that the target area is a pre-selected target individual;

[0079] When the border shape of the target area is different from the preset target individual shape, the controller determines that the target area is not the target individual.

[0080] Specifically, after the controller completes the judgment of the pre-selected target individual in the sample image, the controller obtains the gray value C of the pre-selected target individual, compares it with each preset standard gray value, and judges the target individual according to the comparison result, wherein,

[0081] When C1≤C≤C2, the controller determines that the preselected target individual is the target individual;

[0082] When C<C1 or C>C2, the controller determines that the preselected target individual is not a target individual;

[0083] Wherein, C1 is a first preset standard grayscale value, C2 is a second preset standard grayscale value, and C1<C2.

[0084] Specifically, when the controller in this embodiment judges the target individual of the sample image, it first divides the sample image and pre-selects the target individual for the divided target area. The target area with the same edge shape as the preset shape is used as the pre-selected target individual to ensure the accuracy of the target individual judgment in the sample image. When judging the target individual, the controller compares the gray value of the target individual with the preset range. If it is within the preset range, it is determined to be the target individual, otherwise it is determined to be a non-target individual. The controller uses the target area with both the edge shape and the gray value that meet the requirements as the target individual, which can effectively ensure the accuracy of the target individual judgment, thereby improving the accuracy of image analysis and improving the inspection efficiency of samples in the inspection room. For example, when the sample to be detected in this embodiment is a human blood smear, the target individual is a red blood cell or a white blood cell. The pre-selected target individual can be screened out according to the shape characteristics of the red blood cells or the white blood cells, and then the target individual can be screened out according to the gray characteristics, so as to achieve the screening of red blood cells or white blood cells in the sample image.

[0085] Specifically, after the controller completes the determination of the target individuals in the sample image, the controller obtains the number of target individuals H in the sample image, and calculates the target individual ratio G, setting G=H / H0, where H0 is the number of target areas in the sample image. The controller compares the calculated target individual ratio G with each preset target individual ratio, and determines the target individual density based on the comparison result, wherein:

[0086] When G<G1, the controller determines that the density of the target individual is low, and marks the sample image as having low density;

[0087] When G1≤G≤G2, the controller determines that the target individual density is normal;

[0088] When G2<G, the controller determines that the target individual density is high, and performs a high-density mark on the sample image;

[0089] Among them, G1 is the first preset target individual proportion, G2 is the second preset target individual proportion, and G1<G2.

[0090] Specifically, the controller corrects the contraction speed Va of the adjusted slide according to the target individual density in the sample image acquired in real time, wherein:

[0091] When the target individual density is low, the controller selects the first correction coefficient k1 to correct Va, 1<k1<1.1, so as to increase the contraction speed of the slide plate;

[0092] When the target individual density is normal, the controller does not perform correction;

[0093] When the target individual density is high, the controller selects the second correction coefficient k2 to correct Va, 0.9<k2<1, so as to reduce the contraction speed of the slide plate;

[0094] When the i-th correction coefficient ki is selected to correct the contraction speed Va of the adjusted sliding plate, i=1,2 is set, the contraction speed of the corrected sliding plate is Vk, and Vk=Va×ki is set.

[0095] Specifically, when the slide plate in this embodiment retracts, the controller corrects the slide plate retraction speed by judging the target individual density in the sample image, thereby improving the acquisition efficiency of the sample image. When judging the target individual density, the controller calculates the target individual ratio G and compares it with the preset value. If it is less than the preset value, the density is judged to be low; if it is within the preset range, it is normal; if it is greater than the preset value, the density is judged to be high, and the sample image with abnormal target individual density is marked for output and viewing. The target individual ratio can effectively reflect the target individual density, thereby improving the accuracy of correction. When the controller corrects the slide plate retraction speed, if the target individual density in the sample image is low, the retraction speed is increased through correction; if the target individual density in the sample image is high, the retraction speed is reduced through correction. By accurately correcting the retraction speed, the accuracy and efficiency of image acquisition can be effectively improved, thereby further improving the inspection efficiency of samples in the inspection room.

[0096] Specifically, after the skateboard is retracted, the controller calculates the average target individual ratio △G of each sample image, and sets △G=(G1+G2…+Gm) / m, where G1…Gm are the target individual ratios of each sample image during the skateboard retraction process, and m is the number of sample images collected during the skateboard retraction process. The controller compares the average target individual ratio △G with each preset target individual ratio, and issues a risk warning based on the comparison result, wherein,

[0097] When △G<G1, the controller reminds the sample that there is a safety risk and outputs the sample image with low-density marks;

[0098] When G1≤△G≤G2, the controller does not issue a risk reminder;

[0099] When G2<ΔG, the controller reminds the sample that there is a safety risk and outputs an image of the sample with high-density marks.

[0100] Specifically, when the controller in this embodiment issues a sample risk warning, it calculates and obtains the average target individual proportion △G of several sample images during the contraction of the skateboard, and compares it with a preset value. If it is outside the preset range, a corresponding risk warning is issued and a corresponding marked image is output for easy viewing. The controller further improves the inspection efficiency of samples in the testing room by issuing accurate risk warnings.

[0101] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

Claims

1. A laboratory inspection device based on visual inspection, characterized in that: include, A transmission unit is used to transmit the sample to the inspection area. The transmission unit includes a slide plate arranged inside the main body, and also includes a first groove arranged inside the main body. The first groove is used for the slide plate to slide. One end of the slide plate is connected to an electric push rod. The electric push rod is used to drive the slide plate to slide. Two limit blocks are symmetrically arranged above the slide plate. A glass slide is inserted inside the limit blocks. A second groove for the glass slide to be inserted is opened inside the limit blocks. The glass slide is used to place the sample to be inspected. An image acquisition unit, used to acquire images of samples to be inspected, including: A microscope, which is mounted inside the connecting frame; A camera, located above the microscope, for collecting and recording images of samples in the microscope; A controller is used to control the sample detection process and to control the contraction state of the slide according to the brightness of the sample image, wherein when the slide is contracted, the controller is also used to determine whether there is a target image in the sample image according to the graphic texture complexity of the sample image, and to adjust the contraction speed of the slide when there is a target image in the sample image. When there is a target image in the sample image, the controller is also used to divide the sample image into regions, and to screen the target individuals according to the edge shape and grayscale value of the divided target region. After the target individuals are determined, the controller is also used to determine the target individual density according to the target individual proportion in the sample image, and to correct the contraction speed of the adjusted slide according to the target individual density. When the slide is contracted, the controller is also used to issue a risk reminder to the sample according to the average target individual proportion of each sample image.

2. The visual inspection laboratory inspection device according to claim 1, characterized in that: When controlling the contraction state of the slide, the controller collects the sample image on the glass slide, obtains the brightness C of the sample image, compares it with the preset standard brightness C0, and controls the contraction state of the slide according to the comparison result, wherein, When C<C0, the controller determines that the brightness of the sample image does not meet the requirement, stops shrinking and issues an alarm, prompting that the brightness of the observation area needs to be increased; When C≥C0, the controller determines that the brightness of the sample image meets the requirement, and controls the slide plate to shrink.

3. The visual inspection-based laboratory inspection device according to claim 2, characterized in that: The controller controls the slide to shrink at a shrinking speed V, and analyzes the sample image collected in real time. The controller obtains the graphic texture complexity P of the sample image, compares it with the preset graphic texture complexity P0, and adjusts the shrinking speed V of the slide according to the comparison result, wherein, When P<P0, the controller determines that there is no target image in the sample image and does not make any adjustment; When P≥P0, the controller determines that there is a target image in the sample image, and selects an adjustment coefficient a to adjust the contraction speed V, 0.85<a<1, to reduce the contraction speed of the slide, the adjusted contraction speed is Va, and Va=V×a is set.

4. The visual inspection-based laboratory inspection device according to claim 3, characterized in that: When the controller determines that there is a target image in the sample image, the controller divides the sample image into regions, divides regions with the same grayscale value into the same region, and uses each region formed after the sample image is divided as the target region. The controller obtains the edge shape of the target region, and compares it with the preset target individual shape, and pre-selects the target individual according to the comparison result, wherein: When the edge shape of the target area is the same as the shape of the preset target individual, the controller determines that the target area is a pre-selected target individual; When the border shape of the target area is different from the preset target individual shape, the controller determines that the target area is not the target individual.

5. The visual inspection-based laboratory inspection device according to claim 4, characterized in that: After the controller completes the judgment of the pre-selected target individual in the sample image, the controller obtains the gray value C of the pre-selected target individual, compares it with each preset standard gray value, and judges the target individual according to the comparison result, wherein: When C1≤C≤C2, the controller determines that the preselected target individual is the target individual; When C<C1 or C>C2, the controller determines that the preselected target individual is not a target individual; Wherein, C1 is a first preset standard grayscale value, C2 is a second preset standard grayscale value, and C1<C2.

6. The visual inspection-based laboratory inspection device according to claim 5, characterized in that: After the controller determines the target individuals in the sample image, the controller obtains the number of target individuals H in the sample image, calculates the target individual ratio G, sets G=H / H0, H0 is the number of target areas in the sample image, and compares the calculated target individual ratio G with each preset target individual ratio, and determines the target individual density according to the comparison result, wherein, When G<G1, the controller determines that the density of the target individual is low, and marks the sample image as having low density; When G1≤G≤G2, the controller determines that the target individual density is normal; When G2<G, the controller determines that the target individual density is high, and performs a high-density mark on the sample image; Among them, G1 is the first preset target individual proportion, G2 is the second preset target individual proportion, and G1<G2.

7. The visual inspection-based laboratory inspection device according to claim 6, characterized in that: The controller corrects the contraction speed Va of the adjusted slide according to the target individual density in the sample image acquired in real time, wherein: When the target individual density is low, the controller selects the first correction coefficient k1 to correct Va, 1<k1<1.1, so as to increase the contraction speed of the slide plate; When the target individual density is normal, the controller does not perform correction; When the target individual density is high, the controller selects the second correction coefficient k2 to correct Va, 0.9<k2<1, so as to reduce the contraction speed of the slide plate; When the i-th correction coefficient ki is selected to correct the contraction speed Va of the adjusted sliding plate, i=1,2 is set, the contraction speed of the corrected sliding plate is Vk, and Vk=Va×ki is set.

8. The visual inspection-based laboratory inspection device according to claim 7, characterized in that: After the skateboard is retracted, the controller calculates the average target individual ratio △G of each sample image, and sets △G=(G1+G2...+Gm) / m, where G1...Gm are the target individual ratios of each sample image during the skateboard retraction process, and m is the number of sample images collected during the skateboard retraction process. The controller compares the average target individual ratio △G with each preset target individual ratio, and issues a risk reminder based on the comparison result, wherein, When △G<G1, the controller reminds the sample that there is a safety risk and outputs the sample image with low-density marks; When G1≤△G≤G2, the controller does not issue a risk reminder; When G2<ΔG, the controller reminds the sample that there is a safety risk and outputs an image of the sample with high-density marks.

9. The visual inspection-based laboratory inspection device according to claim 1, characterized in that: A rubber base plate is provided under the main body, and the rubber base plate is used to increase the friction between the main body and the workbench. An adjustment knob is provided on the microscope, and the adjustment knob is used to adjust the focal length. A mounting frame is provided at one end of the microscope away from the connecting frame, and the camera is arranged above the mounting frame.

10. The inspection method applied to the inspection device of the inspection room based on visual inspection as claimed in any one of claims 1 to 9, characterized in that: include, Step S1, placing the sample to be tested on a glass slide; Step S2, adjusting the brightness of the observation area according to the brightness of the sample image; Step S3, controlling the slide plate to contract, and collecting sample images in real time while contracting; when the slide plate contracts, judging whether there is a target image in the sample image according to the graphic texture complexity of the sample image, and adjusting the contraction speed of the slide plate when there is a target image in the sample image; when there is a target image in the sample image, dividing the sample image into regions, and screening target individuals according to the edge shape and grayscale value of the divided target region; after the target individuals are determined, determining the target individual density according to the proportion of the target individuals in the sample image, and correcting the contraction speed of the adjusted slide plate according to the target individual density; Step S4: after the skateboard is retracted, a risk reminder is given to the sample according to the average target individual proportion of each sample image.