CN116205982A - Microorganism counting method, device, equipment and storage medium based on image analysis - Google Patents
Microorganism counting method, device, equipment and storage medium based on image analysis Download PDFInfo
- Publication number
- CN116205982A CN116205982A CN202310476065.2A CN202310476065A CN116205982A CN 116205982 A CN116205982 A CN 116205982A CN 202310476065 A CN202310476065 A CN 202310476065A CN 116205982 A CN116205982 A CN 116205982A
- Authority
- CN
- China
- Prior art keywords
- image
- colony
- camera
- shooting
- colonies
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
- G06T7/73—Determining position or orientation of objects or cameras using feature-based methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/136—Segmentation; Edge detection involving thresholding
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10056—Microscopic image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30242—Counting objects in image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30244—Camera pose
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Apparatus Associated With Microorganisms And Enzymes (AREA)
- Image Processing (AREA)
Abstract
The invention belongs to the technical field of microbiology, solves the problems of poor colony counting accuracy and low efficiency in the prior art, and provides a microorganism counting method, device, equipment and storage medium based on image analysis. When the colonies of the colony samples are required to be counted, a first image of the colony samples is acquired through the first camera, the positions of the colonies are determined based on the first image, further shooting parameters of the second cameras are set and adjusted according to the positions of the colonies in the first image, so that the second cameras can acquire corresponding colony images in a targeted mode, second images of high quality of the colonies are obtained, then the number of the colonies is calculated based on the second images, and the data accuracy of colony culture is improved.
Description
Technical Field
The invention relates to the technical field of microbiology, in particular to a microorganism counting method, device and equipment based on image analysis and a storage medium.
Background
Microorganisms, including bacteria, viruses, fungi, and a large group of small protozoa, metazoans, algae, etc., are closely related to human beings, although the individuals of the microorganisms are minute, because they cover a wide variety of harmful species, the microorganisms are widely involved in various fields such as foods, medicines, agriculture and industry, environmental protection, etc., and thus have important significance for observing and counting the microorganisms.
In the colony culturing process, personnel are required to track and observe regularly, the number of the colonies depends on manual counting, the growth condition of the colonies is checked through the personnel to track and observe regularly, and counting is carried out after visible colonies are formed, so that the problems of microbial identification or statistics errors are caused due to poor timeliness, colony spreading, overlapping and visual fatigue or misoperation of detection personnel of the manual observation.
Disclosure of Invention
In view of the above, the embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for counting microorganisms based on image analysis, which are used for solving the problems of poor colony counting accuracy and low efficiency in the prior art.
The technical scheme adopted by the invention is as follows:
in one aspect, the present invention provides a method for image analysis-based microorganism counting, the method comprising configuring a first camera and a plurality of second cameras for the same colony sample, the colony sample comprising at least one colony, the method comprising:
s1: acquiring a first image corresponding to a colony sample, wherein the first image is a panoramic image of the colony sample shot by a first camera at a first moment;
s2: marking the positions of all the colonies in the first image to obtain a first target image;
s3: determining shooting parameters of the second cameras according to the position information of each colony in the first target image and the position parameters of the second cameras;
s4: acquiring a second image of the colony sample at a second moment by using each second camera according to the shooting parameters;
s5: and counting the colonies according to each second image to obtain the number of microorganisms contained in the colony samples.
Preferably, the S1 includes:
s11: acquiring corresponding colony counting stages in a colony culture period;
s12: determining each of the first moments corresponding to each of the second moments based on each of the second moments corresponding to each of the colony counting stages, wherein the first moment precedes the second moment;
s13: and controlling the first camera to acquire the first image of the colony sample based on the corresponding first moment in each colony counting stage.
Preferably, the S2 includes:
s21: acquiring a gray level image and a gray level change threshold value of the first image, wherein the gray level change threshold value is used for distinguishing distribution areas corresponding to different bacterial colonies;
s22: dividing the gray scale map into a plurality of area images according to the gray scale change threshold;
s23: and integrating a plurality of the region images into the first target image corresponding to the second camera number according to the coordinate information of each region image.
Preferably, the S23 includes:
s231: acquiring first focus coordinates of each second camera in the first image, wherein the first focus coordinates are focus coordinates of the initial position of the second camera;
s232: and integrating the region images according to the first focus coordinates and the coordinate information of the region images according to the second camera shooting ranges to obtain the first target image.
Preferably, the S232 includes:
s2321: acquiring first coordinate information of each region image, wherein the first coordinate information is the coordinates of a reference point of the region image;
s2322: calculating the linear distance between each first coordinate information and each first focus coordinate to obtain the connecting distance between each regional image and each second camera;
s2323: and dividing the shooting range of each second camera in the first image according to each connecting line distance to obtain the first target image.
Preferably, the S3 includes:
s31: determining the coordinates of reference points of the area images according to the positions of the colonies in the area images;
s32: determining shooting parameters of the second cameras corresponding to the reference point coordinates based on the reference point coordinates and the position parameters of the second cameras;
the shooting parameters comprise the shooting position of the second camera is adjusted to a target shooting position, and the target shooting position is matched with the corresponding reference point coordinates.
Preferably, the S5 includes:
s51: acquiring each second image and each second simulation image, wherein the second simulation images are shooting range diagrams corresponding to the shooting of each second camera simulated by a computer;
s52: correcting each second image based on each second simulation image to obtain a second target image;
s53: and calculating the number of microorganisms contained in the colony sample according to the second target image.
In another aspect, the present invention also provides a microorganism counting device based on image analysis, configured with a first camera and a plurality of second cameras for the same colony sample, the colony sample including at least one colony, comprising:
a first target marking module: the first target image is obtained by marking the positions of all the colonies in the first image;
a first camera adjustment module: the camera shooting device is used for determining shooting parameters of the second cameras according to the position information of each colony in the first target image and the position parameters of the second cameras;
the second image acquisition module: the second camera is used for acquiring a second image of the colony sample at a second moment according to the shooting parameters;
colony counting module: and the method is used for counting the colonies according to each second image to obtain the number of microorganisms contained in the colony samples.
In another aspect, the present invention further provides an electronic device, including: at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of any of the above.
In another aspect, the invention also provides a medium having stored thereon computer program instructions which, when executed by a processor, implement a method as claimed in any preceding claim.
In summary, the beneficial effects of the invention are as follows:
the invention provides a method, a device, equipment and a storage medium for counting microorganisms based on image analysis, which comprise the steps of setting a first camera and a plurality of second cameras for each colony sample to be counted, when the colonies of the colony samples are required to be counted, acquiring a first image of the colony samples through the first camera, determining the positions of the colonies based on the first image, setting and adjusting shooting parameters of the second cameras according to the positions of the colonies in the first image, so that the second cameras can acquire the colony images of corresponding areas in a targeted manner, obtain high-quality second images of the colonies, and then count the number of the colonies or microorganisms (strains) based on the second images, thereby being beneficial to improving the data accuracy of the colony culture and facilitating the selection of high-quality strains.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described, and it is within the scope of the present invention to obtain other drawings according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a method for acquiring a microorganism count based on image analysis in embodiment 1 of the present invention;
FIG. 2 is a flow chart of a pre-image of a colony sample obtained in example 1 of the present invention;
FIG. 3 is a schematic view of a colony sample collected by a first camera at a first time in example 1 of the present invention;
FIG. 4 is a schematic representation of a colony partition based on a first image in example 1 of the present invention;
FIG. 5 is a schematic view of the colony area and the initial focus of each second camera in example 1 of the present invention;
FIG. 6 is a schematic diagram of colony integration based on a second camera sampling range in example 1 of the present invention;
FIG. 7 is a schematic representation of colonies collected by each second camera for colony counting in example 1 of the present invention;
FIG. 8 is a schematic flow chart of the integration based on the images of the colony areas obtained in the embodiment 1 of the present invention;
fig. 9 is a flowchart of acquiring shooting parameters of each second camera in embodiment 1 of the present invention;
FIG. 10 is a schematic flow chart of the process of acquiring the colony count based on the second target image in the embodiment 1 of the present invention;
FIG. 11 is a schematic diagram showing the structure of a microorganism counting device based on image analysis in example 2 of the present invention;
fig. 12 is a schematic structural diagram of an electronic device in embodiment 3 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. In the description of the present invention, it should be understood that the terms "center," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like indicate orientations or positional relationships based on the orientation or positional relationships shown in the drawings, merely to facilitate description of the present application and simplify the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element. The various features of the invention and of the embodiments may be combined with one another without conflict, and are within the scope of the invention.
In the colony culturing process, in order to better grasp the colony culturing condition, a first camera and a plurality of second cameras are arranged for each colony sample, the colony culturing period is divided into a plurality of culturing stages, and the colony culturing condition of the next stage is optimized based on the colony culturing condition of the previous culturing stage, such as temperature, humidity and illumination adjustment; when the colony corresponding to each culture stage is counted, acquiring a colony overall view by using a first camera at a first moment, determining the colony position by using the overall view, then adjusting each second camera to a shooting position matched with the colony, acquiring a colony image by each second camera when the second moment corresponding to the colony counting is reached, and counting based on the colony image shot by the second camera; according to the invention, the colony positioning is performed through the first camera, and then the shooting position of the second camera is adjusted, so that the image quality of the colony image shot by the second camera can be improved, and further the colony counting accuracy is improved.
Example 1
Referring to fig. 1, fig. 1 is a method for counting microorganisms based on image analysis in embodiment 1 of the present invention, wherein a first camera and a plurality of second cameras are configured for any colony sample, the colony sample including at least one colony, the method comprising:
s1: acquiring a first image corresponding to a colony sample, wherein the first image is a panoramic image of the colony sample shot by a first camera at a first moment;
specifically, when the first moment corresponding to the next counting stage in the colony culturing period is entered, the first camera is controlled to acquire a colony image of the colony sample to be counted, and the first image is recorded as a first image, and the first image is a full view of the colony sample, and it is required to be explained that: the first camera is a fixed camera, and the focal length of the fixed camera is not differently set due to the initial difference of the colony samples, that is, the image ranges of the first images corresponding to a plurality of stages of the same colony sample in the culture period are the same, and/or the image ranges of the first images corresponding to the colony samples in different stages of the same position in different stages of the culture period are the same or the difference is smaller than the image area change threshold value.
S2: marking the positions of all the colonies in the first image to obtain a first target image;
specifically, a first image shot by a first camera at a first moment is displayed on a computer, position information of each colony is marked in the first image, the position information comprises reference point coordinates and edge point coordinates, wherein the edge point coordinates are boundary point coordinates or endpoint coordinates of an imaging graph of any colony in the first image, the reference point coordinates are center point coordinates of the imaging graph, the reference point coordinates can be concentration point coordinates of the number of microorganisms in the colony, the colony coordinates are not limited to the form, and the reference point coordinates can be other position coordinates which are well known by research personnel and development personnel and are favorable for colony counting.
S3: determining shooting parameters of the second cameras according to the position information of each colony in the first target image and the position parameters of the second cameras;
specifically, according to the position information of the colony in the first target image and the position parameters of each second camera, the position parameters comprise a first focal position of the second camera and a focal length (a current focal length and a maximum focal length) of the second camera, wherein the first focal position is an equivalent position of a focal point corresponding to an initial position of the second camera in the first target image; and then determining the adjusting parameters of the shooting positions of the second cameras at the second moment, wherein the first focus position is not limited to the position of the focus at the initial position of the second camera, but can be the position of the focus at the moment when the second camera shoots a colony image at the previous stage, and the selection of the first focus position can be performed by a technician according to the specific culture condition without specific limitation.
S4: acquiring a second image of the colony sample at a second moment by using each second camera according to the shooting parameters;
s5: and counting the colonies according to each second image to obtain the number of microorganisms contained in the colony samples.
Specifically, the shooting parameters of each camera are used for guiding the shooting position of each second camera and the adjustment of camera parameters (focal length, shutter, EV parameters and the like) so as to improve the image quality of colony imaging in each second camera shooting area, each second image corresponding to the colony in the corresponding area is acquired by each second camera at the second moment, then the number of microorganisms (strains) of the colony in all second images is counted, and strain culture information corresponding to the current stage in a colony sample is determined.
The method for counting microorganisms based on image analysis comprises the steps of setting a first camera and a plurality of second cameras for each colony sample to be counted, when the colonies of the colony samples are required to be counted, acquiring a first image of the colony samples through the first camera, determining the positions of the colonies based on the first image, setting and adjusting shooting parameters of the second cameras according to the positions of the colonies in the first image, so that the second cameras can acquire the colony images of corresponding areas in a targeted manner, obtain the second images with high quality of the colonies, and counting the number of the colonies or microorganisms (strains) based on the second images, thereby being beneficial to improving the accuracy of data of colony culture and facilitating selection of high-quality strains.
In one embodiment, referring to fig. 2, the step S1 includes:
s11: acquiring corresponding colony counting stages in a colony culture period;
s12: determining each of the first moments corresponding to each of the second moments based on each of the second moments corresponding to each of the colony counting stages, wherein the first moments precede the second moments;
s13: and controlling the first camera to acquire the first image of the colony sample based on the corresponding first moment in each colony counting stage.
Specifically, the colony culture period is divided into a plurality of stages, colony images are required to be acquired at any stage of colony culture, and colony counting is carried out according to the colony images, so that the colony culture condition of the current stage is determined, and the culture environment of the later stage is adjusted according to the culture condition of the previous stage, so that the culture condition of colony culture is optimized, and the success rate of colony culture and the quality of bacterial strains are promoted to be improved; setting corresponding second moments for each colony counting stage based on each colony counting stage of the colony culture period, setting first moments based on each second moment, acquiring first images corresponding to panoramic images of colony samples by using a first camera at the first moments, and acquiring second images of colonies in corresponding areas in the colony samples by using each second camera at the second moments.
In one embodiment, referring to fig. 3, the step S2 includes:
s21: acquiring a gray level image and a gray level change threshold value of the first image, wherein the gray level change threshold value is used for distinguishing distribution areas corresponding to different bacterial colonies;
s22: dividing the gray scale map into a plurality of area images according to the gray scale change threshold;
s23: and integrating a plurality of the region images into the first target image corresponding to the second camera number according to the coordinate information of each region image.
Specifically, gray processing is carried out on the first image to generate a first gray image; referring to fig. 3 and 4, fig. 3 is a gray scale image of a first image, and fig. 4 is a view of dividing the first gray scale image into a plurality of area images corresponding to each colony area based on a preset gray scale variation threshold; referring to fig. 5, 4 second cameras, respectively designated as camera a, camera B, camera C and camera D, are provided for each colony sample, and the photographing range of each second camera is determined according to the positional relationship of the area images corresponding to each colony, and referring to fig. 6, a plurality of area images are integrated into one area as the photographing range of the corresponding second camera, so as to obtain the first target image corresponding to each second camera photographing range.
It should be noted that: when the gray level change threshold is that the pixel value of a plurality of (preset number of) continuous pixel points is equal to the background pixel value, the first pixel point position equal to the background pixel value is recorded as the boundary position of the current colony.
In an embodiment, the step S23 includes:
s231: acquiring first focus coordinates of each second camera in the first image, wherein the first focus coordinates are focus coordinates of the initial position of the second camera;
s232: and integrating the region images according to the first focus coordinates and the coordinate information of the region images according to the second camera shooting ranges to obtain the first target image.
Specifically, referring to fig. 5 and 6, the focal point of the initial position of the second camera is marked as a first focal point coordinate; the first focal point of the camera A is marked as a first focal point coordinate A, the first focal point of the camera B is marked as a first focal point coordinate B, the first focal point of the camera C is marked as a first focal point coordinate C, the first focal point of the camera D is marked as a first focal point coordinate D, initial focal point positions of the second cameras are stored in a computer in advance, when a first image shot by the first camera is received, the pre-stored initial focal point positions of the second cameras are called to the first image or a first gray level diagram thereof, the optimal shooting range of the second cameras is determined based on the first focal point coordinates of the second cameras, and then all colony areas are integrated according to the optimal shooting range of the second cameras, so that an integrated first target image is obtained.
In an embodiment, after determining the shooting range of each second camera, adjusting the camera parameters of the second camera according to the shooting requirement, so that the second camera can obtain high-quality second images, before adjusting the second cameras, performing initialization verification on the positions of each second camera, and when the second cameras restore the initial parameters, adjusting each second camera based on the corresponding shooting parameters; the shooting parameters of the second camera are set by introducing the coordinates of the initial focus of the second camera, so that the redundancy of the adjustment of the second camera can be increased, and the adjustment effect of the second camera is ensured. It should be noted that, the first focal point coordinates are not limited to the position coordinates of the initial focal point, but may be other schemes with equivalent effects, such as focal point coordinates of the current focal point of each second camera, and then adjusted based on the current position of the second camera, where the selection of the first focal point coordinates is not specifically limited.
In an embodiment, the S232 includes:
s2321: acquiring first coordinate information of each region image, wherein the first coordinate information is the coordinates of a reference point of the region image;
s2322: calculating the linear distance between each first coordinate information and each first focus coordinate to obtain the connecting distance between each regional image and each second camera;
s2323: and dividing the shooting range of each second camera in the first image according to each connecting line distance to obtain the first target image.
Specifically, a coordinate system is established based on the first image, reference points of all the colonies are marked in the first image, first coordinate information corresponding to the reference points representing the positions of all the colonies is obtained, the connecting line distance between each reference point and the current focus of each second camera is calculated, and the imaging ranges of a plurality of the colonies are associated with the shooting ranges corresponding to each second camera based on the connecting line distance between each reference point and the current focus of each second camera, so that a first target image is obtained; namely, dividing the effective shooting range of each second camera based on each connecting line distance, and ensuring the imaging quality of each colony, as shown in fig. 7; thereby improving the quality of the sample used for counting the bacterial colonies and improving the accuracy of counting the bacterial colonies.
In one embodiment, referring to fig. 9, the step S3 includes:
s31: determining the coordinates of reference points of the area images according to the positions of the colonies in the area images;
s32: determining shooting parameters of the second cameras corresponding to the reference point coordinates based on the reference point coordinates and the position parameters of the second cameras;
the shooting parameters comprise the shooting position of the second camera is adjusted to a target shooting position, and the target shooting position is matched with the corresponding reference point coordinates.
Specifically, in the area image corresponding to each colony, determining a reference point coordinate representing the position of the colony, and determining, based on each reference point coordinate and a position parameter (including a shooting range and a focus coordinate) of each second camera, shooting parameters of each second camera, where the shooting parameters include camera parameters that need to be adjusted when the second camera shoots a colony in a specified area, so as to adjust the shooting position of the second camera to a target reference position that is matched with the reference point coordinate, where the camera parameters include: shooting range, focus, focal length, etc.
In one embodiment, referring to fig. 10, the step S5 includes:
s51: acquiring each second image and each second simulation image, wherein the second simulation images are shooting range diagrams corresponding to the shooting of each second camera simulated by a computer;
s52: correcting each second image based on each second simulation image to obtain a second target image;
s53: and calculating the number of microorganisms contained in the colony sample according to the second target image.
Specifically, after the shooting ranges of the second cameras are determined based on the first target image, generating a second simulation image based on boundary coordinates of a colony area corresponding to the shooting ranges of the second cameras, wherein the second simulation image is a boundary range diagram corresponding to a colony imaging pattern and is used for determining an effective image range of the second image; after each second camera collects second images of colonies in the corresponding areas at a second moment, verifying the effective areas of the second images by using second simulation images corresponding to each second image, and integrating each second image after determining the effective areas into a second target image; then, the number of microorganisms contained in the colony is calculated based on the second target image, and the colony technical method can select a common eight-neighborhood edge tracking method to detect the edge of the colony and perform colony counting by using a connected area counting method.
The method for counting microorganisms based on image analysis comprises the steps of setting a first camera and a plurality of second cameras for each colony sample to be counted, when the colonies of the colony samples are required to be counted, acquiring a first image of the colony samples through the first camera, determining the positions of the colonies based on the first image, setting and adjusting shooting parameters of the second cameras according to the positions of the colonies in the first image, so that the second cameras can acquire the colony images of corresponding areas in a targeted manner, obtain the second images with high quality of the colonies, and counting the number of the colonies or microorganisms (strains) based on the second images, thereby being beneficial to improving the accuracy of data of colony culture and facilitating selection of high-quality strains.
Example 2
Referring to fig. 11, the image analysis-based microorganism counting method of the present invention according to embodiment 1 further provides an image analysis-based microorganism counting apparatus, wherein a first camera and a plurality of second cameras are configured for the same colony sample, the colony sample including at least one colony, comprising:
a first image acquisition module: the method comprises the steps of acquiring a first image corresponding to a colony sample, wherein the first image is a panoramic image of the colony sample shot by a first camera at a first moment;
a first target marking module: the first target image is obtained by marking the positions of all the colonies in the first image;
a first camera adjustment module: the camera shooting device is used for determining shooting parameters of the second cameras according to the position information of each colony in the first target image and the position parameters of the second cameras;
the second image acquisition module: the second camera is used for acquiring a second image of the colony sample at a second moment according to the shooting parameters;
colony counting module: and the method is used for counting the colonies according to each second image to obtain the number of microorganisms contained in the colony samples.
The method for counting microorganisms based on image analysis comprises the steps of setting a first camera and a plurality of second cameras for each colony sample to be counted, when the colonies of the colony samples are required to be counted, acquiring a first image of the colony samples through the first camera, determining the positions of the colonies based on the first image, setting and adjusting shooting parameters of the second cameras according to the positions of the colonies in the first image, so that the second cameras can acquire the colony images of corresponding areas in a targeted manner, obtain the second images with high quality of the colonies, and counting the number of the colonies or microorganisms (strains) based on the second images, thereby being beneficial to improving the accuracy of data of colony culture and facilitating selection of high-quality strains.
In an embodiment, the first image acquisition module includes:
acquiring a counting information unit: acquiring corresponding colony counting stages in a colony culture period;
a first time unit: determining each of the first moments corresponding to each of the second moments based on each of the second moments corresponding to each of the colony counting stages, wherein the first moment precedes the second moment;
a first image unit: and controlling the first camera to acquire the first image of the colony sample based on the corresponding first moment in each colony counting stage.
In one embodiment, the first object marking module includes:
parameter acquisition unit: acquiring a gray level image and a gray level change threshold value of the first image, wherein the gray level change threshold value is used for distinguishing distribution areas corresponding to different bacterial colonies;
region dividing unit: dividing the gray scale map into a plurality of area images according to the gray scale change threshold;
region integration unit: and integrating a plurality of the region images into the first target image corresponding to the second camera number according to the coordinate information of each region image.
In an embodiment, the region integration unit includes:
focal information unit: acquiring first focus coordinates of each second camera in the first image, wherein the first focus coordinates are equivalent to the current focus of the second camera in the colony sample;
distance integrating unit: and integrating the region images according to the first focus coordinates and the coordinate information of the region images according to the second camera shooting ranges to obtain the first target image.
In an embodiment, the distance integrating unit S232 includes:
a first coordinate unit: acquiring first coordinate information of each region image, wherein the first coordinate information is the coordinates of a reference point of the region image;
coordinate processing unit: calculating the linear distance between each first coordinate information and each first focus coordinate to obtain the connecting distance between each regional image and each second camera;
distance distribution unit: and dividing the shooting range of each second camera in the first image according to each connecting line distance to obtain the first target image.
In an embodiment, the first camera adjustment module S3 includes:
parameter processing unit: determining the coordinates of reference points of the area images according to the positions of the colonies in the area images;
parameter approval unit: determining shooting parameters of the second cameras corresponding to the reference point coordinates based on the reference point coordinates and the position parameters of the second cameras;
the shooting parameters are used for adjusting the shooting position of the second camera to a target shooting position, and the target shooting position is matched with the corresponding reference point coordinates.
In one embodiment, the colony counting unit comprises:
an image acquisition unit: acquiring each second image and each second simulation image, wherein the second simulation images are shooting range diagrams corresponding to the shooting of each second camera simulated by a computer;
an image correction unit: correcting each second image based on each second simulation image to obtain a second target image;
a colony calculating unit: and calculating the number of microorganisms contained in the colony sample according to the second target image.
The invention provides a microorganism counting device based on image analysis, which comprises a first camera and a plurality of second cameras, wherein the first camera and the plurality of second cameras are arranged for each colony sample to be counted, when the colonies of the colony samples are required to be counted, the first images of the colony samples are firstly obtained through the first cameras, the positions of the colonies are determined based on the first images, further, the shooting parameters of the second cameras are set and regulated according to the positions of the colonies in the first images, so that the second cameras can obtain the colony images of corresponding areas in a targeted manner, and obtain the second images with high quality of the colonies, and then, the statistics of the number of the colonies or microorganisms (strains) is carried out based on the second images, thereby being beneficial to improving the data accuracy of the colony culture and facilitating the selection of high-quality strains.
Example 3
The present invention provides an electronic device and a storage medium, see fig. 12, comprising at least one processor, at least one memory and computer program instructions stored in the memory.
In particular, the processor may comprise a Central Processing Unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured as one or more integrated circuits implementing embodiments of the present invention, the electronic device comprising at least one of: computers, mobile terminals, PCs, tablet computers, etc.
The memory may include mass storage for data or instructions. By way of example, and not limitation, the memory may comprise a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or universal serial bus (Universal Serial Bus, USB) Drive, or a combination of two or more of the foregoing. The memory may include removable or non-removable (or fixed) media, where appropriate. The memory may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory is a non-volatile solid state memory. In a particular embodiment, the memory includes Read Only Memory (ROM). The ROM may be mask programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these, where appropriate.
The processor reads and executes the computer program instructions stored in the memory to implement any one of the image analysis-based microorganism counting methods in the first embodiment.
In one example, the electronic device may also include a communication interface and a bus. The processor, the memory and the communication interface are connected through a bus and complete communication with each other.
The communication interface is mainly used for realizing communication among the modules, the devices, the units and/or the equipment in the embodiment of the invention.
The bus includes hardware, software, or both that couple components of the electronic device to each other. By way of example, and not limitation, the buses may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a micro channel architecture (MCa) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus, or a combination of two or more of the above. The bus may include one or more buses, where appropriate. Although embodiments of the invention have been described and illustrated with respect to a particular bus, the invention contemplates any suitable bus or interconnect.
It should be understood that the invention is not limited to the particular arrangements and instrumentality described above and shown in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between steps, after appreciating the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented in hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine readable medium or transmitted over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio Frequency (RF) links, and the like. The code segments may be downloaded via computer networks such as the internet, intranets, etc.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.
Claims (10)
1. A method of microorganism counting based on image analysis, wherein a first camera and a plurality of second cameras are configured for the same colony sample, the colony sample comprising at least one colony, the method comprising:
s1: acquiring a first image corresponding to a colony sample, wherein the first image is a panoramic image of the colony sample shot by a first camera at a first moment;
s2: marking the positions of all the colonies in the first image to obtain a first target image;
s3: determining shooting parameters of the second cameras according to the position information of each colony in the first target image and the position parameters of the second cameras;
s4: acquiring a second image of the colony sample at a second moment by using each second camera according to the shooting parameters;
s5: and counting the colonies according to each second image to obtain the number of microorganisms contained in the colony samples.
2. The image analysis-based microorganism counting method according to claim 1, wherein the S1 comprises:
s11: acquiring corresponding colony counting stages in a colony culture period;
s12: determining each of the first moments corresponding to each of the second moments based on each of the second moments corresponding to each of the colony counting stages, wherein the first moment precedes the second moment;
s13: and controlling the first camera to acquire the first image of the colony sample based on the corresponding first moment in each colony counting stage.
3. The image analysis-based microorganism counting method according to claim 1, wherein the S2 comprises:
s21: acquiring a gray level image and a gray level change threshold value of the first image, wherein the gray level change threshold value is used for distinguishing distribution areas corresponding to different bacterial colonies;
s22: dividing the gray scale map into a plurality of area images according to the gray scale change threshold;
s23: and integrating a plurality of the region images into the first target image corresponding to the second camera number according to the coordinate information of each region image.
4. The image analysis-based microorganism counting method according to claim 3, wherein the S23 comprises:
s231: acquiring first focus coordinates of each second camera in the first image, wherein the first focus coordinates are focus coordinates of the initial position of the second camera;
s232: and integrating the region images according to the first focus coordinates and the coordinate information of the region images according to the second camera shooting ranges to obtain the first target image.
5. The image analysis-based microorganism counting method according to claim 4, wherein the S232 includes:
s2321: acquiring first coordinate information of each region image, wherein the first coordinate information is the coordinates of a reference point of the region image;
s2322: calculating the linear distance between each first coordinate information and each first focus coordinate to obtain the connecting distance between each regional image and each second camera;
s2323: and dividing the shooting range of each second camera in the first image according to each connecting line distance to obtain the first target image.
6. The image analysis-based microorganism counting method according to any one of claims 3 to 5, wherein S3 comprises:
s31: determining the coordinates of reference points of the area images according to the positions of the colonies in the area images;
s32: determining shooting parameters of the second cameras corresponding to the reference point coordinates based on the reference point coordinates and the position parameters of the second cameras;
the shooting parameters comprise the shooting position of the second camera is adjusted to a target shooting position, and the target shooting position is matched with the corresponding reference point coordinates.
7. The image analysis-based microorganism counting method according to claim 1, wherein the S5 comprises:
s51: acquiring each second image and each second simulation image, wherein the second simulation images are shooting range diagrams corresponding to the shooting of each second camera simulated by a computer;
s52: correcting each second image based on each second simulation image to obtain a second target image;
s53: and calculating the number of microorganisms contained in the colony sample according to the second target image.
8. A microbial counting device based on image analysis, characterized in that a first camera and a plurality of second cameras are configured for the same colony sample, said colony sample comprising at least one colony, comprising:
a first image acquisition module: the method comprises the steps of acquiring a first image corresponding to a colony sample, wherein the first image is a panoramic image of the colony sample shot by a first camera at a first moment;
a first target marking module: the first target image is obtained by marking the positions of all the colonies in the first image;
a first camera adjustment module: the camera shooting device is used for determining shooting parameters of the second cameras according to the position information of each colony in the first target image and the position parameters of the second cameras;
the second image acquisition module: the second camera is used for acquiring a second image of the colony sample at a second moment according to the shooting parameters;
colony counting module: and the method is used for counting the colonies according to each second image to obtain the number of microorganisms contained in the colony samples.
9. An electronic device, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of any one of claims 1-7.
10. A storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of any of claims 1-7.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310769851.1A CN116797638B (en) | 2023-04-28 | 2023-04-28 | Method, device, equipment and storage medium for microorganism counting by using combined image |
CN202310476065.2A CN116205982B (en) | 2023-04-28 | 2023-04-28 | Microorganism counting method, device, equipment and storage medium based on image analysis |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310476065.2A CN116205982B (en) | 2023-04-28 | 2023-04-28 | Microorganism counting method, device, equipment and storage medium based on image analysis |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310769851.1A Division CN116797638B (en) | 2023-04-28 | 2023-04-28 | Method, device, equipment and storage medium for microorganism counting by using combined image |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116205982A true CN116205982A (en) | 2023-06-02 |
CN116205982B CN116205982B (en) | 2023-06-30 |
Family
ID=86508007
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310769851.1A Active CN116797638B (en) | 2023-04-28 | 2023-04-28 | Method, device, equipment and storage medium for microorganism counting by using combined image |
CN202310476065.2A Active CN116205982B (en) | 2023-04-28 | 2023-04-28 | Microorganism counting method, device, equipment and storage medium based on image analysis |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310769851.1A Active CN116797638B (en) | 2023-04-28 | 2023-04-28 | Method, device, equipment and storage medium for microorganism counting by using combined image |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN116797638B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116797638A (en) * | 2023-04-28 | 2023-09-22 | 深圳零一生命科技有限责任公司 | Method, device, equipment and storage medium for microorganism counting by using combined image |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118429291A (en) * | 2024-01-03 | 2024-08-02 | 深圳零一生命科技有限责任公司 | Batch culture strain counting method, device, equipment and storage medium |
CN118261910B (en) * | 2024-05-29 | 2024-07-26 | 南昌千麦医学检验实验室有限公司 | Strain detection method and system based on image recognition |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09121836A (en) * | 1995-10-27 | 1997-05-13 | Densei:Kk | Apparatus for measuring number of colonies |
JP2006345750A (en) * | 2005-06-15 | 2006-12-28 | N Tech:Kk | Method for counting number of colonies of microorganism |
JP2015171334A (en) * | 2014-03-11 | 2015-10-01 | 富士通株式会社 | Colony counting method, occurrence detection method of combination among bacteria colonies, counting method of bacteria colonies, colony counting program, and colony counter |
CN105335982A (en) * | 2015-11-02 | 2016-02-17 | 江苏大学 | Segmentation method for adhesion bacterial colonies |
CN107580715A (en) * | 2015-04-23 | 2018-01-12 | Bd科斯特公司 | Method and system for automatic counting microbial colonies |
CN115298321A (en) * | 2020-03-12 | 2022-11-04 | 芬克·N·格伯博士实验室技术有限公司 | Method for counting microbial colonies |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104113687A (en) * | 2014-06-24 | 2014-10-22 | 中兴通讯股份有限公司 | Image processing method and electronic equipment |
CN109509173A (en) * | 2018-09-27 | 2019-03-22 | 上海海恒机电仪表有限公司 | A kind of method of counting and counting device of bacterial clump |
CN112257508B (en) * | 2020-06-30 | 2022-03-11 | 华为技术有限公司 | Method for identifying hygiene condition of object and related electronic equipment |
CN112686857A (en) * | 2020-12-29 | 2021-04-20 | 中国科学院苏州生物医学工程技术研究所 | High-throughput multi-species colony counting method |
CN113592057B (en) * | 2021-07-22 | 2024-07-30 | 广东环凯生物科技有限公司 | Colony count analysis method, apparatus and readable storage medium |
CN115240190A (en) * | 2022-06-17 | 2022-10-25 | 湖州师范学院 | Colony counting model construction method, counting method and full life cycle description method |
CN116797638B (en) * | 2023-04-28 | 2024-02-02 | 深圳零一生命科技有限责任公司 | Method, device, equipment and storage medium for microorganism counting by using combined image |
-
2023
- 2023-04-28 CN CN202310769851.1A patent/CN116797638B/en active Active
- 2023-04-28 CN CN202310476065.2A patent/CN116205982B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09121836A (en) * | 1995-10-27 | 1997-05-13 | Densei:Kk | Apparatus for measuring number of colonies |
JP2006345750A (en) * | 2005-06-15 | 2006-12-28 | N Tech:Kk | Method for counting number of colonies of microorganism |
JP2015171334A (en) * | 2014-03-11 | 2015-10-01 | 富士通株式会社 | Colony counting method, occurrence detection method of combination among bacteria colonies, counting method of bacteria colonies, colony counting program, and colony counter |
CN107580715A (en) * | 2015-04-23 | 2018-01-12 | Bd科斯特公司 | Method and system for automatic counting microbial colonies |
CN105335982A (en) * | 2015-11-02 | 2016-02-17 | 江苏大学 | Segmentation method for adhesion bacterial colonies |
CN115298321A (en) * | 2020-03-12 | 2022-11-04 | 芬克·N·格伯博士实验室技术有限公司 | Method for counting microbial colonies |
Non-Patent Citations (2)
Title |
---|
PUTMAN,M 等: "Simplified method to automatically count bacterial colony forming unit", 《JOURNAL OF IMMUNOLOGICAL METHODS》, vol. 302, pages 99 - 102, XP005008045, DOI: 10.1016/j.jim.2005.05.003 * |
刘书朋 等: "菌落计数器图像分析系统的设计与实现", 《工业计算机》, vol. 31, no. 10, pages 102 - 104 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116797638A (en) * | 2023-04-28 | 2023-09-22 | 深圳零一生命科技有限责任公司 | Method, device, equipment and storage medium for microorganism counting by using combined image |
CN116797638B (en) * | 2023-04-28 | 2024-02-02 | 深圳零一生命科技有限责任公司 | Method, device, equipment and storage medium for microorganism counting by using combined image |
Also Published As
Publication number | Publication date |
---|---|
CN116205982B (en) | 2023-06-30 |
CN116797638A (en) | 2023-09-22 |
CN116797638B (en) | 2024-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN116205982B (en) | Microorganism counting method, device, equipment and storage medium based on image analysis | |
CN102521560B (en) | Instrument pointer image identification method of high-robustness rod | |
CN105049734A (en) | License camera capable of giving shooting environment shooting prompt and shooting environment detection method | |
CN109903282B (en) | Cell counting method, system, device and storage medium | |
CN113505820A (en) | Image recognition model training method, device, equipment and medium | |
KR101974638B1 (en) | Apparatus for processing plant images and method thereof | |
CN110287907A (en) | A kind of method for checking object and device | |
CN109389176A (en) | Grain measurement of moisture content method and system based on WIFI channel state information | |
CN110991297A (en) | Target positioning method and system based on scene monitoring | |
CN112580671A (en) | Automatic detection method and system for multiple development stages of rice ears based on deep learning | |
CN117495865B (en) | Method, device, equipment and storage medium for optimizing colony counting sample | |
CN112945395A (en) | Livestock and poultry animal body temperature evaluation method based on target detection | |
CN111402318A (en) | Method and device for rapidly estimating yield of fruits on tree | |
CN116597246A (en) | Model training method, target detection method, electronic device and storage medium | |
CN111539329B (en) | Self-adaptive substation pointer instrument identification method | |
CN112651305B (en) | Method for identifying microorganism species | |
CN110909653B (en) | Method for automatically calibrating screen cabinet of distribution room by indoor robot | |
CN113223094A (en) | Binocular imaging system, control method and device thereof, and storage medium | |
CN114119720A (en) | Target surface impact point detection and positioning method based on convolutional neural network | |
CN112116572A (en) | Method for accurately positioning surface position image of object by camera | |
CN112907541A (en) | Palm image quality evaluation model construction method and device | |
US12094155B2 (en) | Shooting score identifying method and device, and electronic device | |
CN114913316B (en) | Image classification method and device for meter recognition of industrial equipment, electronic equipment and storage medium | |
CN114494403B (en) | Shellfish target size rapid measurement method based on deep learning | |
CN115641458B (en) | AI identification system for target cultivation to be counted and bank wind control application method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |