CN103810522B - Counting method and device for corn ear grains - Google Patents
Counting method and device for corn ear grains Download PDFInfo
- Publication number
- CN103810522B CN103810522B CN201410008628.6A CN201410008628A CN103810522B CN 103810522 B CN103810522 B CN 103810522B CN 201410008628 A CN201410008628 A CN 201410008628A CN 103810522 B CN103810522 B CN 103810522B
- Authority
- CN
- China
- Prior art keywords
- image
- corn
- segmentation
- threshold
- corn ear
- 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.)
- Expired - Fee Related
Links
- 240000008042 Zea mays Species 0.000 title claims abstract description 153
- 235000002017 Zea mays subsp mays Nutrition 0.000 title claims abstract description 153
- 235000005824 Zea mays ssp. parviglumis Nutrition 0.000 title claims abstract description 152
- 235000005822 corn Nutrition 0.000 title claims abstract description 152
- 238000000034 method Methods 0.000 title claims abstract description 50
- 230000011218 segmentation Effects 0.000 claims abstract description 68
- 238000007781 pre-processing Methods 0.000 claims abstract description 23
- 238000012545 processing Methods 0.000 claims description 38
- 238000003709 image segmentation Methods 0.000 claims description 20
- 238000001914 filtration Methods 0.000 claims description 14
- 238000012549 training Methods 0.000 claims description 8
- 238000004364 calculation method Methods 0.000 claims description 7
- 210000005069 ears Anatomy 0.000 claims description 3
- 238000011478 gradient descent method Methods 0.000 claims description 3
- 235000013339 cereals Nutrition 0.000 claims 3
- 235000016383 Zea mays subsp huehuetenangensis Nutrition 0.000 claims 1
- 235000009973 maize Nutrition 0.000 claims 1
- 238000005034 decoration Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000009395 breeding Methods 0.000 description 1
- 230000001488 breeding effect Effects 0.000 description 1
- 230000010154 cross-pollination Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000009795 derivation Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000002068 genetic effect Effects 0.000 description 1
- 238000009396 hybridization Methods 0.000 description 1
- 238000013178 mathematical model Methods 0.000 description 1
- 238000000611 regression analysis Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
Landscapes
- Image Analysis (AREA)
- Image Processing (AREA)
Abstract
The invention provides a counting method and a counting device for corn ear grains. The method comprises the following steps: step S1, obtaining an estimation model for the corn ear grains, wherein the estimation model for the corn ear grains is used for showing a function relation between the number of the ear grains on the single surface of corn and the number of all ear grains; step 2, obtaining the single sided image of the corn, and preprocessing the single sided image to obtain a corresponding gray level image; step S3, performing multi-threshold segmentation on the gray level image obtained in the step S2, so as to obtain a corresponding binary image; step S4, counting communicating areas with the same gray values, and obtaining the number of the communication areas corresponding to the grey values for showing the corn grains; and step S5, determining all ear grains according to the number obtained in the step S4 and the corn grain estimation model in the step S1. By adopting the counting method for the corn ear grains, the corn ear grains can be quickly and conveniently counted.
Description
Technical Field
The invention relates to an image processing technology, in particular to a method and a device for counting corn ear grains.
Background
The corn breeding is to perform hybridization test on a large amount of inbred lines and hybrid combinations by utilizing the heterozygosity of corn cross pollination and genetic basis, and finally select individual excellent hybrid seeds for production and use. Wherein the seed yield of the fruit cluster is an important index for judging the quality of the corn variety.
At present, the corn ear and seed counting work in China mainly adopts manual work. The method has huge workload and large error of reading data, and can not repeatedly read the read data, thereby causing problems and being difficult to verify the correctness of the data. Research in developed countries such as Europe and America uses a seed testing instrument. However, the instrument has the disadvantages of high price, large volume and weight, difficult flow and use and is not suitable for popularization and use in production practice.
Therefore, it is necessary to develop an automatic computer to improve the counting efficiency of corn ear and grain, improve the counting method and accelerate the variety examination and popularization.
Disclosure of Invention
The invention provides a method and a device for counting corn ear grains, which can realize the quick and simple counting of the corn ear grains,
the invention provides a corn ear seed counting method, which comprises the following steps:
a corn ear kernel counting method is characterized by comprising the following steps:
step S1, obtaining a corn ear and grain estimation model; wherein the corn ear kernel estimation model is used for expressing the functional relation between the number of the corn ear seeds on a single surface of the corn and the number of all the corn ear seeds;
s2, acquiring a single-side image of the corn, and performing image preprocessing on the single-side image to obtain a corresponding gray image;
step S3, carrying out multi-threshold segmentation on the gray level image obtained in the step S2 to obtain a corresponding binary image;
step S4, counting the connected areas with the same gray value, and acquiring the number of the connected areas corresponding to the gray value for representing the corn kernels;
and step S5, determining the number of all the ear seeds according to the number acquired in the step S4 and the corn kernel estimation model in the step S1.
Preferably, the step S1 specifically includes:
obtaining the following formula as a corn ear kernel estimation model:
y=ax+b;
wherein x represents the number of corn seeds in a single-sided image of the corn ear, a and b are training values, and y represents the number of all corn ear seeds.
Preferably, the step S2 includes:
step S21, performing median filtering processing on the single-sided image;
step S22, performing Wallis filtering processing on the image obtained in step S21;
step S23, performing histogram enhancement processing on the image obtained in step S22 to obtain a grayscale image corresponding to the single-sided image.
Preferably, the step S3 specifically includes:
and (4) carrying out image segmentation on the gray level image obtained in the step S2 by adopting a multi-threshold segmentation method combining RBGM and OTSU to further obtain a binary image of the corn kernels.
Preferably, the image segmentation is performed on the corn ear kernel gray level image by adopting a multi-threshold segmentation method combining RBGM and OTSU, so as to obtain a binary image of the corn kernels, and the method specifically comprises the following steps:
step S31, selecting initial iteration point tiAnd iteration step ηmCarrying out iterative solution on the following multi-threshold segmentation iterative solution formula to obtain the optimal segmentation thresholdThe optimal segmentation thresholdTo make it possible toMaximum segmentation threshold:
wherein,
j=0,1,...,N-1;m=0,1,...
wherein ω isk、μkRespectively representing the probability and the mean square error corresponding to the kth problem when the n problems are segmented;
step S32, using the optimal segmentation threshold obtained in step S31The grayscale image obtained in step S2 is subjected to multi-threshold segmentation.
The invention provides a corn ear and grain counting device, which comprises:
the modeling module is used for obtaining a corn ear and grain estimation model; wherein the corn ear kernel estimation model is used for expressing the functional relation between the number of the corn ear seeds on a single surface of the corn and the number of all the corn ear seeds;
the image preprocessing module is used for acquiring a single-side image of the corn and preprocessing the single-side image to obtain a corresponding gray image;
the image segmentation module is used for carrying out multi-threshold segmentation on the gray level image obtained by the image preprocessing module to obtain a corresponding binary image;
the counting module is used for counting the connected regions with the same gray value and acquiring the number of the connected regions corresponding to the gray value for representing the corn kernels;
and the calculating module is used for determining the number of all the ear seeds according to the number acquired in the counting module and the corn kernel estimation model acquired by the modeling module.
Preferably, the modeling module is specifically configured to obtain the following formula as the corn ear kernel estimation model:
y=ax+b;
wherein x represents the number of corn seeds in a single-sided image of the corn ear, a and b are training values, and y represents the number of all corn ear seeds.
Preferably, the image preprocessing module includes:
the first processing submodule is used for carrying out median filtering processing on the single-sided image;
the second processing submodule is used for performing Wallis filtering processing on the image obtained by the first processing submodule;
and the third processing submodule is used for performing histogram enhancement processing on the image obtained by the second processing submodule to obtain a gray level image corresponding to the single-side image.
Preferably, the image segmentation module is specifically configured to perform image segmentation on the grayscale image obtained by the image preprocessing module by using a multi-threshold segmentation method combining RBGM and OTSU, so as to obtain a binary image of the corn kernels.
Preferably, the image segmentation module is specifically configured to perform, when performing image segmentation on the grayscale image obtained by the image preprocessing module by using a multi-threshold segmentation method combining RBGM and OTSU to obtain a binary image of the corn kernel:
step S31, selecting initial iteration point tiAnd iteration step ηmCarrying out iterative solution on the following multi-threshold segmentation iterative solution formula to obtain the optimal segmentation thresholdThe optimal segmentation thresholdTo make it possible toMaximum segmentation threshold:
wherein,
j=0,1,...,N-1;m=0,1,...
wherein ω isk、μkRespectively representing the probability and the mean square error corresponding to the kth problem when the n problems are segmented;
step S32, using the optimal segmentation threshold obtained in step S31The grayscale image obtained in step S2 is subjected to multi-threshold segmentation.
By adopting the method for counting the corn ear grains, provided by the invention, the corn ear grains can be quickly, simply and conveniently counted.
Drawings
Fig. 1 is a schematic flow chart of a method for counting corn ear grains according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of gray processing in the corn ear kernel counting method according to the embodiment of the present invention;
fig. 3 is a schematic flow chart of image segmentation in the corn ear kernel counting method according to the embodiment of the present invention;
FIG. 4a is a single-sided corn image after the ear of corn has been identified using the method for counting corn ears and kernels provided by embodiments of the present invention;
FIG. 4b is a partial single-sided corn image after the corn ear has been identified using the corn ear kernel counting method provided by embodiments of the present invention;
fig. 5 is a schematic structural view of a corn ear kernel counting device provided in the embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
The following describes in further detail embodiments of the present invention with reference to the accompanying drawings. The following examples are intended to illustrate the invention, but not to limit the scope thereof.
Example one
There is provided a corn ear kernel count, as shown in fig. 1, the method comprising:
step S1, obtaining a corn ear and grain estimation model; wherein the corn ear kernel estimation model is used for expressing the functional relation between the number of the corn ear seeds on a single surface of the corn and the number of all the corn ear seeds;
s2, acquiring a single-side image of the corn, and performing image preprocessing on the single-side image to obtain a corresponding gray image;
step S3, carrying out multi-threshold segmentation on the gray level image obtained in the step S2 to obtain a corresponding binary image;
step S4, counting the connected areas with the same gray value, and acquiring the number of the connected areas corresponding to the gray value for representing the corn kernels;
and step S5, determining the number of all the ear seeds according to the number acquired in the step S4 and the corn kernel estimation model in the step S1.
By adopting the method for counting the corn ear grains, provided by the invention, the corn ear grains can be quickly, simply and conveniently counted.
In the process of implementing the invention, the inventor of the application finds that: (1) the number of rows of corn ear seeds is generally fixed, and is usually 14 rows or 16 rows; (2) in the corn image sampling, an orthographic projection method is used, and corn kernels are fixed in the corn kernel region occupied by the visible part of the image, and on this basis, in a preferred embodiment of the present invention, the step S1 may specifically be: obtaining the following formula (1) as a corn ear kernel estimation model:
y=ax+b; (1)
wherein x represents the number of corn seeds in a single-sided image of the corn ear, a and b are training values, and y represents the number of all corn ear seeds.
The values a and b can be obtained through training, namely, manual counting is carried out on partial corn ears, and the values a and b are assigned. It should be noted that the training model established here can be used for a plurality of times in steps S2-S5, which facilitates the realization of fast counting of other corn ear grains.
Since step S4 is the result of processing the single-sided image of the corn, the obtained kernels are also single-sided, i.e. corresponding to x in the above-mentioned relational expression, and at this time, the total number of corn ear kernels can be obtained by substituting x into the above-mentioned relational expression.
Of course, in practical applications, other mathematical models may be used by those skilled in the art, and the specific model used does not affect the scope of the present invention.
Preferably, the method for performing image preprocessing on the single-sided image in step S2 may include, as shown in fig. 2:
step S21, performing median filtering processing on the single-sided image;
step S22, performing Wallis filtering processing on the image obtained in step S21;
step S23, performing histogram enhancement processing on the image obtained in step S22 to obtain a grayscale image corresponding to the single-sided image.
In practical applications, before step S21, a grayscale image f (x, y) of corn ear and kernel is also taken, where f (x, y) is a grayscale value corresponding to the (x, y) pixel point.
The formula used in the median filtering process in step S21 is the following formula (2):
wherein S is a pixel (x)0,y0) Contains therein (x)0,y0) (x, y) represents an arbitrary element in S, f (x, y) represents a gray value of a point (x, y), | S | represents the number of elements in the set S, Sort represents the ranking, and ω represents a weight value added when calculating the intermediate pixel value.
The formula adopted in the Wallis filtering process in step S22 is the following formula (3):
wherein [ f (i, j)]M×NRepresenting the original image, [ g (i, j)]M×NThe enhanced image is represented by a representation of the image,denotes the local mean, mdDenotes the mean value, σdIndicating the standard deviation, a the gain factor, α is a constant of proportionality that controls the composition of edges and background in the enhanced image.
The formula adopted for the histogram enhancement processing in step S23 is the following formula (4)
z=G-1[T(r)](4)
r represents the gray level of the pixel before image enhancement, the transform function s-t (r) represents the gray level of the pixel after enhancement, and the inverse transform function z-G-1(s) represents the desired new gray level.
Preferably, the step S3 specifically includes:
and (4) carrying out image segmentation on the gray level image obtained in the step S2 by adopting a multi-threshold segmentation method combining RBGM and OTSU to further obtain a binary image of the corn kernels.
Specifically, step S3 may include the steps shown in fig. 3:
step S31, selecting initial iteration point tiAnd iteration step ηmCarrying out iterative solution on the following multi-threshold segmentation iterative solution formula (5) to obtain the optimal segmentation thresholdThe optimal segmentation thresholdTo make it possible toMaximum segmentation threshold:
wherein,
j=0,1,...,N-1;m=0,1,...
wherein ω isk、μkThe probabilities and mean differences corresponding to the kth class of problems when the n classes of problems are divided are shown.
Step S32, using the optimal segmentation threshold obtained in step S31The grayscale image obtained in step S2 is subjected to multi-threshold segmentation.
The principle of the above step S31 is:
assume for the n-class segmentation problem that the total variance is labeled σ2The probability, mean and variance of each class are marked as omegak、μk、(k-0, 1.., n-1), and a combination of the respective segmentation thresholds is denoted as t-tk1, 2., n-1}, then:
wherein k is 0, 1.. times, n-1 (6)
t0=0,tnL is the histogram border (7)
Wherein 1 < tkL (k ═ 1, 2.., n-1) is each segmentation threshold, (8)
Then the multi-threshold intra-class variance is:
similar to the single threshold problem, a constraint equation for the multi-threshold problem is established:
from the above formula can be derived
Through sorting derivation, can obtain It is obvious thatRelative to an independent variable tiAs a function of (c).
Then x in the formula (11) of gradient descent method (RBGM)iIs replaced by tiReplacing f (x) withAvailable drop solution equation (12):
wherein,
j=0,1,...,N-1;m=0,1,...。
the multi-threshold segmentation method combining RBGM and OTSU is adopted to solve the problem that the calculation amount for solving the optimal threshold increases geometrically as the number of segmentation thresholds increases from a single threshold to multiple thresholds in the traditional OSTU multi-threshold segmentation method, and by adopting the method, the segmentation calculation amount can be greatly reduced under the same precision, so that the segmentation calculation time is shortened.
And S3, obtaining a binary image of the corn ear grains, wherein each corn grain is divided into a connected region, counting the connected regions with the same gray value to obtain the number of the connected regions corresponding to the gray value for representing the corn grains, and then calculating the total number of the corn ear grains according to a pre-established estimation model of the corn ear grains. As shown in fig. 4 (a) (b), each corn kernel in the binary image of corn ear kernels is divided into a connected region, i.e. adjacent pixels in the region have the same gray value of 0 or 1. Before the identification, a counter C is initialized, the initial value is 1, the counter C is used for counting the number of the single-sided corn kernels, and p (x, y) represents the pixel value of the pixel at the (x, y) point. From any initial point (x) of the image0,y0) Starting to scan each pixel line by line, and when p (x, y) is not 1, indicating that the pixel is an image background or an identified pixel skips the pixel; when a pixel with p (x, y) being 1 is encountered, the pixel is identified as a counter C value, all pixels with the pixel adjacent to the pixel and the pixel with the pixel value being 1 are scanned, the value of the pixel is identified as C, after the identification is completed, the C value is added with 1, and the identification of the next pixel is continued. And marking the pixels one by one until all the pixels are scanned, and finally obtaining the single-side corn seed number.
The beneficial effects of the invention include: (1) the computer graphic processing technology is used for replacing a manual corn ear seed counting method, the total number of the corn ear seeds can be quickly, simply and accurately obtained, and the defects of long counting time, strong subjectivity, large data reading error and the like of the corn ear seeds in the prior art are overcome; (2) the method comprises the steps of taking a part of collected single-sided corn ear seed images as samples, performing regression analysis according to the number of the single-sided corn ear seeds in the images and the actual total number of the corn ear seeds to obtain a corn ear seed estimation model y = ax + b, estimating the total number of the corn ear seeds according to the corn seed estimation model and the number of the single-sided corn seeds in the images, wherein the accuracy rate reaches 93%; (3) the invention adopts a multi-threshold segmentation method combining RBGM and OTSU, aiming at solving the problem that the calculation amount for solving the optimal threshold increases geometrically as the number of segmentation thresholds increases from a single threshold to a multi-threshold in the traditional OSTU multi-threshold segmentation method, the method can greatly reduce the segmentation calculation amount under the same precision, thereby shortening the segmentation calculation time.
Example two
Based on the same concept, the invention also provides a corn ear kernel counting device, as shown in fig. 5, the device comprises:
the modeling module 501 is used for obtaining a corn ear and grain estimation model; wherein the corn ear kernel estimation model is used for expressing the functional relation between the number of the corn ear seeds on a single surface of the corn and the number of all the corn ear seeds;
the image preprocessing module 502 is used for acquiring a single-side image of the corn and preprocessing the single-side image to obtain a corresponding gray image;
the image segmentation module 503 is configured to perform multi-threshold segmentation on the grayscale image obtained by the image preprocessing module 502 to obtain a corresponding binary image;
the counting module 504 is configured to count the connected regions with the same gray value, and obtain the number of the connected regions corresponding to the gray value used for representing the corn kernels;
and a calculating module 505 for determining the total number of the ear seeds according to the number obtained in the counting module 504 and the corn kernel estimation model obtained in the modeling module 501.
Preferably, the modeling module 501 is specifically configured to obtain the following formula as the corn ear kernel estimation model:
y=ax+b;
wherein x represents the number of corn seeds in a single-sided image of the corn ear, a and b are training values, and y represents the number of all corn ear seeds.
Preferably, the image preprocessing module 502 specifically includes:
the first processing submodule is used for carrying out median filtering processing on the single-sided image;
the second processing submodule is used for performing Wallis filtering processing on the image obtained by the first processing submodule;
and the third processing submodule is used for performing histogram enhancement processing on the image obtained by the second processing submodule to obtain a gray level image corresponding to the single-side image.
Preferably, the image segmentation module 503 is specifically configured to perform image segmentation on the grayscale image obtained by the image preprocessing module 502 by using a multi-threshold segmentation method combining RBGM and OTSU, so as to obtain a binary image of the corn kernels.
Preferably, the segmentation module is configured to, when performing image segmentation on the grayscale image obtained by the image preprocessing module 502 by using a multi-threshold segmentation method combining RBGM and OTSU to obtain a binary image of the corn kernel, specifically perform:
step S31, selecting initial iteration point tiAnd iteration step ηmCarrying out iterative solution on the following multi-threshold segmentation iterative solution formula to obtain the optimal segmentation thresholdThe optimal segmentation thresholdTo make it possible toMaximum segmentation threshold:
wherein,
j=0,1,...,N-1;m=0,1,...
wherein ω isk、μkRespectively representing the probability and the mean square error corresponding to the kth problem when the n problems are segmented;
step S32, using the optimal segmentation threshold obtained in step S31The grayscale image obtained in step S2 is subjected to multi-threshold segmentation.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the technical principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
Claims (8)
1. A corn ear kernel counting method is characterized by comprising the following steps:
step S1, obtaining a corn ear and grain estimation model; wherein the corn ear kernel estimation model is used for expressing the functional relation between the number of the corn ear seeds on a single surface of the corn and the number of all the corn ear seeds;
s2, acquiring a single-side image of the corn, and performing image preprocessing on the single-side image to obtain a corresponding gray image;
step S3, carrying out multi-threshold segmentation on the gray level image obtained in the step S2 to obtain a corresponding binary image;
step S4, counting the connected areas with the same gray value, and acquiring the number of the connected areas with the gray value for representing the corn kernels;
step S5, determining the number of all the ears and seeds according to the number acquired in the step S4 and the corn kernel estimation model in the step S1;
wherein, the step S1 specifically includes:
obtaining the following formula as a corn ear kernel estimation model:
y=ax+b;
wherein x represents the number of corn seeds in a single-sided image of the corn ear, a and b are training values, and y represents the number of all corn ear seeds.
2. The method of claim 1, wherein the step S2 includes:
step S21, performing median filtering processing on the single-sided image;
step S22, performing Wallis filtering processing on the image obtained in step S21;
step S23, performing histogram enhancement processing on the image obtained in step S22 to obtain a grayscale image corresponding to the single-sided image.
3. The method according to claim 1, wherein the step S3 specifically includes:
and (4) performing image segmentation on the gray level image obtained in the step S2 by adopting a multi-threshold segmentation method combining a gradient descent method RBGM and a maximum inter-class variance method OTSU to obtain a binary image of the corn kernels.
4. The method of claim 3, wherein the image segmentation is performed on the corn ear kernel gray scale image by a multi-threshold segmentation method combining RBGM and OTSU to obtain a binary image of the corn kernels, and specifically comprises:
step S31, selecting initial iteration point tiAnd iteration step ηmCarrying out iterative solution on the following multi-threshold segmentation iterative solution formula to obtain the optimal segmentation thresholdThe optimal segmentation thresholdTo make it possible toMaximum segmentation threshold:
wherein x isi mN+j+1=xi mN+j-ηmΔi(xi mN+j),i=1,2,...,N
Wherein ω isk、μkRespectively representing the probability and the mean square error corresponding to the kth problem when the n problems are segmented;
step S32, using the optimal segmentation threshold obtained in step S31The grayscale image obtained in step S2 is subjected to multi-threshold segmentation.
5. The utility model provides a maize ear seed grain counting assembly which characterized in that includes:
the modeling module is used for obtaining a corn ear and grain estimation model; wherein the corn ear kernel estimation model is used for expressing the functional relation between the number of the corn ear seeds on a single surface of the corn and the number of all the corn ear seeds;
the image preprocessing module is used for acquiring a single-side image of the corn and preprocessing the single-side image to obtain a corresponding gray image;
the image segmentation module is used for carrying out multi-threshold segmentation on the gray level image obtained by the image preprocessing module to obtain a corresponding binary image;
the counting module is used for counting the connected regions with the same gray value to obtain the number of the connected regions with the gray value for representing the corn kernels;
the calculation module is used for determining the number of all the ear seeds according to the number acquired in the counting module and the corn kernel estimation model acquired by the modeling module;
the modeling module is specifically used for obtaining the following formula as a corn ear kernel estimation model:
y=ax+b;
wherein x represents the number of corn seeds in a single-sided image of the corn ear, a and b are training values, and y represents the number of all corn ear seeds.
6. The apparatus of claim 5, wherein the image pre-processing module comprises:
the first processing submodule is used for carrying out median filtering processing on the single-sided image;
the second processing submodule is used for performing Wallis filtering processing on the image obtained by the first processing submodule;
and the third processing submodule is used for performing histogram enhancement processing on the image obtained by the second processing submodule to obtain a gray level image corresponding to the single-side image.
7. The apparatus according to claim 5, wherein the image segmentation module is specifically configured to perform image segmentation on the grayscale image obtained by the image preprocessing module by using a multi-threshold segmentation method combining a gradient descent method (RBGM) and a maximum inter-class variance method (OTSU) to obtain a binary image of the corn kernel.
8. The apparatus of claim 7, wherein the image segmentation module is configured to, when performing image segmentation on the grayscale image obtained by the image preprocessing module by using a multi-threshold segmentation method combining RBGM and OTSU to obtain a binary image of the corn kernel, specifically configured to perform:
step S31, selecting initial iteration point tiAnd iteration step ηmCarrying out iterative solution on the following multi-threshold segmentation iterative solution formula to obtain the optimal segmentation thresholdThe optimal segmentation thresholdTo make it possible toMaximum segmentation threshold:
wherein x isi mN+j+1=xi mN+j-ηmΔi(xi mN+j),i=1,2,...,N
Wherein ω isk、μkRespectively representing the probability and the mean square error corresponding to the kth problem when the n problems are segmented;
step S32, using the optimal segmentation threshold obtained in step S31The grayscale image obtained in step S2 is subjected to multi-threshold segmentation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410008628.6A CN103810522B (en) | 2014-01-08 | 2014-01-08 | Counting method and device for corn ear grains |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410008628.6A CN103810522B (en) | 2014-01-08 | 2014-01-08 | Counting method and device for corn ear grains |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103810522A CN103810522A (en) | 2014-05-21 |
CN103810522B true CN103810522B (en) | 2017-02-08 |
Family
ID=50707261
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410008628.6A Expired - Fee Related CN103810522B (en) | 2014-01-08 | 2014-01-08 | Counting method and device for corn ear grains |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103810522B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105574853B (en) * | 2015-12-07 | 2018-05-15 | 中国科学院合肥物质科学研究院 | The method and system that a kind of wheat head grain number based on image recognition calculates |
CN106485708B (en) * | 2016-10-11 | 2018-12-28 | 南京航空航天大学 | A kind of round log method of counting based on image recognition |
US11010913B2 (en) * | 2016-10-19 | 2021-05-18 | Basf Agro Trademarks Gmbh | Determining the grain weight of an ear |
CN110490868B (en) * | 2019-08-23 | 2023-05-30 | 陈�峰 | Nondestructive counting method based on computer vision corn cob grain number |
CN110806373B (en) * | 2019-10-08 | 2022-05-10 | 郑州轻工业学院 | Seed cotton web fraction detection device and seed cotton web fraction detection method |
CN116129331B (en) * | 2023-04-12 | 2023-07-04 | 成都航空职业技术学院 | Method and device for counting number of through holes on surface of rotary part |
CN117455912B (en) * | 2023-12-23 | 2024-03-19 | 安徽农业大学 | Corn cob and grain panoramic counting method and counting system based on three plane mirrors |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4900915A (en) * | 1987-11-17 | 1990-02-13 | Heineken Technisch Beheer B.V. | Method of counting articles supplied on a conveyor track in a random pattern |
CN102750584A (en) * | 2012-04-18 | 2012-10-24 | 中国农业大学 | On-corncob corn niblet counting method |
-
2014
- 2014-01-08 CN CN201410008628.6A patent/CN103810522B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4900915A (en) * | 1987-11-17 | 1990-02-13 | Heineken Technisch Beheer B.V. | Method of counting articles supplied on a conveyor track in a random pattern |
CN102750584A (en) * | 2012-04-18 | 2012-10-24 | 中国农业大学 | On-corncob corn niblet counting method |
Non-Patent Citations (3)
Title |
---|
一种新的二值图像连通区域准确标记算法;刘贤喜 等;《计算机工程与应用》;20071131;第43卷(第22期);第76页-78页、第98页 * |
基于机器视觉的颗粒识别计数;王海燕 等;《长春工程学院学报》;20101231;第14卷(第4期);第101页-104页 * |
采用全景技术的机器视觉测量玉米果穗考种指标;王传宇 等;《采用全景技术的机器视觉测量玉米果穗考种指标》;20131231;第29 卷(第24 期);第155页-162页 * |
Also Published As
Publication number | Publication date |
---|---|
CN103810522A (en) | 2014-05-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103810522B (en) | Counting method and device for corn ear grains | |
CN106600577B (en) | A kind of method for cell count based on depth deconvolution neural network | |
CN110197205B (en) | Image identification method of multi-feature-source residual error network | |
CN112508850B (en) | Deep learning-based method for detecting malignant area of thyroid cell pathological section | |
Welsh et al. | Pollen evolution and its taxonomic significance in Cuscuta (dodders, Convolvulaceae) | |
CN105224960B (en) | Corn seed classification hyperspectral imagery identification model update method based on clustering algorithm | |
CN105115469B (en) | Paddy rice spike of rice phenotypic parameter automatic measurement and fringe weight Forecasting Methodology | |
CN109242092B (en) | Image processing method and device, electronic equipment and storage medium | |
CN110599413A (en) | Laser spot image denoising method based on deep learning convolution neural network | |
CN111652167A (en) | Intelligent evaluation method and system for chromosome karyotype image | |
CN109766742B (en) | Corn seed crack identification method, device, system, equipment and storage medium | |
CN109934297B (en) | Rice seed test method based on deep learning convolutional neural network | |
CN112200211A (en) | Small sample fish identification method and system based on residual error network and transfer learning | |
CN108491864A (en) | Based on the classification hyperspectral imagery for automatically determining convolution kernel size convolutional neural networks | |
CN116128839A (en) | Wafer defect identification method, device, electronic equipment and storage medium | |
CN117253122B (en) | Corn seed approximate variety screening method, device, equipment and storage medium | |
CN108009567A (en) | A kind of automatic discriminating conduct of the fecal character of combination color of image and HOG and SVM | |
CN107958270A (en) | Classification recognition methods, device, electronic equipment and computer-readable recording medium | |
CN114445268A (en) | Garment style migration method and system based on deep learning | |
CN111914902A (en) | Traditional Chinese medicine identification and surface defect detection method based on deep neural network | |
CN113869098A (en) | Plant disease identification method and device, electronic equipment and storage medium | |
CN106326904A (en) | Device and method of acquiring feature ranking model and feature ranking method | |
CN107315999A (en) | A kind of tobacco plant recognition methods based on depth convolutional neural networks | |
Gislason et al. | Comparison between automated analysis of zooplankton using ZooImage and traditional methodology | |
CN113240620B (en) | Highly-adhesive and multi-size brain neuron automatic segmentation method based on point marking |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170208 |