Temporary loading bubble detection method and system for physical, chemical and biological experiment evaluation
By processing the grayscale gradient and distance transformation of the microscope images of temporary films in physical, chemical and biological experiments, combined with image morphology and Hough circle detection, intelligent identification and segmentation of bubbles are achieved, bubble interference problem is solved, and the accuracy and efficiency of experimental evaluation are improved.
Patent Information
- Application Number
- CN202510166766.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-14
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2045-02-14
AI Technical Summary
During the physical, chemical and biological experiment evaluation process, bubbles often appear in temporary films, causing students to be disturbed when observing the cell structure. It is difficult for the existing technology to intelligently judge the existence of bubbles through microscope images.
By acquiring the color microscope image of the temporary film, converting it into a smooth grayscale image, processing based on the grayscale gradient and distance transform image, forming a mixed thermal map, combining image morphological operations, Hough circle detection and shape reduction, and finally obtaining the bubble segmented image by filling the edge contour.
It realizes effective identification and intelligent judgment of bubbles in the microscope images of temporary films, improves the accuracy and efficiency of physical, chemical and biological experimental evaluation, and reduces the dependence on labor.
Smart Images

Figure CN119991648A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of image processing, and in particular to a temporary slide bubble detection method and system for physical, chemical and biological experiment assessment. Background Art
[0002] During the examination and evaluation process of physical, chemical and biological experiments, students need to observe various cell morphologies by making temporary slides. In the process of making temporary slides, bubbles often appear in the temporary slides due to improper operation, which interferes with students' observation of cell structures. Currently, during the evaluation process, teachers usually need to manually observe whether bubbles appear in the microscope images of temporary slides made by students, which is time-consuming and laborious. Therefore, it is necessary to perform intelligent detection of bubbles to improve the accuracy, fairness and efficiency of physical, chemical and biological experiment evaluation. Summary of the invention
[0003] The present invention aims to provide a temporary slide bubble detection method and system for physical, chemical and biological experiment assessment to solve at least one technical problem in the background technology.
[0004] In order to achieve the above object, the present invention provides the following technical solutions:
[0005] In a first aspect, an embodiment of the present invention provides a temporary slide bubble detection method for physical, chemical and biological experiment assessment, the method comprising the following steps:
[0006] S100, acquiring a color microscope image of a temporary slide, and converting the color microscope image into a smooth grayscale image;
[0007] S200, determining a gradient transformation image based on the grayscale gradient of the smooth grayscale image, and determining a distance transformation image based on the distance from each pixel in the smooth grayscale image to the nearest background point;
[0008] S300, respectively transforming the size of the gradient transformation image and the distance transformation image to form an enhanced image set including a plurality of enhanced image pairs, and performing logical operations on corresponding pixel points of each enhanced image pair to obtain a mixed heat map set; wherein the size of each enhanced image pair is different;
[0009] S400, performing image morphological operations, Hough circle detection and shape restoration on the mixed thermal map set to obtain a candidate bubble edge set;
[0010] S500, removing duplicates from the candidate bubble edge set to obtain a bubble edge set, and filling the bubble edge set to obtain a bubble segmentation image.
[0011] Optionally, in S100, the step of acquiring a color microscope image of the temporary slide and converting the color microscope image into a smooth grayscale image includes:
[0012] S110, inputting the color microscope image I of the temporary mount rgb , convert the color microscope image into a grayscale image I gray ;
[0013] S120, using median filtering to blur the edge of the grayscale image to obtain a smooth grayscale image I gray ′.
[0014] Optionally, in S200, determining the gradient transformed image based on the grayscale gradient of the smoothed grayscale image includes:
[0015] S211, respectively calculate the smooth grayscale image I gray ′Gray gradient g in the x-axis direction x and the gray gradient g in the y-axis direction y ;
[0016] S212, the gray gradient g x and gray gradient g y Superimpose to obtain the gradient image I of the temporary mount grad ;
[0017] S213, for the gradient image I grad Perform dynamic threshold segmentation to obtain a binary image I bin1 ;
[0018] S214, using mean filtering to process the binary image I bin1 Perform edge blur and perform edge blur on the binary image I bin1 Perform bitwise inversion operation to obtain the gradient transformed image I grad′ .
[0019] Optionally, in S200, determining the distance transformation image based on the distance from each pixel in the smooth grayscale image to the nearest background point includes:
[0020] S221, for the smooth grayscale image I gray ' Perform binarization processing to obtain a binary image I bin2 , and for the binary image I bin2 Perform an open operation;
[0021] S222, calculate the binary image I bin2 The distance from each pixel to the nearest background point in the image is used to generate the initial distance transformation image I based on the distance from each pixel to the nearest background point. distance ;
[0022] S223, transform the initial distance image I distance Perform dynamic threshold segmentation and perform bitwise inversion operation to obtain the distance transformation image I distance′ .
[0023] Optionally, in S300, the gradient transformation image and the distance transformation image are respectively transformed in size to form an enhanced image set including a plurality of enhanced image pairs, and corresponding pixels of each enhanced image pair are respectively logically operated to obtain a mixed heat map set, including:
[0024] S310, transforming the gradient image I grad′ and distance transformed image I distance′ As a set of enhanced image pairs of original size, the enhanced image pairs are respectively scaled horizontally, vertically and overall to obtain three sets of enhanced image pairs after size transformation, and the three sets of enhanced image pairs after size transformation and the enhanced image pairs of original size form an enhanced image set I;
[0025] S320, performing a bitwise OR operation on each enhanced image pair in the enhanced image set I to obtain a mixed heat map set H, where the mixed heat map set includes multiple mixed heat maps.
[0026] Optionally, in S400, performing image morphological operations, Hough circle detection, and shape restoration on the mixed heat map set to obtain a candidate bubble edge set includes:
[0027] S410, after performing erosion, expansion, opening operation, and closing operation operations on each mixed heat map in the mixed heat map set H, performing Hough circle detection on each mixed heat map, recording all detected Hough circles, and obtaining a circular edge set;
[0028] S420, restore the size of each circular edge in the circular edge set C to obtain a candidate bubble edge set B, wherein the candidate bubble edge set B includes a plurality of edges.
[0029] Optionally, in S500, removing duplicates from the candidate bubble edge set to obtain a bubble edge set, and filling the bubble edge set to obtain a bubble segmentation image, includes:
[0030] S510, for each pair of edges in the candidate bubble edge set B, calculating the overlap of the areas within the two edges;
[0031] S520, determining whether the overlap of the areas within the two edges is greater than an overlap threshold, if so, retaining the edge with the larger area, otherwise retaining both edges, and obtaining a bubble edge set B′ after deduplication;
[0032] S530, fill all the edges in the bubble edge set B′ to obtain the bubble segmentation image I mask .
[0033] In a second aspect, an embodiment of the present invention provides a temporary slide bubble detection system for physical, chemical and biological experiment assessment, the system comprising:
[0034] at least one processor;
[0035] at least one memory for storing at least one program;
[0036] When the at least one program is executed by the at least one processor, the at least one processor implements any one of the methods described above.
[0037] The beneficial effects of the present invention are as follows: the present invention discloses a temporary slide bubble detection method and system for physical, chemical and biological experiment assessment. The present invention obtains a color microscope image of a temporary slide and converts the color microscope image into a smooth grayscale image; determines a gradient transformation image based on the grayscale gradient of the smooth grayscale image, and determines a distance transformation image based on the distance from each pixel in the smooth grayscale image to the nearest background point; performs size transformation on the gradient transformation image and the distance transformation image respectively to form an enhanced image set including multiple groups of enhanced image pairs, performs logical operations on the corresponding pixels of each group of enhanced image pairs respectively, and obtains a mixed heat map set; performs image morphological operations, Hough circle detection and shape restoration on the mixed heat map set to obtain a candidate bubble edge set; obtains a bubble edge set after deduplication of the candidate bubble edge set, and fills the bubble edge set to obtain a bubble segmentation image. The present invention can effectively identify bubbles in the microscope image of a temporary slide and intelligently judge the production quality of the temporary slide. The present invention improves the efficiency of temporary slide bubble detection and reduces the dependence on manual labor in the physical, chemical and biological experiment assessment process. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0039] Figure 1 It is a schematic flow chart of a temporary slide bubble detection method for physical, chemical and biological experiment assessment in an embodiment of the present invention;
[0040] Figure 2 is a diagram showing the effect of processing a color microscope image in an embodiment of the present invention;
[0041] Figure 3 It is a structural schematic diagram of a temporary slide bubble detection system for physical, chemical and biological experiment assessment in an embodiment of the present invention. DETAILED DESCRIPTION
[0042] The following will be combined with the embodiments and drawings to clearly and completely describe the concept, specific structure and technical effects of the present invention, so as to fully understand the purpose, scheme and effect of the present invention. It should be noted that the embodiments and features in the embodiments of the present invention can be combined with each other without conflict.
[0043] The solutions in the related art have the following problems:
[0044] In the process of physical, chemical and biological experiment assessment, it is difficult to intelligently judge whether there are bubbles in the temporary slide through the microscope image;
[0045] How to eliminate the interference of normal cell structures such as cell wall, cell nucleus, vacuole, etc. in temporary slides on bubble detection, and use the morphological characteristics of bubbles to detect them.
[0046] To solve the problems in the background technology, the embodiments of the present invention provide the following technical solutions.
[0047] See also Figure 1 and Figure 2 , Figure 1 The present invention provides a temporary slide bubble detection method for physical, chemical and biological experiment assessment, which comprises the following steps:
[0048] S100, acquiring a color microscope image of a temporary slide, and converting the color microscope image into a smooth grayscale image;
[0049] S200, determining a gradient transformation image based on the grayscale gradient of the smooth grayscale image, and determining a distance transformation image based on the distance from each pixel in the smooth grayscale image to the nearest background point;
[0050] S300, respectively transforming the size of the gradient transformation image and the distance transformation image to form an enhanced image set including a plurality of enhanced image pairs, and performing logical operations on corresponding pixel points of each enhanced image pair to obtain a mixed heat map set; wherein the size of each enhanced image pair is different;
[0051] S400, performing image morphological operations, Hough circle detection and shape restoration on the mixed thermal map set to obtain a candidate bubble edge set;
[0052] S500, removing duplicates from the candidate bubble edge set to obtain a bubble edge set, and filling the bubble edge set to obtain a bubble segmentation image.
[0053] In the embodiment provided by the present invention, bubbles in the microscope image of the temporary mount are identified by using technologies such as grayscale gradient change, distance transformation, contour fitting, and contour deduplication, and the production quality of the temporary mount is intelligently judged, thereby achieving the purpose of intelligent scoring of physical, chemical, and biological experiments such as "making and observing temporary mounts of plant cells"
[0054] The present invention has broad application prospects in the field of physical, chemical and biological experiment teaching and evaluation, improves the efficiency of temporary slide bubble detection, reduces the reliance on manual labor in the physical, chemical and biological experiment evaluation process, reduces the workload of teachers, and is expected to promote the innovation and development of physical, chemical and biological experiment teaching and evaluation methods.
[0055] In some embodiments, in S100, the step of acquiring a color microscope image of a temporary slide and converting the color microscope image into a smooth grayscale image includes:
[0056] S110, inputting the color microscope image I of the temporary mount rgb , convert the color microscope image into a grayscale image I gray ;
[0057] S120, using median filtering to blur the edge of the grayscale image to obtain a smooth grayscale image I gray ′.
[0058] Specifically, the grayscale image is blurred by the mean filter with a filter kernel size of 20 to obtain a smooth grayscale image I gray ′, reducing the influence of the edges of cell structures such as cell wall, nucleus, and vacuole.
[0059] In some embodiments, in S200, determining the gradient transformed image based on the grayscale gradient of the smoothed grayscale image includes:
[0060] S211, respectively calculate the smooth grayscale image I gray ′Gray gradient g in the x-axis direction x and the gray gradient g in the y-axis direction y ;
[0061] Specifically, the smooth grayscale image I is calculated by the numpy.gradient function. gray ′Gray gradient g in the x-axis direction x and the gray gradient g in the y-axis direction y ;
[0062] S212, the gray gradient g x and gray gradient g y Superimpose to obtain the gradient image I of the temporary mount grad ;
[0063] Specifically, the grayscale gradient g is converted into x and gray gradient g y Superimpose to obtain the gradient image I of the temporary mount grad , further filtering the cell structure and retaining the bubble edges;
[0064] S213, for the gradient image I grad Perform dynamic threshold segmentation to obtain a binary image I bin1 ;
[0065] Specifically, for the gradient image I grad Perform dynamic threshold segmentation to obtain a binary image I bin1 ;
[0066] S214, using mean filtering to process the binary image I bin1 Perform edge blur and perform edge blur on the binary image I bin1 Perform bitwise inversion operation to obtain the gradient transformed image I grad′ .
[0067] Specifically, the binary image I is filtered using a mean filter with a filter kernel size of 20. bin1 Perform edge blur and perform edge blur on the binary image I bin1 Perform bitwise inversion operation to obtain the gradient transformed image I grad′ .
[0068] In some embodiments, in S200, determining the distance transformation image based on the distance from each pixel in the smooth grayscale image to the nearest background point includes:
[0069] S221, for the smooth grayscale image I gray ' Perform binarization processing to obtain a binary image I bin2 , and for the binary image I bin2 Perform an open operation;
[0070] Specifically, set the binarization threshold to smooth the grayscale image I gray ' Perform binarization processing to obtain a binary image I bin2 , and for the binary image I bin2 Perform an open operation;
[0071] S222, calculate the binary image I bin2 The distance from each pixel to the nearest background point in the image is used to generate the initial distance transformation image I based on the distance from each pixel to the nearest background point. distance ;
[0072] Specifically, the binary image I is calculated by the cv2.distance Transform function bin2The distance from each pixel to the nearest background point is used to obtain the initial distance transformation image I distance ;
[0073] S223, transform the initial distance image I distance Perform dynamic threshold segmentation and perform bitwise inversion operation to obtain the distance transformation image I distance′ .
[0074] In some embodiments, in S300, the gradient transformation image and the distance transformation image are respectively transformed in size to form an enhanced image set including a plurality of enhanced image pairs, and corresponding pixels of each enhanced image pair are respectively logically operated to obtain a mixed heat map set, including:
[0075] S310, transforming the gradient image I grad′ and distance transformed image I distance′ As a set of enhanced image pairs of original size, the enhanced image pairs are respectively scaled horizontally, vertically and overall to obtain three sets of enhanced image pairs after size transformation, and the three sets of enhanced image pairs after size transformation and the enhanced image pairs of original size form an enhanced image set I;
[0076] Specifically, in the microscope image, the morphological characteristics of the bubble are a circle or an ellipse with a black edge and a bright center. According to the morphological characteristics of the bubble, the horizontal scaling factor of the image is set to α and the vertical scaling factor is set to β, respectively. grad′ and distance transformed image I distance′ The three size transformations of horizontal scaling, vertical scaling and overall scaling are performed to form an enhanced image set I including four sets of enhanced image pairs of different sizes together with the original size image.
[0077] S320, performing a bitwise OR operation on each enhanced image pair in the enhanced image set I to obtain a mixed heat map set H, where the mixed heat map set includes multiple mixed heat maps.
[0078] Where H = {h1,h2,h3,h4};
[0079] h i It is a mixed heat map. The calculation formula of the mixed heat map is:
[0080] In some embodiments, in S400, performing image morphological operations, Hough circle detection, and shape restoration on the mixed heat map set to obtain a candidate bubble edge set includes:
[0081] S410, after performing erosion, expansion, opening operation, and closing operation operations on each mixed heat map in the mixed heat map set H, performing Hough circle detection on each mixed heat map, recording all detected Hough circles, and obtaining a circular edge set;
[0082] Specifically, each mixed heat map in the mixed heat map set H is subjected to image morphological operations such as corrosion, expansion, opening operation, and closing operation to remove the influence of noise; then, the minimum radius is set to 10, the maximum radius is set to 120, the number of votes is set to 70, and the minimum spacing is set to 70. Hough circle detection is performed on each mixed heat map in the mixed heat map set H, and all detected Hough circles are recorded to obtain the circular edge set C = {c1, c2, ..., c n}, where c i =(x i ,y i ,r i ), (x i ,y i ) is the coordinate of the center of the circle, r i is the radius.
[0083] S420, restore the size of each circular edge in the circular edge set C to obtain a candidate bubble edge set B, wherein the candidate bubble edge set B includes a plurality of edges.
[0084] Specifically, for a circular edge c in the circular edge set C i , the center coordinates of the ellipse after size reduction (x i ′,y i ′) and the length of the major and minor axes They are:
[0085] (x i ′,y i ′)=(x i / α,y i / β);
[0086]
[0087] Resize each circular edge in the circular edge set C to obtain the candidate bubble edge set B = {b1, b2, ..., b n},in
[0088] In some embodiments, in S500, the step of removing duplicates from the candidate bubble edge set to obtain a bubble edge set, and filling the bubble edge set to obtain a bubble segmentation image includes:
[0089] S510, for each pair of edges in the candidate bubble edge set B, calculating the overlap of the areas within the two edges;
[0090] Specifically, the candidate bubble edge set B is subjected to edge deduplication based on the degree of overlap. For each pair of edges b in the candidate bubble edge set B, i and b j , calculate the overlap of the areas within the two edges ij , the calculation formula is:
[0091]
[0092] Among them, Area(b i ) means b i Area(b j ) means b j Area(b i )∩Area(b j ) represents the area where two contours intersect;
[0093] S520, determining whether the overlap of the areas within the two edges is greater than an overlap threshold, if so, retaining the edge with the larger area, otherwise retaining both edges, and obtaining a bubble edge set B′ after deduplication;
[0094] S530, fill all the edges in the bubble edge set B′ to obtain the bubble segmentation image I mask .
[0095] Specifically, let the overlap threshold be ε. When the overlap between two edges is greater than ε, only the edge with the larger area is retained to obtain the deduplicated bubble edge set B′. Then, fill all the edges in the bubble edge set B′ to obtain the bubble segmentation image I mask .
[0096] It can be seen from the above embodiments that the present invention has the following advantages compared with the prior art:
[0097] 1. The present invention obtains a mixed thermal map by combining the gradient grayscale image corresponding to the microscope image of the temporary mount and the distance transformation image to reduce the influence of the cell structure on the bubble detection and extract the edge contour information of the retained bubble;
[0098] 2. The present invention utilizes the morphological characteristics of bubbles, designs different scale transformations for the mixed thermal map, and obtains multiple approximate edge contours of the bubbles through Hough circle fitting;
[0099] 3. The present invention filters the overlapping edge contours by calculating the overlap of the edge contours, retains the edge contour that best covers the area where the largest bubble is located, and fills the edge contour to obtain a bubble segmentation image, thereby improving the accuracy of bubble detection.
[0100] and Figure 1 Corresponding to the method, refer to Figure 3 The embodiment of the present invention provides a temporary slide bubble detection system for physical, chemical and biological experiment assessment, comprising:
[0101] at least one processor;
[0102] at least one memory for storing at least one program;
[0103] When the at least one program is executed by the at least one processor, the at least one processor implements the above method.
[0104] It can be seen that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0105] It will be appreciated by those skilled in the art that all or some of the methods disclosed above, the system can be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, and the computer-readable medium can include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0106] The above is a specific description of the preferred implementation of the present disclosure, but the present disclosure is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions without violating the spirit of the present disclosure. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present disclosure.
Claims
1. A temporary slide bubble detection method for physical, chemical and biological experiment assessment, characterized in that: The method comprises the following steps: S100, acquiring a color microscope image of a temporary slide, and converting the color microscope image into a smooth grayscale image; S200, determining a gradient transformation image based on the grayscale gradient of the smooth grayscale image, and determining a distance transformation image based on the distance from each pixel in the smooth grayscale image to the nearest background point; S300, respectively transforming the size of the gradient transformation image and the distance transformation image to form an enhanced image set including a plurality of enhanced image pairs, and performing logical operations on corresponding pixel points of each enhanced image pair to obtain a mixed heat map set; wherein the size of each enhanced image pair is different; S400, performing image morphological operations, Hough circle detection and shape restoration on the mixed thermal map set to obtain a candidate bubble edge set; S500, removing duplicates from the candidate bubble edge set to obtain a bubble edge set, and filling the bubble edge set to obtain a bubble segmentation image.
2. The method according to claim 1, characterized in that In S100, the step of acquiring a color microscope image of a temporary slide and converting the color microscope image into a smooth grayscale image includes: S110, inputting the color microscope image I of the temporary mount rgb , convert the color microscope image into a grayscale image I gray ; S120, using median filtering to blur the edge of the grayscale image to obtain a smooth grayscale image I gray ′.
3. The method according to claim 2, characterized in that In S200, determining the gradient transformed image based on the grayscale gradient of the smoothed grayscale image includes: S211, respectively calculate the smooth grayscale image I gray ′Gray gradient g in the x-axis direction x and the gray gradient g in the y-axis direction y ; S212, the gray gradient g x and gray gradient g y Superimpose to obtain the gradient image I of the temporary mount grad ; S213, for the gradient image I grad Perform dynamic threshold segmentation to obtain a binary image I bin1 ; S214, using mean filtering to process the binary image I bin1 Perform edge blur and perform edge blur on the binary image I bin1 Perform bitwise inversion operation to obtain the gradient transformed image I grad′ .
4. The method according to claim 3, characterized in that In S200, determining the distance transformation image based on the distance from each pixel in the smooth grayscale image to the nearest background point includes: S221, for the smooth grayscale image I gray ' Perform binarization processing to obtain a binary image I bin2 , and for the binary image I bin2 Perform an open operation; S222, calculate the binary image I bin2 The distance from each pixel to the nearest background point in the image is used to generate the initial distance transformation image I based on the distance from each pixel to the nearest background point. distance ; S223, transform the initial distance image I distance Perform dynamic threshold segmentation and perform bitwise inversion operation to obtain the distance transformation image I distance′ .
5. The method according to claim 4, characterized in that In S300, the gradient transformation image and the distance transformation image are resized to form an enhanced image set including a plurality of enhanced image pairs, and logical operations are performed on corresponding pixels of each enhanced image pair to obtain a mixed heat map set, including: S310, transforming the gradient image I grad′ and distance transformed image I distance′ As a set of enhanced image pairs of original size, the enhanced image pairs are respectively scaled horizontally, vertically and overall to obtain three sets of enhanced image pairs after size transformation, and the three sets of enhanced image pairs after size transformation and the enhanced image pairs of original size form an enhanced image set I; S320, performing a bitwise OR operation on each enhanced image pair in the enhanced image set I to obtain a mixed heat map set H, where the mixed heat map set includes multiple mixed heat maps.
6. The method according to claim 5, characterized in that In S400, the step of performing image morphological operations, Hough circle detection, and shape restoration on the mixed heat map set to obtain a candidate bubble edge set includes: S410, after performing erosion, expansion, opening operation, and closing operation operations on each mixed heat map in the mixed heat map set H, performing Hough circle detection on each mixed heat map, recording all detected Hough circles, and obtaining a circular edge set; S420, restore the size of each circular edge in the circular edge set C to obtain a candidate bubble edge set B, wherein the candidate bubble edge set B includes a plurality of edges.
7. The method according to claim 6, characterized in that In S500, the step of removing duplicates from the candidate bubble edge set to obtain a bubble edge set, and filling the bubble edge set to obtain a bubble segmentation image includes: S510, for each pair of edges in the candidate bubble edge set B, calculating the overlap of the areas within the two edges; S520, determining whether the overlap of the areas within the two edges is greater than an overlap threshold, if so, retaining the edge with the larger area, otherwise retaining both edges, and obtaining a bubble edge set B′ after deduplication; S530, fill all the edges in the bubble edge set B′ to obtain the bubble segmentation image I mask .
8. A temporary slide bubble detection system for physical, chemical and biological experiment assessment, characterized in that: The system comprises: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method and system for detecting bubble defects on surface of injection molding product
CN115082485A
Bubble detection method and device and storage medium
CN117011233A
Optical glass prefabricated member detection method and system based on image enhancement
CN117455778A
Film bubble detection method and system based on machine vision
CN117952959A
Image analysis-based optimal control method for automatic adhesive tape winding machine
CN118811578A