CN106919740A - Detect method, device and the electronic equipment of plant nitrogen content - Google Patents
Detect method, device and the electronic equipment of plant nitrogen content Download PDFInfo
- Publication number
- CN106919740A CN106919740A CN201710061236.XA CN201710061236A CN106919740A CN 106919740 A CN106919740 A CN 106919740A CN 201710061236 A CN201710061236 A CN 201710061236A CN 106919740 A CN106919740 A CN 106919740A
- Authority
- CN
- China
- Prior art keywords
- ratio value
- image
- plant
- nitrogen content
- analyzed
- 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.)
- Pending
Links
- IJGRMHOSHXDMSA-UHFFFAOYSA-N Atomic nitrogen Chemical compound N#N IJGRMHOSHXDMSA-UHFFFAOYSA-N 0.000 title claims abstract description 220
- 229910052757 nitrogen Inorganic materials 0.000 title claims abstract description 110
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000001514 detection method Methods 0.000 claims abstract description 33
- 230000015654 memory Effects 0.000 claims description 18
- 238000004422 calculation algorithm Methods 0.000 claims description 12
- 230000006870 function Effects 0.000 claims description 11
- 238000012216 screening Methods 0.000 claims description 10
- 238000000605 extraction Methods 0.000 claims description 9
- 239000012634 fragment Substances 0.000 claims description 8
- 239000000284 extract Substances 0.000 claims description 6
- 230000011218 segmentation Effects 0.000 claims description 5
- 239000001913 cellulose Substances 0.000 claims description 2
- 229920002678 cellulose Polymers 0.000 claims description 2
- 230000001066 destructive effect Effects 0.000 abstract description 6
- 238000005070 sampling Methods 0.000 abstract description 5
- 238000005516 engineering process Methods 0.000 abstract description 3
- 241000196324 Embryophyta Species 0.000 description 116
- 230000000875 corresponding effect Effects 0.000 description 20
- 238000004458 analytical method Methods 0.000 description 16
- 241000209094 Oryza Species 0.000 description 12
- 235000007164 Oryza sativa Nutrition 0.000 description 12
- 235000009566 rice Nutrition 0.000 description 12
- 238000010586 diagram Methods 0.000 description 10
- 229930002875 chlorophyll Natural products 0.000 description 6
- 235000019804 chlorophyll Nutrition 0.000 description 6
- ATNHDLDRLWWWCB-AENOIHSZSA-M chlorophyll a Chemical compound C1([C@@H](C(=O)OC)C(=O)C2=C3C)=C2N2C3=CC(C(CC)=C3C)=[N+]4C3=CC3=C(C=C)C(C)=C5N3[Mg-2]42[N+]2=C1[C@@H](CCC(=O)OC\C=C(/C)CCC[C@H](C)CCC[C@H](C)CCCC(C)C)[C@H](C)C2=C5 ATNHDLDRLWWWCB-AENOIHSZSA-M 0.000 description 6
- 238000002474 experimental method Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000003860 storage Methods 0.000 description 6
- 241001464837 Viridiplantae Species 0.000 description 5
- 238000004519 manufacturing process Methods 0.000 description 4
- 238000010521 absorption reaction Methods 0.000 description 3
- 230000002596 correlated effect Effects 0.000 description 3
- 238000011156 evaluation Methods 0.000 description 3
- 238000011160 research Methods 0.000 description 3
- 238000012795 verification Methods 0.000 description 3
- 238000001429 visible spectrum Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 239000003086 colorant Substances 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 210000000481 breast Anatomy 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 238000003745 diagnosis Methods 0.000 description 1
- 235000013305 food Nutrition 0.000 description 1
- 238000003709 image segmentation Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000000618 nitrogen fertilizer Substances 0.000 description 1
- 238000009406 nutrient management Methods 0.000 description 1
- 235000016709 nutrition Nutrition 0.000 description 1
- 230000035764 nutrition Effects 0.000 description 1
- 239000008104 plant cellulose Substances 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/02—Agriculture; Fishing; Forestry; Mining
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Mining & Mineral Resources (AREA)
- Health & Medical Sciences (AREA)
- Geometry (AREA)
- Life Sciences & Earth Sciences (AREA)
- Agronomy & Crop Science (AREA)
- Animal Husbandry (AREA)
- Marine Sciences & Fisheries (AREA)
- Evolutionary Computation (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Economics (AREA)
- General Health & Medical Sciences (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Primary Health Care (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Image Analysis (AREA)
Abstract
The present invention relates to plant technology field, specifically related to a kind of method for detecting plant nitrogen content, device and electronic equipment, the method of the detection plant nitrogen content includes extracting the RGB ratio value of each pixel in image to be analyzed, green ratio value in the RGB ratio value of multiple pixels is added, obtain green ratio value summation, according to default Mathematical Modeling, nitrogen content corresponding with the green ratio value summation is obtained according to the green ratio value summation.And then it is analyzed the nitrogen content situation for obtaining the plant by the image to plant, it is to avoid and destructive sampling is carried out to plant, it is efficiently convenient.
Description
Technical field
The present invention relates to plant technology field, in particular to a kind of method for detecting plant nitrogen content, device and
Electronic equipment.
Background technology
Paddy rice is China's staple food crop, and critical role is occupied in China's grain-production.Rice Production not only relation
China's grain-production, and about economic development and social stability.Nitrogen nutrient management significantly affects growth and the yield of paddy rice,
It is the key of paddy rice stable and high yields.Based on the Nitrogen Nutrition Diagnosis and nitrogen fertilizer recommendation of paddy rice are sampled by field destructiveness, though
The right degree of accuracy is high, but takes time and effort, and is unfavorable for popularization and application.Therefore, sampled without destructive using a kind of, can in real time obtain plant
The method of the nitrogen content of thing (paddy rice) is necessary.
The content of the invention
It is an object of the invention to provide a kind of method for detecting plant nitrogen content, to realize obtaining in real time the nitrogen of plant
Cellulose content, without carrying out destructive sampling to plant.
Another object of the present invention is to provide a kind of device for detecting plant nitrogen content, to realize obtaining plant in real time
Nitrogen content, without carrying out destructive sampling to plant.
Another object of the present invention is to provide a kind of electronic equipment, to realize obtaining in real time the nitrogen content of plant, nothing
Destructive sampling need to be carried out to plant.
To achieve these goals, the technical scheme that the embodiment of the present invention is used is as follows:
In a first aspect, the embodiment of the invention provides a kind of method for detecting plant nitrogen content, methods described includes:
Extract the RGB ratio value of each pixel in image to be analyzed;
Green ratio value in the RGB ratio value of multiple pixels is added, green ratio value summation is obtained;
According to default Mathematical Modeling, obtain corresponding with the green ratio value summation according to the green ratio value summation
Nitrogen content.
Second aspect, the embodiment of the present invention additionally provides a kind of device for detecting plant nitrogen content, and described device includes:
Extraction module, the RGB ratio value for extracting each pixel in image to be analyzed;
Summation module, for the green ratio value in the RGB ratio value of multiple pixels to be added, obtains green
Ratio value summation;
Computing module, for according to default Mathematical Modeling, being obtained and the green according to the green ratio value summation
The corresponding nitrogen content of ratio value summation.
The third aspect, the embodiment of the present invention additionally provides a kind of electronic equipment, and the electronic equipment includes:
Memory;
Processor;And
Detect the device of plant nitrogen content, the device of the detection plant nitrogen content is installed in the memory simultaneously
Including one or more by the computing device software function module, the device of the detection plant nitrogen content includes:
Extraction module, the RGB ratio value for extracting each pixel in image to be analyzed;
Summation module, for the green ratio value in the RGB ratio value of multiple pixels to be added, obtains green
Ratio value summation;
Computing module, for according to default Mathematical Modeling, being obtained and the green according to the green ratio value summation
The corresponding nitrogen content of ratio value summation.
The method for detecting plant nitrogen content provided in an embodiment of the present invention, device and electronic equipment, the detection plant nitrogen
The method of cellulose content includes extracting the RGB ratio value of each pixel in image to be analyzed, former by the three of multiple pixels
Green ratio value in color ratio value is added, and green ratio value summation is obtained, according to default Mathematical Modeling, according to the green
Ratio value summation obtains nitrogen content corresponding with the green ratio value summation.And then be analyzed by the image to plant
Obtain the nitrogen content situation of the plant, it is to avoid destructive sampling is carried out to plant, it is efficiently convenient.
To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate
Appended accompanying drawing, is described in detail below.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be attached to what is used needed for embodiment
Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, thus be not construed as it is right
The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this
A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 shows the structural representation of electronic equipment provided in an embodiment of the present invention.
Fig. 2 shows the flow chart of the method for detection plant nitrogen content provided in an embodiment of the present invention.
Fig. 3 shows the schematic diagram of default Mathematical Modeling provided in an embodiment of the present invention.
Fig. 4 shows the flow chart of the method for another detection plant nitrogen content provided in an embodiment of the present invention.
Fig. 5 shows the flow chart of the method for another detection plant nitrogen content provided in an embodiment of the present invention.
Fig. 6 shows the structural representation of the device of herborization canopy image provided in an embodiment of the present invention.
Fig. 7 shows the block diagram of the device of detection plant nitrogen content provided in an embodiment of the present invention.
Diagram:100- electronic equipments;110- detects the device of plant nitrogen content;120- memories;130- processors;
111- acquisition modules;112- splits module;113- acquisition modules;114- extraction modules;115- standardized modules;116- screens mould
Block;117- summation modules;118- computing modules;The device of 200- herborization canopy images;210- supports;220- pillars;
230- transverse axis;240- bases;250- heads;260- cameras;270- paddy rice.
Specific embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Ground description, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Generally exist
The component of the embodiment of the present invention described and illustrated in accompanying drawing can be arranged and designed with a variety of configurations herein.Cause
This, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention below
Scope, but it is merely representative of selected embodiment of the invention.Based on embodiments of the invention, those skilled in the art are not doing
The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined in individual accompanying drawing, then it need not be further defined and explained in subsequent accompanying drawing.Meanwhile, of the invention
In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that indicating or implying relative importance.
Fig. 1 is refer to, is the structural representation of electronic equipment provided in an embodiment of the present invention 100.The electronic equipment 100 is used
Carry out a series for the treatment of and calculate and then obtain the corresponding nitrogen content information of the plant in the plant canopy image to gathering.
The plant can be various green plantss, and the corresponding nitrogen content of the plant is obtained by carrying out graphical analysis to the green plants
Situation, and then the further scientific research operation of green plants is laid a good foundation.In the present embodiment, electronic equipment 100 can be but
It is not limited to, the intelligent electronic device 100 with calculation processing power such as desktop computer, mobile panel computer, mobile phone.
The electronic equipment 100 includes device 110, memory 120 and the processor 130 of detection plant nitrogen content.Storage
Device 120, each element of processor 130 are directly or indirectly electrically connected with each other, to realize the transmission or interaction of data.Example
Such as, these elements can be realized being electrically connected with by one or more communication bus or holding wire each other.Detection plant nitrogen
During the device 110 of content can be stored in the memory 120 including at least one in the form of software or firmware (firmware)
Or it is solidificated in the software function module in the operating system of electronic equipment 100 (operating system, OS).Processor 130
For performing the executable module stored in the memory 120, for example, detect included by the device 110 of plant nitrogen content
Software function module and computer program etc..
Wherein, memory 120 may be, but not limited to, random access memory (Random Access Memory,
RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only
Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM),
Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Wherein, memory 120 is used for storage program, and processor 130 performs the program after execute instruction is received.
Fig. 2 is refer to, is the flow chart of the method for detection plant nitrogen content provided in an embodiment of the present invention, the detection is planted
The method of thing nitrogen content is applied to electronic equipment 100, and the method includes:
Step S110, extracts the RGB ratio value of each pixel in image to be analyzed.
The image segments of the high resolution that the image to be analyzed is chosen from the canopy image of plant, so it is to be analyzed to this
Image is processed, and obtains the RGB ratio value (RGB, Red Green Blue) of each pixel in the image to be analyzed.
Step S120, the green ratio value in the RGB ratio value of multiple pixels is added, and obtains green ratio
Value summation.
Obtain the RGB ratio value of each pixel in image to be analyzed by step S110, and then by each picture
Green ratio value in the RGB ratio value of element, i.e. G values are added, and obtain the green ratio of all pixels in the image to be analyzed
Value summation.
Step S130, according to default Mathematical Modeling, obtains and the green ratio according to the green ratio value summation
The corresponding nitrogen content of value summation.
The default Mathematical Modeling as shown in figure 3, be the schematic diagram of default Mathematical Modeling provided in an embodiment of the present invention,
The default Mathematical Modeling is set up by analysis object of paddy rice, may between the green ratio value summation and nitrogen content of different plants
With different linear relationships.Because the nitrogen content level of plant is significantly correlated with the chlorophyll content of plant leaf blade, and plant
The content of thing leaf chlorophyll significantly affects absorption of the plant canopy to visible spectrum (especially green glow), therefore plant canopy figure
The green ratio value summation of picture can be with the nitrogen content level of the Indirect evaluation plant.Laboratory is taken back by herborization, is led to
Means are detected to the nitrogen content of the plant in the prior art crossed in laboratory, obtain the nitrogen content of the plant, while
By the way that to the identical plant, directly (such as field) gathers image at the scene, and graphical analysis to gathering obtains owning in its image
The green ratio value summation of pixel, repeats said process, is obtained by laboratory by different plant analyses, contrasting identical plant
The nitrogen content that goes out and by gathering the green ratio value summation that image draws, show that green ratio value as shown in Figure 3 is total
And and the relation between corresponding nitrogen content.
As illustrated, to same strain plant, its green ratio value summation is proportional with corresponding nitrogen content, specifically,
Image to gathering is analyzed, and the green ratio value summation that the plant contains is higher, shows that the nitrogen content of the plant is higher,
Specific formula is drawn substantially by substantial amounts of experiment:Y=0.34+0.019x.The formula by it is substantial amounts of experiment draw, data
Amount is bigger, and formula is more accurate, therefore, it is allowed to certain error.Meanwhile, by experimental verification, its green ratio value summation and nitrogen
Coefficient correlation between content reaches 0.88, shows to herborization image, and then green ratio value summation is drawn to the image,
The method of the nitrogen content for judging the plant according to the green ratio value summation is feasible.
Therefore, according to default Mathematical Modeling, bringing the green ratio value summation into corresponding formula can obtain right
The nitrogen content answered.
As another embodiment, Fig. 4 is refer to, be that another detection plant nitrogen provided in an embodiment of the present invention contains
The flow chart of the method for amount.The method includes:
Step S210, extracts the RGB ratio value of each pixel in image to be analyzed.
The image segments of the high resolution that the image to be analyzed is chosen from the canopy image of plant, so it is to be analyzed to this
Image is processed, and obtains the RGB ratio value (RGB, Red Green Blue) of each pixel in the image to be analyzed.
Step S220, according to preset algorithm, the RGB ratio value to each pixel in the image to be analyzed enters rower
Standardization.
The preset algorithm is:Rn=R/ (R+G+B) Gn=G/ (R+G+B) Bn=B/ (R+G+B), will be in image to be analyzed
The RGB ratio value of each pixel is brought above-mentioned formula into and is calculated, the RGB ratio value after being calculated.Figure to be analyzed
Each pixel can reduce error after being calculated by the preset algorithm as in, so as to be below further to the RGB ratio
Value is analyzed lays a good foundation.
Step S230, screens according to preset rules to the RGB ratio value, and the multiple after being screened is described
Pixel.
The default rule is using green blade algorithm:Three primary colors ratios of the Greenness=2G-R-B to each pixel
Example value is screened, will the pixel of G > R&G > B&G > 25 select, by R+B >=2G and G<25 pixel is rejected.Specifically
For the image to be analyzed is the canopy image intermediate-resolution highest image segments chosen to plant to be analyzed, therefore is treated
May not only comprising the image of the plant for needing analysis in analysis image, it is also possible to comprising background image, such as growth of the plant
Environment (such as field), by G>The 25 pixel removals that will characterize plant background image.Meanwhile, the embodiment of the present invention is mainly research
The green ratio value summation of plant and the relation of nitrogen content, therefore the pixel for characterizing non-green is removed by G > R&G > B, such as
Removal characterizes the pixel of yellow.And then by screening twice, the pixel for characterizing the green plant after being screened.
Step S240, the green ratio value in the RGB ratio value of the multiple pixel is added, and obtains green ratio
Value summation.
Multiple pixels after step S230 obtains screening, and then by the RGB ratio value of each pixel
Green ratio value, i.e. G values are added, and obtain the green ratio value summation of all pixels in the image to be analyzed.
Step S250, according to default Mathematical Modeling, obtains and the green ratio according to the green ratio value summation
The corresponding nitrogen content of value summation.
The default Mathematical Modeling as shown in figure 3, be the schematic diagram of default Mathematical Modeling provided in an embodiment of the present invention,
The default Mathematical Modeling is set up by analysis object of paddy rice, may between the green ratio value summation and nitrogen content of different plants
With different linear relationships.Because the nitrogen content level of plant is significantly correlated with the chlorophyll content of plant leaf blade, and plant
The content of thing leaf chlorophyll significantly affects absorption of the plant canopy to visible spectrum (especially green glow), therefore plant canopy figure
The green ratio value summation of picture can be with the nitrogen content level of the Indirect evaluation plant.Laboratory is taken back by herborization, is led to
Means are detected to the nitrogen content of the plant in the prior art crossed in laboratory, obtain the nitrogen content of the plant, while
By the way that to the identical plant, directly (such as field) gathers image at the scene, and graphical analysis to gathering obtains owning in its image
The green ratio value summation of pixel, repeats said process, is obtained by laboratory by different plant analyses, contrasting identical plant
The nitrogen content that goes out and by gathering the green ratio value summation that image draws, show that green ratio value as shown in Figure 3 is total
And and the relation between corresponding nitrogen content.
As illustrated, to same strain plant, its green ratio value summation is proportional with corresponding nitrogen content, specifically,
Image to gathering is analyzed, and the green ratio value summation that the plant contains is higher, shows that the nitrogen content of the plant is higher,
Specific formula is drawn substantially by substantial amounts of experiment:Y=0.34+0.019x.The formula by it is substantial amounts of experiment draw, data
Amount is bigger, and formula is more accurate, therefore, it is allowed to certain error.Meanwhile, by experimental verification, its green ratio value summation and nitrogen
Coefficient correlation between content reaches 0.88, shows to herborization image, and then green ratio value summation is drawn to the image,
The method of the nitrogen content for judging the plant according to the green ratio value summation is feasible.
Therefore, according to default Mathematical Modeling, bringing the green ratio value summation into corresponding formula can obtain right
The nitrogen content answered.
As another embodiment, Fig. 5 is refer to, be that another detection plant nitrogen provided in an embodiment of the present invention contains
The flow chart of the method for amount.The method includes:
Step S310, gathers the canopy image of the plant.
As shown in fig. 6, being the structural representation of the device 200 of herborization canopy image provided in an embodiment of the present invention.
The device 200 of the herborization canopy image includes support 210, pillar 220, transverse axis 230.The support 210 is multiple, support
210 are flexibly connected with pillar 220, and transverse axis 230 is set perpendicular to pillar 220 and one end is fixedly connected with pillar 220.Transverse axis 230
Base 240, head 250 and camera 260 are installed with the other end, head 250 is arranged on base 240, camera 260 and head
250 is detachably connected and camera 260 is set perpendicular to head 250.Detection plate is additionally provided with base 240 (not showing in figure
Go out), detection plate be provided with detection bubble (not shown), the detection bubble be used for detect transverse axis 230 whether level, work as horizontal stroke
When axle 230 is the level of state, detection bubble is located at detection plate center, when transverse axis 230 is not in horizontality, detection
Bubble is vacillated now to the left, now to the right in detection plate, and then the working condition of the device 200 of herborization canopy image is adjusted according to detection bubble.
When being acquired plant canopy image using the device 200 of herborization canopy image, support 210 is adjusted, and then
Regulation transverse axis 230 is 1.5 meters relative to the height on ground, but not limited to this, and specific height can be adjusted according to actual conditions.Together
When, by detecting that whether bubble detects transverse axis 230 in horizontality, regulation transverse axis 230 to horizontality.Adjustment camera 260
Parameter to suitable parameter, such as using short focus, automatic exposure, AWB, maximum pixel, aperture and shutter speed from
Dynamic control etc., while on the one hand causing that camera 260, perpendicular to head 250, on the one hand causes camera 260 perpendicular to plant, at this
The plant refers specifically to paddy rice 270 in embodiment, is found a view beneficial to the canopy to paddy rice 270, and then shoots the canopy image of plant.Will
The canopy image of the plant of collection is stored in electronic equipment 100.
Step S320, splits to the canopy image, obtains multiple images fragment.
The canopy image is split, multiple images fragment is obtained, in the present embodiment, specially according to 3 × 3 nets
The canopy image is divided into 9 parts by lattice method, and then obtains 9 image segments.But not limited to this, can also according to actual needs by
The canopy image segmentation is divided into 16 image segments into more fragments, as will be described canopy image according to 4 × 4 point-scores.
Step S330, obtain image to be analyzed, the image to be analyzed be the multiple image segments in be in centre bit
The image segments put.
As the canopy image is divided into 9 image segments by step S320, the image segments for taking bosom are figure to be analyzed
Picture, due to the image segments high resolution in center, is more beneficial in analysis, therefore the multiple image segments of selection
Image segments in center are image to be analyzed.
Step S340, extracts the RGB ratio value of each pixel in image to be analyzed.
The image segments of the high resolution that the image to be analyzed is chosen from the canopy image of plant, so it is to be analyzed to this
Image is processed, and obtains the RGB ratio value (RGB, Red Green Blue) of each pixel in the image to be analyzed.
Step S350, according to preset algorithm, the RGB ratio value to each pixel in the image to be analyzed is carried out
Standardization.
The preset algorithm is:Rn=R/ (R+G+B) Gn=G/ (R+G+B) Bn=B/ (R+G+B), will be in image to be analyzed
The RGB ratio value of each pixel is brought above-mentioned formula into and is calculated, the RGB ratio value after being calculated.Figure to be analyzed
Each pixel can reduce error after being calculated by the preset algorithm as in, so as to be below further to the RGB ratio
Value is analyzed lays a good foundation.
Step S360, screens according to preset rules to the RGB ratio value, and the multiple after being screened is described
Pixel.
The default rule is using green blade algorithm:Three primary colors ratios of the Greenness=2G-R-B to each pixel
Example value is screened, will the pixel of G > R&G > B&G > 25 select, by R+B >=2G and G<25 pixel is rejected.Specifically
For the image to be analyzed is the canopy image intermediate-resolution highest image segments chosen to plant to be analyzed, therefore is treated
May not only comprising the image of the plant for needing analysis in analysis image, it is also possible to comprising background image, such as growth of the plant
Environment (such as field), by G>The 25 pixel removals that will characterize plant background image.Meanwhile, the embodiment of the present invention is mainly research
The green ratio value summation of plant and the relation of nitrogen content, therefore the pixel for characterizing non-green is removed by G > R&G > B, such as
Removal characterizes the pixel of yellow.And then by screening twice, the pixel for characterizing the green plant after being screened.
Step S370, the green ratio value in the RGB ratio value of multiple pixels is added, and obtains green ratio
Value summation.
Multiple pixels after step S360 obtains screening, and then by the RGB ratio value of each pixel
Green ratio value, i.e. G values are added, and obtain the green ratio value summation of all pixels in the image to be analyzed.
Step S380, according to default Mathematical Modeling, obtains and the green ratio according to the green ratio value summation
The corresponding nitrogen content of value summation.
The default Mathematical Modeling as shown in figure 3, be the schematic diagram of default Mathematical Modeling provided in an embodiment of the present invention,
The default Mathematical Modeling is set up by analysis object of paddy rice, can between the green ratio value summation and nitrogen content of different plants
There can be different linear relationships.Because the nitrogen content level of plant is significantly correlated with the chlorophyll content of plant leaf blade, and
The content of plant leaf blade chlorophyll significantly affects absorption of the plant canopy to visible spectrum (especially green glow), therefore plant canopy
The green ratio value summation of image can be with the nitrogen content level of the Indirect evaluation plant.Laboratory is taken back by herborization,
The nitrogen content of the plant is detected by means in the prior art in laboratory, obtains the nitrogen content of the plant, together
When by the way that to the identical plant, directly (such as field) gathers image at the scene, and graphical analysis to gathering obtains institute in its image
There is the green ratio value summation of pixel, repeat said process, laboratory is passed through by different plant analyses, contrasting identical plant
The nitrogen content that draws and by gathering the green ratio value summation that image draws, draws green ratio value as shown in Figure 3
Relation between summation and corresponding nitrogen content.
As illustrated, to same strain plant, its green ratio value summation is proportional with corresponding nitrogen content, specifically,
Image to gathering is analyzed, and the green ratio value summation that the plant contains is higher, shows that the nitrogen content of the plant is higher,
Specific formula is drawn substantially by substantial amounts of experiment:Y=0.34+0.019x.The formula by it is substantial amounts of experiment draw, data
Amount is bigger, and formula is more accurate, therefore, it is allowed to certain error.Meanwhile, by experimental verification, its green ratio value summation and nitrogen
Coefficient correlation between content reaches 0.88, shows to herborization image, and then green ratio value summation is drawn to the image,
The method of the nitrogen content for judging the plant according to the green ratio value summation is feasible.
Therefore, according to default Mathematical Modeling, bringing the green ratio value summation into corresponding formula can obtain right
The nitrogen content answered.
As shown in fig. 7, being a kind of structural representation of device 110 for detecting plant nitrogen content provided in an embodiment of the present invention
Figure, the device 110 of the detection plant nitrogen content is applied to electronic equipment 100.The device 110 of the detection plant nitrogen content is wrapped
Include:
Extraction module 114, the RGB ratio value for extracting each pixel in image to be analyzed.
Summation module 117, for the green ratio value in the RGB ratio value of multiple pixels to be added, obtains green
Color ratio value summation.
Computing module 118, for according to default Mathematical Modeling, obtaining green with described according to the green ratio value summation
The corresponding nitrogen content of color ratio value summation.
The device 110 of the detection plant nitrogen content also includes standardized module 115, screening module 116.
The standardized module 115, for according to preset algorithm, three to each pixel in the image to be analyzed to be former
Color ratio value is standardized.
The screening module 116, for being screened to the RGB ratio value according to preset rules, after being screened
Multiple described pixel.
The device 110 of the detection plant nitrogen content also includes acquisition module 111, segmentation module 112 and acquisition module
113。
The acquisition module 111, the canopy image for gathering the plant.
The segmentation module 112, for splitting to the canopy image, obtains multiple images fragment.
The acquisition module 113, for obtaining image to be analyzed, the image to be analyzed is in the multiple image segments
Image segments in center.
The device 110 of the detection plant nitrogen content is described in detail in the method for detection plant nitrogen content,
This is repeated no more.
In sum, the embodiment of the present invention provides a kind of method for detecting plant nitrogen content, device and electronic equipment, institute
The method for stating detection plant nitrogen content is specially:The canopy image of herborization, multiple figures are divided into by the canopy image of collection
Photo section, it is image to be analyzed to choose and the image segments of center are located in the multiple images fragment, and then extracts and treat point
The RGB ratio value of each pixel in analysis image.RGB ratio value to each pixel is standardized, to entering rower
RGB ratio value after standardization is screened according to preset rules, to the green in the RGB ratio value of the pixel after screening
Ratio value is added, and obtains green ratio value summation.And then according to default Mathematical Modeling, bring green ratio value summation into calculating
Obtain the corresponding nitrogen content of the plant.By the embodiment of the present invention, realize using conveniently method to plant nitrogen
Content is measured, it is to avoid use the herborization of damage type mode to detect the nitrogen content of the plant.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it is also possible to pass through
Other modes are realized.Device embodiment described above is only schematical, for example, flow chart and block diagram in accompanying drawing
Show the device of multiple embodiments of the invention, the architectural framework in the cards of method and computer program product,
Function and operation.At this point, each square frame in flow chart or block diagram can represent one the one of module, program segment or code
Part a, part for the module, program segment or code is used to realize holding for the logic function for specifying comprising one or more
Row instruction.It should also be noted that at some as in the implementation replaced, the function of being marked in square frame can also be being different from
The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially be performed substantially in parallel, they are sometimes
Can perform in the opposite order, this is depending on involved function.It is also noted that every in block diagram and/or flow chart
The combination of the square frame in individual square frame and block diagram and/or flow chart, can use the function or the special base of action for performing regulation
Realized in the system of hardware, or can be realized with the combination of computer instruction with specialized hardware.
In addition, each functional module in each embodiment of the invention can integrate to form an independent portion
Divide, or modules individualism, it is also possible to which two or more modules are integrated to form an independent part.
If the function is to realize in the form of software function module and as independent production marketing or when using, can be with
Storage is in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used to so that a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.Need
Illustrate, herein, such as first and second or the like relational terms be used merely to by an entity or operation with
Another entity or operation make a distinction, and not necessarily require or imply these entities or there is any this reality between operating
The relation or order on border.And, term " including ", "comprising" or its any other variant be intended to the bag of nonexcludability
Contain, so that process, method, article or equipment including a series of key elements are not only including those key elements, but also including
Other key elements being not expressly set out, or it is this process, method, article or the intrinsic key element of equipment also to include.
In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including the key element
Process, method, article or equipment in also there is other identical element.
The preferred embodiments of the present invention are the foregoing is only, is not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair
Change, equivalent, improvement etc., should be included within the scope of the present invention.It should be noted that:Similar label and letter exists
Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, then it is not required in subsequent accompanying drawing
It is further defined and is explained.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.
Claims (10)
1. it is a kind of detect plant nitrogen content method, it is characterised in that methods described includes:
Extract the RGB ratio value of each pixel in image to be analyzed;
Green ratio value in the RGB ratio value of multiple pixels is added, green ratio value summation is obtained;
According to default Mathematical Modeling, nitrogen corresponding with the green ratio value summation is obtained according to the green ratio value summation
Cellulose content.
2. the method for detecting plant nitrogen content as claimed in claim 1, it is characterised in that in the extraction image to be analyzed
Also include step after the RGB ratio value of each pixel:
The RGB ratio value is screened according to preset rules, obtains multiple pixels for characterizing plant.
3. the method for detecting plant nitrogen content as claimed in claim 1, it is characterised in that in the extraction image to be analyzed
Also include step after the RGB ratio value of each pixel:
According to preset algorithm, the RGB ratio value to each pixel in the image to be analyzed is standardized.
4. the method for detecting plant nitrogen content as claimed in claim 1, it is characterised in that in the extraction image to be analyzed
Also include step before the RGB ratio value of each pixel:
Gather the canopy image of the plant;
The canopy image is split, multiple images fragment is obtained;
Image to be analyzed is obtained, the image to be analyzed is the image segments in center in the multiple image segments.
5. it is a kind of detect plant nitrogen content device, it is characterised in that described device includes:
Extraction module, the RGB ratio value for extracting each pixel in image to be analyzed;
Summation module, for the green ratio value in the RGB ratio value of multiple pixels to be added, obtains green ratio
Value summation;
Computing module, for according to default Mathematical Modeling, being obtained and the green ratio according to the green ratio value summation
The corresponding nitrogen content of value summation.
6. the device of plant nitrogen content is detected as claimed in claim 5, it is characterised in that described device also includes:
Screening module, for being screened to the RGB ratio value according to preset rules, the multiple after being screened is described
Pixel.
7. the device of plant nitrogen content is detected as claimed in claim 5, it is characterised in that described device also includes:
Standardized module, for according to preset algorithm, the RGB ratio value to each pixel in the image to be analyzed to be entered
Row standardization.
8. the device of plant nitrogen content is detected as claimed in claim 5, it is characterised in that described device also includes:
Acquisition module, the canopy image for gathering the plant;
Segmentation module, for splitting to the canopy image, obtains multiple images fragment;
Acquisition module, for obtaining image to be analyzed, the image to be analyzed is to be in centre bit in the multiple image segments
The image segments put.
9. a kind of electronic equipment, it is characterised in that the electronic equipment includes:
Memory;
Processor;And
Detect plant nitrogen content device, the device of the detection plant nitrogen content be installed in the memory and including
One or more by the computing device software function module, the device of the detection plant nitrogen content includes:
Extraction module, the RGB ratio value for extracting each pixel in image to be analyzed;
Summation module, for the green ratio value in the RGB ratio value of multiple pixels to be added, obtains green ratio
Value summation;
Computing module, for according to default Mathematical Modeling, being obtained and the green ratio according to the green ratio value summation
The corresponding nitrogen content of value summation.
10. electronic equipment as claimed in claim 9, it is characterised in that the device of the detection plant nitrogen content also includes
Acquisition module, segmentation module, acquisition module, standardized module and screening module;The acquisition module is used to gather the plant
The canopy image of thing, the segmentation module is used to split the canopy image, obtains multiple images fragment;The acquisition
Module is used to obtain image to be analyzed, and the image to be analyzed is the image sheet in center in the multiple image segments
Section, the standardized module is used for according to preset algorithm, and the RGB ratio value to each pixel in the image to be analyzed is entered
Row standardization, the screening module is used to screen the RGB ratio value according to preset rules, after being screened
Multiple pixels.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710061236.XA CN106919740A (en) | 2017-01-25 | 2017-01-25 | Detect method, device and the electronic equipment of plant nitrogen content |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710061236.XA CN106919740A (en) | 2017-01-25 | 2017-01-25 | Detect method, device and the electronic equipment of plant nitrogen content |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106919740A true CN106919740A (en) | 2017-07-04 |
Family
ID=59454519
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710061236.XA Pending CN106919740A (en) | 2017-01-25 | 2017-01-25 | Detect method, device and the electronic equipment of plant nitrogen content |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106919740A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108152213A (en) * | 2017-12-13 | 2018-06-12 | 四川省农业科学院遥感应用研究所 | A kind of system of Diagnosis Rice canopy nitrogen nutritional status |
CN110006895A (en) * | 2018-01-05 | 2019-07-12 | 财团法人工业技术研究院 | Detection device and detection method |
CN112666093A (en) * | 2020-12-16 | 2021-04-16 | 扬州大学 | Method for determining soil drying degree according to rice leaf color ratio |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080247603A1 (en) * | 2007-03-30 | 2008-10-09 | Gerda Roxana Tomic | Portable tool for determining meat quality |
CN101604359A (en) * | 2009-07-20 | 2009-12-16 | 中国水稻研究所 | Rice nitrogen fertilizing recommending method using image method |
CN102759510A (en) * | 2012-06-29 | 2012-10-31 | 浙江大学 | Spectral detection method of rape canopy information |
CN105675821A (en) * | 2016-02-21 | 2016-06-15 | 南京农业大学 | Image evaluation index establishing method for nondestructive diagnosis of crop nitrogen nutrition |
CN106290197A (en) * | 2016-09-06 | 2017-01-04 | 西北农林科技大学 | The estimation of rice leaf total nitrogen content EO-1 hyperion and estimation models construction method |
-
2017
- 2017-01-25 CN CN201710061236.XA patent/CN106919740A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080247603A1 (en) * | 2007-03-30 | 2008-10-09 | Gerda Roxana Tomic | Portable tool for determining meat quality |
CN101604359A (en) * | 2009-07-20 | 2009-12-16 | 中国水稻研究所 | Rice nitrogen fertilizing recommending method using image method |
CN102759510A (en) * | 2012-06-29 | 2012-10-31 | 浙江大学 | Spectral detection method of rape canopy information |
CN105675821A (en) * | 2016-02-21 | 2016-06-15 | 南京农业大学 | Image evaluation index establishing method for nondestructive diagnosis of crop nitrogen nutrition |
CN106290197A (en) * | 2016-09-06 | 2017-01-04 | 西北农林科技大学 | The estimation of rice leaf total nitrogen content EO-1 hyperion and estimation models construction method |
Non-Patent Citations (1)
Title |
---|
张辉: "基于计算机图像处理的叶片氮素检测***研究", 《中国优秀硕士学位论文全文数据库农业科技辑》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108152213A (en) * | 2017-12-13 | 2018-06-12 | 四川省农业科学院遥感应用研究所 | A kind of system of Diagnosis Rice canopy nitrogen nutritional status |
CN110006895A (en) * | 2018-01-05 | 2019-07-12 | 财团法人工业技术研究院 | Detection device and detection method |
CN112666093A (en) * | 2020-12-16 | 2021-04-16 | 扬州大学 | Method for determining soil drying degree according to rice leaf color ratio |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Rastogi et al. | Leaf disease detection and grading using computer vision technology & fuzzy logic | |
Petrellis | A smart phone image processing application for plant disease diagnosis | |
CN104200193A (en) | Fruit tree yield estimation method and device | |
Zhou et al. | Strawberry maturity classification from UAV and near-ground imaging using deep learning | |
CN109447945B (en) | Quick counting method for basic wheat seedlings based on machine vision and graphic processing | |
CN104132897B (en) | A kind of nitrogenous measuring method of plant leaf blade based on handheld device and device | |
CN114818909B (en) | Weed detection method and device based on crop growth characteristics | |
Herzog | Initial steps for high-throughput phenotyping in vineyards | |
CN104751122B (en) | A kind of computational methods and system of crops disease index | |
CN106919740A (en) | Detect method, device and the electronic equipment of plant nitrogen content | |
Shaikh et al. | Citrus leaf unhealthy region detection by using image processing technique | |
Díaz et al. | Grapevine buds detection and localization in 3D space based on structure from motion and 2D image classification | |
CN109859057A (en) | A kind of farm field data processing method, server and storage medium | |
Liang et al. | Segmentation and weight prediction of grape ear based on SFNet-ResNet18 | |
US11880981B2 (en) | Method and system for leaf age estimation based on morphological features extracted from segmented leaves | |
Ji et al. | In-field automatic detection of maize tassels using computer vision | |
Zhang et al. | High-throughput corn ear screening method based on two-pathway convolutional neural network | |
CN106530290A (en) | Medical image analysis method and device | |
Li et al. | An automatic approach for detecting seedlings per hill of machine-transplanted hybrid rice utilizing machine vision | |
CN111918547A (en) | Crown identification device, identification method, program, and recording medium | |
Rahim et al. | Deep learning-based accurate grapevine inflorescence and flower quantification in unstructured vineyard images acquired using a mobile sensing platform | |
Hall et al. | Object-based analysis of grapevine canopy relationships with winegrape composition and yield in two contrasting vineyards using multitemporal high spatial resolution optical remote sensing | |
Tu et al. | AIseed: An automated image analysis software for high-throughput phenotyping and quality non-destructive testing of individual plant seeds | |
Yuan et al. | YOLOv5s-CBAM-DMLHead: A lightweight identification algorithm for weedy rice (Oryza sativa f. spontanea) based on improved YOLOv5 | |
CN103824083B (en) | Web online species recognition method based on blade complete and partial two-value characteristics |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170704 |
|
RJ01 | Rejection of invention patent application after publication |