CN111462143B - Watershed algorithm-based insect body recognition and counting method and system - Google Patents
Watershed algorithm-based insect body recognition and counting method and system Download PDFInfo
- Publication number
- CN111462143B CN111462143B CN202010205190.6A CN202010205190A CN111462143B CN 111462143 B CN111462143 B CN 111462143B CN 202010205190 A CN202010205190 A CN 202010205190A CN 111462143 B CN111462143 B CN 111462143B
- Authority
- CN
- China
- Prior art keywords
- image
- contour
- area
- counting
- worm
- 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.)
- Active
Links
- 241000238631 Hexapoda Species 0.000 title claims abstract description 48
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000012545 processing Methods 0.000 claims abstract description 60
- 239000003550 marker Substances 0.000 claims abstract description 17
- 239000003086 colorant Substances 0.000 claims description 9
- 238000009826 distribution Methods 0.000 claims description 9
- 230000007797 corrosion Effects 0.000 claims description 7
- 238000005260 corrosion Methods 0.000 claims description 7
- 241000607479 Yersinia pestis Species 0.000 abstract description 9
- 241000208125 Nicotiana Species 0.000 description 26
- 235000002637 Nicotiana tabacum Nutrition 0.000 description 26
- 241000255908 Manduca sexta Species 0.000 description 14
- 230000003628 erosive effect Effects 0.000 description 7
- 239000000779 smoke Substances 0.000 description 6
- 235000019504 cigarettes Nutrition 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 4
- 241000196324 Embryophyta Species 0.000 description 3
- 201000010099 disease Diseases 0.000 description 3
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 3
- 230000002265 prevention Effects 0.000 description 3
- 238000000926 separation method Methods 0.000 description 3
- 230000003044 adaptive effect Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000010008 shearing Methods 0.000 description 2
- 238000003860 storage Methods 0.000 description 2
- 239000000853 adhesive Substances 0.000 description 1
- 230000001070 adhesive effect Effects 0.000 description 1
- 238000004378 air conditioning Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000000428 dust Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- 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/12—Edge-based segmentation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/20—Image enhancement or restoration using local operators
- G06T5/30—Erosion or dilatation, e.g. thinning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/70—Denoising; Smoothing
-
- 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/13—Edge detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
- G06T7/62—Analysis of geometric attributes of area, perimeter, diameter or volume
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Geometry (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
Abstract
The invention discloses a watershed algorithm-based insect body recognition and counting method and system, and belongs to the technical field of image processing. The method of the invention comprises the following steps: collecting an image containing a worm body, and carrying out binarization processing to obtain a binary image; deleting the contour of which the area is smaller than the minimum value of the worm body area in the binary image, and filling the worm body contour to obtain a filled image; gradually corroding the filled image, marking the outlines of all worm bodies, and performing expansion processing on the marked background to obtain a first marked image; further processing the filled image and the first marker map by using a watershed algorithm to obtain a second marker map; and acquiring the roundness and the area of the contour in the second marking map, and counting the number of the contours to finish counting. Compared with the traditional mode of counting by manpower, the method can automatically count the number of the insect bodies, has higher efficiency and recognition counting accuracy, and is suitable for counting various insect pests.
Description
Technical Field
The invention belongs to the technical field of image processing, and particularly relates to a method and a system for identifying and counting insect bodies based on a watershed algorithm.
Background
In China, crop losses caused by plant diseases and insect pests are quite remarkable every year, so that the prevention and control of the plant diseases and insect pests have important significance for guaranteeing the economic development of the nation, and the prevention and control time is judged and the prevention and control effect is evaluated when the occurrence degree of the plant diseases and insect pests is judged.
Taking the tobacco industry as an example, the tobacco pests are the main pests in the tobacco industry in China, and in the whole tobacco circulation and production process, the tobacco pests can be harmed in each link from tobacco leaf purchase to threshing and redrying, storage and transportation, production and processing, and finished product storage, transportation and sale. Traps consisting of a piece of cardboard coated with adhesive and a trap core are important tools for monitoring tobacco insects and become stuck when they are attracted by the smell of the trap core. Currently, the density of the tobacco insects in the front area is generally known by manually counting the number of the insects on the trap, and therefore when the number of the tobacco insects is large, the surrounding environment is timely cleaned and killed. On one hand, however, the manual counting mode is difficult to realize on some special smoke worm monitoring points, for example, the smoke worm counting at the top end of an elevated warehouse requires workers to climb onto shelves with several floors of height, so that certain potential safety hazards exist; there are also some smoke insect monitoring points in the air-conditioning pipeline, and workers are difficult to enter the checking. On the other hand, when the number of the tobacco worms is large, a certain counting error exists in the manual counting mode, and the efficiency is low.
Disclosure of Invention
Aiming at the defects of the prior art, the invention aims to provide a watershed algorithm-based method and a watershed algorithm-based system for identifying and counting insect bodies, and aims to solve the problems that the manual counting mode is low in accuracy and efficiency and has potential safety hazards sometimes.
In order to achieve the above object, in one aspect, the present invention provides a watershed algorithm-based method for identifying and counting insect bodies, including the following steps:
collecting an image containing a worm body, and carrying out binarization processing to obtain a binary image;
deleting the contour of which the area is smaller than the minimum value of the worm body area in the binary image, and filling the worm body contour to obtain a filled image;
gradually corroding the filled image, marking all the worm body outlines, and performing expansion processing on the marked background to obtain a first marked image;
further processing the filled image and the first mark image by using a watershed algorithm to obtain a second mark image;
and acquiring the roundness and the area of the contour in the second marking map, and counting the number of the contours to finish counting.
Wherein the binarization processing further includes:
and respectively separating the RGB color space and the LAB color space, and removing interference factors according to the characteristics of different channel images.
Further, gradually eroding the filled image, marking all the worm body outlines, and performing expansion processing on the marked background to obtain a first marked image comprises:
newly building a binary image, processing the filled image by adopting a gradual corrosion method, setting an area threshold, and marking the position of the contour on the newly built binary image when the area of the contour of the worm is smaller than the area threshold;
and performing expansion processing, and marking a background on the newly-built binary image.
Furthermore, when the number of the contours is counted, all the worm body contours are traversed, the contours with the roundness not meeting the standard and the areas more than one time larger than the average area are considered as the contours formed by adhesion of a plurality of worm bodies, and the number of the worm bodies contained in the contours is determined by an area comparison method.
Further, after counting is completed, according to the distribution of the outlines in the second label map, the outlines are filled with random colors, and the information of the total number of the insects is displayed.
The invention also provides a watershed algorithm-based insect body recognition and counting system, which comprises a collecting unit and a processing unit; wherein
The acquisition unit is used for acquiring an image containing a worm body and carrying out binarization processing to obtain a binary image;
the processing unit includes:
the filling unit is used for deleting the contour of which the area is smaller than the minimum value of the worm body area in the binary image, and filling the contour of the worm body to obtain a filled image;
the first marking unit is used for gradually corroding the filled image, marking the outlines of all worm bodies, and performing expansion processing on the marked background to obtain a first marked image;
the second marking unit is used for further processing the filled image and the first marking image by utilizing a watershed algorithm to obtain a second marking image;
and the counting unit is used for acquiring the roundness and the area of the outline in the second marking map, and counting the number of the outlines to finish counting.
Further, the binarization processing further includes:
and respectively separating RGB color space and LAB color space, and removing interference factors according to the characteristics of different channel images.
Further, gradually eroding the filled image, marking all the worm body outlines, and performing expansion processing on the marked background to obtain a first marked image comprises:
newly building a binary image, processing the filled image by adopting a gradual corrosion method, setting an area threshold, and marking the position of the contour on the newly built binary image when the area of the contour of the worm is smaller than the area threshold;
and performing expansion processing, and marking a background on the newly-built binary image.
Furthermore, when the number of the contours is counted, the counting unit traverses all the contours of the worm bodies, the contours with the roundness not meeting the standard and the areas more than one time larger than the average area are regarded as the contours formed by adhesion of a plurality of worm bodies, and the number of the worm bodies contained in the contours is determined by an area comparison method.
Further, the system also comprises
And the display unit is used for filling the contour with random colors according to the contour distribution in the second marker map after counting is finished, and displaying the information of the total number of the insects.
Compared with the prior art, on one hand, the insect body recognition counting method provided by the invention has the advantages that the defects of high cost, potential safety hazard, low efficiency and the like of the existing manual cigarette counting method can be improved by acquiring the insect body image and then automatically counting the image; on the other hand, on the basis of removing the interference factors in the picture and carrying out filling processing, the image recognition method based on the watershed algorithm is adopted, so that the counting accuracy is improved, and the method is suitable for counting various insects.
Drawings
FIG. 1 is a flowchart of an insect recognition and counting method based on a watershed algorithm according to an embodiment of the present invention.
Fig. 2 is a flowchart of a method for identifying and counting tobacco insects based on a watershed algorithm according to an embodiment of the present invention.
Fig. 3 is a diagram of a tobacco insect trap photographed by a cigarette factory in the field in the embodiment of the present invention.
Fig. 4 is a cut-out view of the original image without black frame interference.
FIG. 5 (a) is a result diagram of adaptive binarization of a G-channel image; FIG. 5 (b) is an L-channel binary map; FIG. 5 (c) is a binary image of the A channel; FIG. 5 (d) is a B-channel binary diagram.
Figure 6 is a binary diagram with tobacco, trap and spot interference removed.
FIG. 7 is a binary image processed by filling and deleting small area contours.
FIG. 8 is a binary image with background lines removed by an open operation.
Fig. 9 is a labeled graph after a gradual erosion and expansion treatment.
FIG. 10 is a marker map after processing by the watershed algorithm.
Fig. 11 is a graph showing the final display result obtained by the method of the present embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention. In addition, the technical features involved in the respective embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
As shown in fig. 1, an embodiment of the present invention provides an insect body identification and counting method based on a watershed algorithm, including the following steps:
collecting an image containing a worm body, and carrying out binarization processing to obtain a binary image;
deleting the contour of which the area is smaller than the minimum value of the worm body area in the binary image, and filling the worm body contour to obtain a filled image;
gradually corroding the filled image, marking the outlines of all worm bodies, and performing expansion processing on the marked background to obtain a first marked image;
further processing the filled image and the first mark image by using a watershed algorithm to obtain a second mark image;
acquiring the roundness and the area of the outline in the second marking map, counting the number of the outlines and counting;
and after counting is finished, filling the contour with random colors according to the contour distribution in the second labeled graph, and displaying the information of the total number of the insects.
Wherein the binarization processing further includes:
and respectively separating RGB color space and LAB color space, and removing interference factors according to the characteristics of different channel images.
Further, gradually eroding the filled image, marking all the worm body outlines, and performing expansion processing on the marked background to obtain a first marked image comprises:
newly building a binary image, processing the filled image by adopting a gradual corrosion method, setting an area threshold, and marking the position of the contour on the newly built binary image when the area of the contour of the worm is smaller than the area threshold;
and performing expansion processing, and marking a background on the newly-built binary image.
Furthermore, when the number of the contours is counted, all the worm body contours are traversed, the contours with the roundness not meeting the standard and the areas more than one time larger than the average area are considered as the contours formed by adhesion of a plurality of worm bodies, and the number of the worm bodies contained in the contours is determined by an area comparison method.
As can be understood by those skilled in the art, the method for identifying and counting the insects based on the watershed algorithm provided by the invention can be applied to statistics of various insects. Taking the situation of the statistics of the tobacco insects as an example, a method for identifying and counting the tobacco insects based on the watershed algorithm is introduced, and a flow chart is shown in fig. 2, and the method comprises the following steps:
(1) Shooting images of the tobacco worm trapper by the camera, and intercepting an effective tobacco worm detection area to obtain a shearing graph;
(2) Separating RGB color space and LAB color space of the cut picture respectively, and removing interference factors such as tobacco leaves, trapping cores, dust and the like in the original picture according to the characteristics of different channel pictures;
(3) Deleting the outline with the area smaller than the minimum value of the area of the tobacco worm in the picture, and filling the outline of the tobacco worm to ensure that the outline is complete;
(4) Removing a background line of the tobacco insect trapper by using an opening operation;
(5) Marking all the contours of the tobacco worms by using a gradual corrosion method, and performing expansion treatment to mark a background;
(6) Further processing the marker map by using a watershed algorithm to obtain a watershed algorithm marker map;
(7) Calculating the roundness and the area of the contour in the watershed algorithm mark image, and counting the number of the contours;
(8) All contours are filled in the cut map with random colors according to the contour distribution in the watershed algorithm marker map, and the total number of smoke worms is shown in the upper left corner of the cut map.
Preferably, in the step (1), the picture of the tobacco pest trap is shot through the camera, and as the shot picture may further include other interference objects such as a wall surface and the like, an effective tobacco pest monitoring area needs to be intercepted to obtain a shearing graph.
Preferably, in the step (2), the cut map obtained in the step (1) is subjected to RGB color space and LAB color space separation, respectively. The tobacco leaves are generally yellow, the trap cores arranged on the traps are generally red or white, and objects which are not the tobacco worms can be identified by separating color spaces. And selecting the G channel image to perform self-adaptive binarization processing to obtain a binary image of the cut image. After the L-channel image is subjected to binarization processing, light spot interference caused by flash lamp reflection in the binary image can be removed through contrast filling operation. After the A channel image is subjected to binarization processing, interference caused by trapping cores in the binary image can be removed through contrast filling operation. After the B channel image is subjected to binarization processing, interference caused by interference factors such as tobacco leaves and the like in the binary image can be removed through comparison filling operation. When the method is used for identifying and counting other insects, the specific treatment can be adjusted according to actual needs.
Preferably, in the step (3), the interference-removed binary image obtained in the step (2) is subjected to contour searching operation, and area information of all contours is calculated. And setting a threshold value of the area of the tobacco worm, filling the outline into black when the area of the outline is smaller than the threshold value, and removing the outline. And simultaneously calculating the center distance information of all the contours, and filling white if the center distance position of the contour is black so as to complete the contour of the tobacco worm.
Preferably, in the step (4), if the smoke insect trap carries a background line, the contour obtained in the step (3) is filled with a complete binary image according to actual needs to perform an open operation, so as to remove the background line carried by the smoke insect trap.
Preferably, in step (5), a binary image is created, the binary image processed in step (4) is processed by a gradual erosion method, an area threshold is set, and when the area of the contour is smaller than the set value, the position of the contour is marked on the created binary image. And (5) similarly, performing expansion processing on the binary image processed in the step (4), and marking a background on the newly-built binary image.
Preferably, in step (6), the new marker map obtained in step (5) and the binary map obtained in step (4) are input into a watershed algorithm to obtain a watershed algorithm marker map.
Preferably, in the step (7), the roundness and area information of the contour of the watershed algorithm marker map obtained after the step (6) are calculated, and the number of the contour is counted. And traversing all the contours, regarding the contour with the roundness not meeting the standard and the area more than one time larger than the average area as the contour formed by the adhesion of a plurality of tobacco insects, and determining that a plurality of tobacco insects exist in the contour by an area comparison method.
Preferably, in step (8), in the cut map obtained in step (1), the contours are filled with random colors according to the distribution of the contours in the watershed algorithm marker map, and information on the total number of the tobacco worms is displayed in the upper left corner of the cut map.
The embodiment adopts the watershed algorithm-based tobacco insect recognition and counting method provided by the invention to verify on-site shooting of the tobacco insect trap picture in cooperation with a cigarette factory. The pictures for the examples were taken in the field at the cigarette factory as shown in figure 3. The original image is clipped to remove the interference of the surrounding black frame, as shown in fig. 4. Fig. 5 (a) is a result of performing adaptive binarization on a G-channel image after performing RGB color space separation on the clip image. Fig. 5 (B), 5 (c), and 5 (d) are an L-channel image, an a-channel image, and a B-channel image, respectively, which are binarized after LAB color space separation of the clip image. The images of the three channels are compared and filled into a G-channel binary image, and a binary image with the tobacco leaves, the trapping cores and the light spot interference removed is obtained and is shown in FIG. 6.
And carrying out contour searching operation on the interference-removed binary image, and calculating the area information of all contours. And setting a threshold value of the area of the tobacco worm, and filling the outline into black when the area of the outline is smaller than the threshold value, and removing the outline. And simultaneously calculating the center distance information of all the contours, and filling white if the center distance position of the contour is black so as to complete the contour of the tobacco worm, wherein the result is shown in figure 7.
Fig. 8 is a binary image in which the background line is removed after the opening operation is performed. Fig. 9 is a marker map in which the binary map shown in fig. 8 is subjected to a gradual erosion process on the contour and an expansion process on the background. With the background marked black. FIG. 10 is a watershed algorithm marker map processed using a watershed algorithm, which appears to the naked eye as a black image because the contour pixel values of the watershed algorithm marker start at 1.
And (4) calculating the roundness and area information of the contour of the watershed algorithm marker map, and counting the number of the contours. And traversing all the contours, regarding the contour with the roundness not meeting the standard and the area more than one time larger than the average area as the contour formed by the adhesion of a plurality of tobacco worms, and determining that a plurality of tobacco worms exist in the contour by an area comparison method. In the cut-out map, the contours are filled with random colors according to the contour distribution in the watershed algorithm labeled map, and the information of the total number of the tobacco insects is displayed in the upper left corner of the cut-out map, and the display result is shown in fig. 11.
Correspondingly, the embodiment of the invention also provides an insect body recognition and counting system based on the watershed algorithm, which comprises a collecting unit and a processing unit; wherein
The acquisition unit is used for acquiring an image containing a worm body and carrying out binarization processing to obtain a binary image;
the processing unit includes:
the filling unit is used for deleting the contour of which the area is smaller than the minimum value of the worm body area in the binary image, and filling the contour of the worm body to obtain a filled image;
the first marking unit is used for gradually corroding the filled image, marking the outlines of all worm bodies, and performing expansion processing on the marked background to obtain a first marked image;
the second marking unit is used for further processing the filled image and the first marking image by utilizing a watershed algorithm to obtain a second marking image;
the counting unit is used for acquiring the roundness and the area of the outline in the second marking map, counting the number of the outlines and counting;
and the display unit is used for filling the contour by using random colors according to the contour distribution in the second marking map after counting is finished, and displaying the information of the total number of the insects.
Further, the binarization processing further includes:
and respectively separating the RGB color space and the LAB color space, and removing interference factors according to the characteristics of different channel images.
Further, gradually eroding the filled image, marking all the worm body outlines, and performing expansion processing on the marked background to obtain a first marked image comprises:
newly building a binary image, processing the filled image by adopting a gradual corrosion method, setting an area threshold, and marking the position of the contour on the newly built binary image when the area of the contour of the worm is smaller than the area threshold;
and performing expansion processing, and marking a background on the newly-built binary image.
Furthermore, when the number of the contours is counted, the counting unit traverses all the contours of the worm bodies, the contours with the roundness not meeting the standard and the areas more than one time larger than the average area are regarded as the contours formed by adhesion of a plurality of worm bodies, and the number of the worm bodies contained in the contours is determined by an area comparison method.
It will be understood by those skilled in the art that the foregoing is only an exemplary embodiment of the present invention, and is not intended to limit the invention to the particular forms disclosed, since various modifications, substitutions and improvements within the spirit and scope of the invention are possible and within the scope of the appended claims.
Claims (6)
1. An insect body recognition and counting method based on a watershed algorithm is characterized by comprising the following steps:
collecting an image containing a worm body, and carrying out binarization processing to obtain a binary image;
deleting the contour of which the area is smaller than the minimum value of the worm body area in the binary image, and filling the worm body contour to obtain a filled image;
gradually corroding the filled image, marking the outlines of all worm bodies, and performing expansion processing on the marked background to obtain a first marked image, wherein the first marked image comprises the following steps: newly building a binary image, processing the filled image by adopting a gradual corrosion method, setting an area threshold, and marking the position of the contour on the newly built binary image when the area of the contour of the worm body is smaller than the area threshold; performing expansion processing, and marking a background on the newly-built binary image;
further processing the filled image and the first marker map by using a watershed algorithm to obtain a second marker map;
and acquiring the roundness and the area of the contour in the second marking map, counting the number of the contours, and counting, wherein when the number of the contours is counted, traversing all the worm body contours, considering the contour of which the roundness does not meet the standard and the area is one time larger than the average area as the contour formed by adhesion of a plurality of worm bodies, and determining the number of the worm bodies contained in the contour by an area comparison method.
2. The worm recognition and counting method according to claim 1, wherein the binarization processing further comprises:
and respectively separating the RGB color space and the LAB color space, and removing interference factors according to the characteristics of different channel images.
3. The worm recognition and counting method of any one of claims 1-2, wherein after counting, the contour is filled with random colors according to the contour distribution in the second label chart, and the information of the total number of the worms is displayed.
4. An insect body recognition and counting system based on a watershed algorithm is characterized by comprising a collecting unit and a processing unit; wherein
The acquisition unit is used for acquiring an image containing a worm body and carrying out binarization processing to obtain a binary image;
the processing unit includes:
the filling unit deletes the contour of which the area is smaller than the minimum value of the worm body area in the binary image, and fills the worm body contour to obtain a filled image;
the first marking unit is used for gradually corroding the filled image, marking all worm body outlines, performing expansion processing on the marked background to obtain a first marked image, gradually corroding the filled image, and marking all worm body outlines, wherein the expansion processing is used for marking the background and comprises the following steps: newly building a binary image, processing the filled image by adopting a gradual corrosion method, setting an area threshold, and marking the position of the contour on the newly built binary image when the area of the contour of the worm is smaller than the area threshold; performing expansion processing, and marking a background on the newly-built binary image;
the second marking unit is used for further processing the filled image and the first marking image by utilizing a watershed algorithm to obtain a second marking image;
and the counting unit is used for traversing all the insect body contours when counting the number of the contours, considering the contour with the contour roundness not meeting the standard and the area more than one time larger than the average area as the contour formed by the adhesion of a plurality of insect bodies, and determining the number of the insect bodies contained in the contour by an area comparison method.
5. The worm recognition counting system of claim 4, wherein the binarization process further comprises:
and respectively separating the RGB color space and the LAB color space, and removing interference factors according to the characteristics of different channel images.
6. The worm recognition and counting system of any one of claims 4 to 5, further comprising
And the display unit is used for filling the contour by using random colors according to the contour distribution in the second marking map after counting is finished, and displaying the information of the total number of the insects.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010205190.6A CN111462143B (en) | 2020-03-22 | 2020-03-22 | Watershed algorithm-based insect body recognition and counting method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010205190.6A CN111462143B (en) | 2020-03-22 | 2020-03-22 | Watershed algorithm-based insect body recognition and counting method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111462143A CN111462143A (en) | 2020-07-28 |
CN111462143B true CN111462143B (en) | 2022-12-02 |
Family
ID=71680159
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010205190.6A Active CN111462143B (en) | 2020-03-22 | 2020-03-22 | Watershed algorithm-based insect body recognition and counting method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111462143B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111862246A (en) * | 2020-08-06 | 2020-10-30 | 大连海洋大学 | Intelligent counting method and device for prawn seedlings |
CN113313737B (en) * | 2021-06-11 | 2023-02-03 | 长江大学 | Insect trap bottle insect counting method and counting device based on computer vision |
CN114202687B (en) * | 2021-08-12 | 2024-07-26 | 昆明理工大学 | Automatic tobacco plant extraction and counting method and system based on unmanned aerial vehicle images |
CN114049311A (en) * | 2021-10-27 | 2022-02-15 | 中电智能技术南京有限公司 | Calculation method and system for recognizing quantity of tobacco insects on insect plate based on RGB (Red, Green and blue) colors |
CN114638832B (en) * | 2022-05-19 | 2022-09-23 | 深圳市中科先见医疗科技有限公司 | DPCR liquid drop fluorescence detection method based on watershed algorithm |
WO2023239794A1 (en) * | 2022-06-07 | 2023-12-14 | Sensorygen, Inc. | Systems and methods for monitoring arthropod vectors and building projective models |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106570534A (en) * | 2016-11-15 | 2017-04-19 | 福建农林大学 | Automatic small insect trapping detection method and system thereof |
CN107463913A (en) * | 2017-08-11 | 2017-12-12 | 苏炯龙 | Image collagenous fibres identification computing system and method based on Lab |
CN108596920A (en) * | 2018-05-02 | 2018-09-28 | 北京环境特性研究所 | A kind of Target Segmentation method and device based on coloured image |
WO2019143633A1 (en) * | 2018-01-18 | 2019-07-25 | Nantomics, Llc | Real-time whole slide pathology image cell counting |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104700112B (en) * | 2015-02-02 | 2018-07-27 | 电子科技大学 | Parasite egg detecting method in a kind of excrement based on morphological feature |
CN106023137B (en) * | 2016-05-03 | 2018-10-16 | 华中科技大学 | A kind of timber method of counting based on contour optimization |
CN107545557A (en) * | 2016-06-23 | 2018-01-05 | 爱威科技股份有限公司 | Egg detecting method and device in excrement image |
-
2020
- 2020-03-22 CN CN202010205190.6A patent/CN111462143B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106570534A (en) * | 2016-11-15 | 2017-04-19 | 福建农林大学 | Automatic small insect trapping detection method and system thereof |
CN107463913A (en) * | 2017-08-11 | 2017-12-12 | 苏炯龙 | Image collagenous fibres identification computing system and method based on Lab |
WO2019143633A1 (en) * | 2018-01-18 | 2019-07-25 | Nantomics, Llc | Real-time whole slide pathology image cell counting |
CN108596920A (en) * | 2018-05-02 | 2018-09-28 | 北京环境特性研究所 | A kind of Target Segmentation method and device based on coloured image |
Also Published As
Publication number | Publication date |
---|---|
CN111462143A (en) | 2020-07-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111462143B (en) | Watershed algorithm-based insect body recognition and counting method and system | |
CN110084095B (en) | Lane line detection method, lane line detection apparatus, and computer storage medium | |
CN105139386B (en) | A kind of image processing method of fast automatic detecting electric connector solder joint defective work | |
WO2020062088A1 (en) | Image identification method and device, storage medium, and processor | |
WO2022095137A1 (en) | Obstacle recognition method applied to automatic traveling device and automatic traveling device | |
CN112380926B (en) | Weeding path planning system of field weeding robot | |
US20180241972A1 (en) | Method of detecting critical objects from cctv video using metadata filtering | |
CN112288716B (en) | Method, system, terminal and medium for detecting bundling state of steel coil | |
CN111680681B (en) | Image post-processing method and system for eliminating abnormal recognition target and counting method | |
JP2001517308A (en) | Method for inspecting the surface of a moving strip by segmenting its image into skeptical zones | |
Dias et al. | Autonomous detection of mosquito-breeding habitats using an unmanned aerial vehicle | |
CN111027418B (en) | Factory material management method and device and electronic equipment | |
CN113095441A (en) | Pig herd bundling detection method, device, equipment and readable storage medium | |
CN115115595A (en) | Real-time calibration method of airborne laser radar and infrared camera for forest fire monitoring | |
CN114332781A (en) | Intelligent license plate recognition method and system based on deep learning | |
CN108062408B (en) | Data processing method and device | |
CN103226709B (en) | A kind of network curtain image recognition method of fall webworm larvae | |
CN104899854B (en) | The detection method and device of heap grain altitude line | |
CN112749753A (en) | Electric equipment control method and device, electric equipment and storage medium | |
CN109934126B (en) | Vehicle tail smoke detection method and system | |
CN111695374B (en) | Segmentation method, system, medium and device for zebra stripes in monitoring view angles | |
CN116503811A (en) | Image-based forklift violation monitoring method, medium and device | |
CN110991255A (en) | Method for detecting fake-licensed vehicle based on deep learning algorithm | |
CN115049684A (en) | Water gauge identification method and system based on water area segmentation | |
CN112016418A (en) | Secant identification method and device, electronic equipment and storage medium |
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 |