[go: up one dir, main page]

CN115687850A - Method and device for calculating irrigation water demand of farmland - Google Patents

Method and device for calculating irrigation water demand of farmland Download PDF

Info

Publication number
CN115687850A
CN115687850A CN202211367060.8A CN202211367060A CN115687850A CN 115687850 A CN115687850 A CN 115687850A CN 202211367060 A CN202211367060 A CN 202211367060A CN 115687850 A CN115687850 A CN 115687850A
Authority
CN
China
Prior art keywords
farmland
crop
water demand
target image
irrigation water
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
Application number
CN202211367060.8A
Other languages
Chinese (zh)
Inventor
张钟莉莉
张馨
赵九霄
郭瑞
郝迪
王德群
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Intelligent Equipment Technology Research Center of Beijing Academy of Agriculture and Forestry Sciences
Original Assignee
Intelligent Equipment Technology Research Center of Beijing Academy of Agriculture and Forestry Sciences
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Intelligent Equipment Technology Research Center of Beijing Academy of Agriculture and Forestry Sciences filed Critical Intelligent Equipment Technology Research Center of Beijing Academy of Agriculture and Forestry Sciences
Priority to CN202211367060.8A priority Critical patent/CN115687850A/en
Publication of CN115687850A publication Critical patent/CN115687850A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

本发明提供一种农田的灌溉需水量计算方法及装置,属于农业信息技术领域,所述方法包括:根据颜色特征对农田的目标图像进行图像分割,确定所述目标图像中的绿色作物所处的目标区域;根据所述目标区域的像素个数与所述目标图像的总像素个数的比值,确定绿色作物的覆盖率;根据所述覆盖率和气象数据,确定所述农田的灌溉需水量。本发明利用基于颜色特征的图像分割方法计算出作物覆盖率,计算得到作物系数,再根据作物系数和参考作物蒸发蒸腾量计算得到作物需水量,改变传统作物需水量计算方式,实现作物需水量自动计算,提高生产效率并节省成本。

Figure 202211367060

The invention provides a method and device for calculating the irrigation water demand of farmland, belonging to the field of agricultural information technology. The method includes: performing image segmentation on the target image of the farmland according to the color feature, and determining where the green crops in the target image are located. Target area: Determine the coverage rate of green crops according to the ratio of the number of pixels in the target area to the total number of pixels in the target image; determine the irrigation water demand of the farmland according to the coverage rate and meteorological data. The invention uses the image segmentation method based on color features to calculate the crop coverage rate, calculates the crop coefficient, and then calculates the crop water demand according to the crop coefficient and reference crop evapotranspiration, changes the traditional calculation method of crop water demand, and realizes automatic crop water demand Calculate, increase productivity and save money.

Figure 202211367060

Description

一种农田的灌溉需水量计算方法及装置Calculation method and device for irrigation water demand of farmland

技术领域technical field

本发明涉及农业信息技术领域,尤其涉及一种农田的灌溉需水量计算方法及装置。The invention relates to the field of agricultural information technology, in particular to a method and device for calculating irrigation water demand of farmland.

背景技术Background technique

目前,农业用水浪费相当严重,利用率低下,发展节水农业已是世界各国的采取的重要举措之一。作物需水量是农业用水的重要组成部分,合理准确地预估作物需水量,是确定科学合理的作物灌溉制度、地区灌溉用水量以及实施精细灌溉的基础。At present, the waste of agricultural water is quite serious, and the utilization rate is low. The development of water-saving agriculture is one of the important measures taken by countries all over the world. Crop water demand is an important part of agricultural water use. Reasonable and accurate estimation of crop water demand is the basis for determining a scientific and reasonable crop irrigation system, regional irrigation water consumption, and implementation of precision irrigation.

确定作物需水量是指定合理灌溉的基础,一般选取的是经验参数,但由于种植品种和农艺措施的不同,导致标准作物系数的准确性不高,进而导致灌溉量需水量的计算精度较低。Determining crop water demand is the basis for specifying reasonable irrigation. Generally, empirical parameters are selected. However, due to differences in planting varieties and agronomic measures, the accuracy of standard crop coefficients is not high, which in turn leads to low calculation accuracy of irrigation water demand.

发明内容Contents of the invention

本发明提供一种农田的灌溉需水量计算方法及装置,用以解决现有技术中灌溉量需水量的计算精度较低的缺陷。The invention provides a calculation method and device for irrigation water demand of farmland, which is used to solve the defect of low calculation accuracy of irrigation water demand in the prior art.

第一方面,本发明提供一种农田的灌溉需水量计算方法,包括:根据颜色特征对农田的目标图像进行图像分割,确定所述目标图像中的绿色作物所处的目标区域;根据所述目标区域的像素个数与所述目标图像的总像素个数的比值,确定绿色作物的覆盖率;根据所述覆盖率和气象数据,确定所述农田的灌溉需水量。In the first aspect, the present invention provides a method for calculating the irrigation water demand of farmland, which includes: performing image segmentation on the target image of the farmland according to the color features, and determining the target area where the green crops in the target image are located; according to the target The ratio of the number of pixels in the area to the total number of pixels in the target image determines the coverage of green crops; and determines the irrigation water demand of the farmland according to the coverage and meteorological data.

根据本发明提供的一种农田的灌溉需水量计算方法,所述基于所述覆盖率结合气象数据,确定所述农田的灌溉需水量,包括:将所述覆盖率输入作物系数目标估算模型,获取所述绿色作物的作物系数;根据所述作物系数和气象数据,确定所述农田的参考作物蒸发蒸腾量;基于所述作物系数和所述参考作物蒸发蒸腾量,确定所述农田的灌溉需水量。According to a method for calculating the irrigation water demand of farmland provided by the present invention, the determination of the irrigation water demand of the farmland based on the coverage rate combined with meteorological data includes: inputting the coverage rate into the crop coefficient target estimation model to obtain The crop coefficient of the green crop; according to the crop coefficient and meteorological data, determine the reference crop evapotranspiration of the farmland; determine the irrigation water demand of the farmland based on the crop coefficient and the reference crop evapotranspiration .

根据本发明提供的一种农田的灌溉需水量计算方法,在根据颜色特征对农田的目标图像进行图像分割,确定所述目标图像中的绿色作物所处的目标区域之前,还包括:利用图像采集设备采集所述农田的初始图像;利用降噪算法和透视变换法对所述初始图像进行优化处理,获取目标图像;所述图像采集设备包括手机。According to a method for calculating farmland irrigation water demand provided by the present invention, before performing image segmentation on the target image of the farmland according to the color features, and before determining the target area where the green crops in the target image are located, it also includes: using image acquisition The equipment collects the initial image of the farmland; the initial image is optimized using a noise reduction algorithm and a perspective transformation method to obtain a target image; the image acquisition device includes a mobile phone.

根据本发明提供的一种农田的灌溉需水量计算方法,建立所述作物系数估算模型的步骤包括:获取多个数目相同的目标图像样本集,将其中一个目标图像样本集作为目标图像测试集,其余的每个目标图像样本集作为目标图像训练集;根据目标图像样本的覆盖率与作物系数的函数关系,利用每个目标图像训练集建立对应的作物系数估算模型;利用所述目标图像测试集,对每个所述作物系数估算模型进行测试,将最优的作物系数估算模型作为作物系数目标估算模型。According to a method for calculating water demand for farmland irrigation provided by the present invention, the step of establishing the crop coefficient estimation model includes: obtaining a plurality of target image sample sets with the same number, and using one of the target image sample sets as a target image test set, Each of the remaining target image sample sets is used as a target image training set; according to the functional relationship between the coverage rate of the target image sample and the crop coefficient, a corresponding crop coefficient estimation model is established using each target image training set; using the target image test set , each of the crop coefficient estimation models is tested, and the optimal crop coefficient estimation model is used as the crop coefficient target estimation model.

根据本发明提供的一种农田的灌溉需水量计算方法,所述根据所述作物系数和气象数据,确定所述农田的参考作物蒸发蒸腾量,其计算公式为:According to a method for calculating the irrigation water demand of farmland provided by the present invention, the reference crop evapotranspiration of the farmland is determined according to the crop coefficient and meteorological data, and its calculation formula is:

Figure BDA0003921476490000021
Figure BDA0003921476490000021

Figure BDA0003921476490000022
Figure BDA0003921476490000022

Rn=Rns-RnlR n =R ns -R nl ;

G=0.38(Td-Td-1);G=0.38( Td - Td-1 );

γ=0.00163P/λ;γ=0.00163P/λ;

U2=4.87·Uh/ln(67.8h-5.42);U 2 =4.87·U h /ln(67.8h-5.42);

Figure BDA0003921476490000031
Figure BDA0003921476490000031

Figure BDA0003921476490000032
Figure BDA0003921476490000032

ET0为参考作物蒸发蒸腾量;T为平均气温;Δ为温度-饱和水汽压关系曲线在T处的切线斜率;Rn为净太阳辐射,Rns为静短波辐射,Rnl为静长波辐射;G为土壤热通量,对于逐日估算ET0,计算第d日土壤热通量,Td和Td-1分别是第d天和第d-1天的平均气温;γ为温度表常数,λ为潜热;U2为2米高处风速,h为高度,Uh为高度h处的风速;ea为饱和水汽压;ed为实际水汽压,其中Tmin为日最低气温,Tmax为日最高气温,P为当日的降水量。ET 0 is the reference crop evapotranspiration; T is the average temperature; Δ is the tangent slope of the temperature-saturated water vapor pressure relationship curve at T; R n is the net solar radiation, R ns is the static short-wave radiation, R nl is the static long-wave radiation ; G is the soil heat flux, for the daily estimation of ET 0 , calculate the soil heat flux on the d-th day, T d and T d-1 are the average temperature of the d-th day and d-1 day respectively; γ is the temperature table constant , λ is latent heat; U 2 is the wind speed at a height of 2 meters, h is the height, U h is the wind speed at height h; e a is the saturated water vapor pressure; e d is the actual water vapor pressure, where T min is the daily minimum temperature, T max is the daily maximum temperature, and P is the daily precipitation.

根据本发明提供的一种农田的灌溉需水量计算方法,所述基于所述作物系数和所述参考作物蒸发蒸腾量,确定所述农田的灌溉需水量,其具体公式为:According to a method for calculating the irrigation water demand of farmland provided by the present invention, the irrigation water demand of the farmland is determined based on the crop coefficient and the reference crop evapotranspiration, and its specific formula is:

ETc=Kc*ET0ET c =K c *ET 0 ;

其中,ETc为灌溉需水量,Kc为作物系数。Among them, ET c is the irrigation water demand, and K c is the crop coefficient.

第二方面,本发明还提供一种农田的灌溉需水量计算装置,包括:In a second aspect, the present invention also provides a calculation device for irrigation water demand of farmland, comprising:

第一处理模块,用于根据颜色特征对农田的目标图像进行图像分割,确定所述目标图像中的绿色作物所处的目标区域;The first processing module is used to perform image segmentation on the target image of the farmland according to the color feature, and determine the target area where the green crops in the target image are located;

第二处理模块,用于根据所述目标区域的像素个数与所述目标图像的总像素个数的比值,确定绿色作物的覆盖率;The second processing module is used to determine the coverage rate of green crops according to the ratio of the number of pixels in the target area to the total number of pixels in the target image;

第三处理模块,用于根据所述覆盖率和气象数据,确定所述农田的灌溉需水量。The third processing module is used to determine the irrigation water demand of the farmland according to the coverage rate and meteorological data.

第三方面,本发明提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述任一种所述农田的灌溉需水量计算方法的步骤。In a third aspect, the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the program, any of the above-mentioned The steps of the method for calculating the irrigation water demand of farmland.

第四方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如上述任一种所述农田的灌溉需水量计算方法的步骤。In the fourth aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for calculating the irrigation water demand of farmland as described in any one of the above-mentioned methods is realized. step.

第五方面,本发明还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述任一项所述农田的灌溉需水量计算方法的步骤In the fifth aspect, the present invention also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the method for calculating the irrigation water demand of farmland as described in any one of the above are realized

本发明利用基于颜色特征的图像分割方法计算出作物覆盖率,计算得到作物系数,再根据作物系数和参考作物蒸发蒸腾量计算得到作物需水量,改变传统作物需水量计算方式,实现作物需水量自动计算,提高生产效率并节省成本。The invention uses the image segmentation method based on color features to calculate the crop coverage rate, calculates the crop coefficient, and then calculates the crop water demand according to the crop coefficient and reference crop evapotranspiration, changes the traditional calculation method of crop water demand, and realizes automatic crop water demand Calculate, increase productivity and save money.

附图说明Description of drawings

为了更清楚地说明本发明或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the present invention or the technical solutions in the prior art, the accompanying drawings that need to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings in the following description are the present invention. For some embodiments of the invention, those skilled in the art can also obtain other drawings based on these drawings without creative effort.

图1是本发明提供的农田的灌溉需水量计算方法的流程示意图之一;Fig. 1 is one of the schematic flow charts of the irrigation water demand calculation method of the farmland provided by the present invention;

图2是本发明提供的农田的灌溉需水量计算方法的流程示意图之二;Fig. 2 is the second schematic flow chart of the irrigation water demand calculation method of the farmland provided by the present invention;

图3是本发明提供的农田的灌溉需水量计算装置的结构示意图;Fig. 3 is the structural representation of the calculation device of the irrigation water demand of farmland provided by the present invention;

图4是本发明提供的电子设备的结构示意图。Fig. 4 is a schematic structural diagram of an electronic device provided by the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明中的附图,对本发明中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention , but not all examples. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

需要说明的是,在本发明实施例的描述中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。术语“上”、“下”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。It should be noted that, in the description of the embodiments of the present invention, the terms "comprising", "comprising" or any other variant thereof are intended to cover a non-exclusive inclusion, so that a process, method, article or device comprising a series of elements Not only those elements are included, but also other elements not expressly listed or inherent in such process, method, article or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element. The orientation or positional relationship indicated by the terms "upper", "lower", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the referred device or element must Having a particular orientation, being constructed and operating in a particular orientation, and therefore not to be construed as limiting the invention. Unless otherwise clearly specified and limited, the terms "installation", "connection" and "connection" should be interpreted in a broad sense, for example, it may be a fixed connection, a detachable connection, or an integral connection; it may be a mechanical connection, It can also be an electrical connection; it can be a direct connection, or an indirect connection through an intermediary, or an internal communication between two components. Those of ordinary skill in the art can understand the specific meanings of the above terms in the present invention according to specific situations.

本申请中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。The terms "first", "second" and the like in this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that references to "first," "second," etc. distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects.

近年来,计算机视觉技术已经大规模应用于农业工程。计算机视觉包括目标检测、图像处理等方面,通过摄像机代替人眼对目标进行识别和测量等,并进一步进行图形处理。研究表明,合适的计算机视觉算法可以用于许多任务,比如果品分级与监测、粮食种质的检验与评测和植物生长状态监测等。计算机视觉的出现为作物参数的无损分析提供了新的途径。已经实现通过机器视觉技术识别作物的颜色和生物学特性,并能精确检测计算出作物的秃率、穗行数、行粒数等性状参数。本发明基于计算机视觉技术,提供了一种农田的灌溉需水量计算方法,用于指导合理灌溉,具有在线无损、低成本、可实施性高的优点。In recent years, computer vision technology has been widely used in agricultural engineering. Computer vision includes target detection, image processing, etc., using cameras instead of human eyes to identify and measure targets, and further image processing. Studies have shown that suitable computer vision algorithms can be used for many tasks, such as fruit grading and monitoring, grain germplasm inspection and evaluation, and plant growth status monitoring. The advent of computer vision provides new avenues for non-destructive analysis of crop parameters. It has realized the recognition of the color and biological characteristics of crops through machine vision technology, and can accurately detect and calculate the trait parameters of crops such as bald rate, ear row number, and row grain number. Based on computer vision technology, the invention provides a calculation method for irrigation water demand of farmland, which is used to guide rational irrigation, and has the advantages of online non-destructive, low cost and high implementability.

下面结合图1-图4描述本发明实施例所提供的农田的灌溉需水量计算方法和装置。The method and device for calculating the irrigation water demand of farmland provided by the embodiments of the present invention will be described below with reference to FIGS. 1-4 .

图1是本发明提供的农田的灌溉需水量计算方法的流程示意图之一,如图1所示,包括但不限于以下步骤:Fig. 1 is one of the flow diagrams of the irrigation water demand calculation method of farmland provided by the present invention, as shown in Fig. 1, including but not limited to the following steps:

步骤101:根据颜色特征对农田的目标图像进行图像分割,确定所述目标图像中的绿色作物所处的目标区域。Step 101: Segment the target image of the farmland according to the color features, and determine the target area where the green crops in the target image are located.

农田中绿色作物与背景土地在颜色上有明显的区分,通过目标图像中不同区域的颜色特征,可以实现不同区域的分割。例如,将目标图像中绿色分量占比较大的区域作为目标区域。通过图像分割技术可以从目标图像取出背景,保留绿色作物图像。The green crops in the farmland are clearly distinguished from the background land in color, and the segmentation of different regions can be achieved through the color features of different regions in the target image. For example, an area with a large proportion of green components in the target image is taken as the target area. The background can be removed from the target image and the green crop image can be preserved by image segmentation technology.

步骤102:根据所述目标区域的像素个数与所述目标图像的总像素个数的比值,确定绿色作物的覆盖率。Step 102: Determine the coverage rate of green crops according to the ratio of the number of pixels in the target area to the total number of pixels in the target image.

应用基于颜色特征的图像分割之后,目标区域的像素个数(即绿色作物类像素个数)占目标图像总像素数的比值,其公式为:After image segmentation based on color features is applied, the ratio of the number of pixels in the target area (that is, the number of green crop pixels) to the total number of pixels in the target image is expressed as:

PGC=px_crop/px_img;PGC = px_crop/px_img;

其中,PGC为绿色作物的覆盖率,px_crop为目标区域的像素个数,px_img为目标图像的总像素数。Among them, PGC is the coverage rate of green crops, px_crop is the number of pixels in the target area, and px_img is the total number of pixels in the target image.

步骤103:根据所述覆盖率和气象数据,确定所述农田的灌溉需水量。Step 103: Determine the irrigation water demand of the farmland according to the coverage rate and meteorological data.

其中,气象数据包括温度、太阳辐射、平均气温、风速、气压等数据。基于所述覆盖率可以推导出所述绿色作物的作物系数,结合气象数据根据PM(Penman-Monteith)公式计算参考作物蒸发蒸腾量。Among them, meteorological data include temperature, solar radiation, average temperature, wind speed, air pressure and other data. The crop coefficient of the green crop can be deduced based on the coverage rate, and the reference crop evapotranspiration is calculated according to the PM (Penman-Monteith) formula in combination with the meteorological data.

进一步地,根据作物系数和参考作物蒸发蒸腾量计算出作物需水量,以确定灌溉需水量。Further, the crop water requirement is calculated according to the crop coefficient and the reference crop evapotranspiration, so as to determine the irrigation water requirement.

本发明利用基于颜色特征的图像分割方法计算出作物覆盖率,计算得到作物系数,再根据作物系数和参考作物蒸发蒸腾量计算得到作物需水量,改变传统作物需水量计算方式,实现作物需水量自动计算,提高生产效率并节省成本。The invention uses the image segmentation method based on color features to calculate the crop coverage rate, calculates the crop coefficient, and then calculates the crop water demand according to the crop coefficient and reference crop evapotranspiration, changes the traditional calculation method of crop water demand, and realizes automatic crop water demand Calculate, increase productivity and save money.

图2是本发明提供的农田的灌溉需水量计算方法的流程示意图之二,如图2所示,本发明提供的农田的灌溉需水量计算方法包括:初始图像获取单元、图像处理单元、作物系数计算单元、参考作物蒸发蒸腾量计算单元以及灌溉需水量计算单元。为了可以更加清楚的对本发明的技术方案进行说明,下面结合具体的实施例对本发明技术方案进行说明。Fig. 2 is the second schematic flow chart of the calculation method of the irrigation water demand of the farmland provided by the present invention, as shown in Fig. 2, the calculation method of the irrigation water demand of the farmland provided by the invention comprises: initial image acquisition unit, image processing unit, crop coefficient Calculation unit, reference crop evapotranspiration calculation unit and irrigation water demand calculation unit. In order to describe the technical solution of the present invention more clearly, the technical solution of the present invention will be described below in conjunction with specific embodiments.

基于上述实施例的内容,作为一种可选的实施例,本发明提供的农田的灌溉需水量计算方法,在根据颜色特征对农田的目标图像进行图像分割,确定所述目标图像中的绿色作物所处的目标区域之前,还包括:利用图像采集设备采集所述农田的初始图像;利用降噪算法和透视变换法对所述初始图像进行优化处理,获取目标图像。Based on the content of the above-mentioned embodiments, as an optional embodiment, the method for calculating the irrigation water demand of the farmland provided by the present invention is to perform image segmentation on the target image of the farmland according to the color features, and determine the green crops in the target image Before the target area, it also includes: using an image acquisition device to collect an initial image of the farmland; using a noise reduction algorithm and a perspective transformation method to optimize the initial image to obtain a target image.

其中,初始图像获取单元中的图像采集设备包括手机,本发明用手机拍照作为初始图像的来源,在作物的整个生长周期中多次采集初始图像。Wherein, the image acquisition device in the initial image acquisition unit includes a mobile phone. In the present invention, the mobile phone is used to take photos as the source of the initial image, and the initial image is collected multiple times during the entire growth cycle of the crop.

本发明提出农田的灌溉需水量计算方法,以低成本手机拍摄为主要的图像获取装置,实现只通过手持拍照的方式就可以自动计算出作物系数,减少拍摄设备所需成本,并且增加获取数据方式的灵活性。The present invention proposes a method for calculating the water demand for irrigation of farmland, using low-cost mobile phone photography as the main image acquisition device, realizing that the crop coefficient can be automatically calculated only by hand-held photography, reducing the cost of photography equipment, and increasing the way to obtain data flexibility.

可选地,本发明的图像处理单元利用降噪算法和透视变换法对所述初始图像进行优化处理,获取目标图像。下面对本发明的图像处理单元对初始图像进行优化处理的步骤进行说明。Optionally, the image processing unit of the present invention optimizes the initial image by using a noise reduction algorithm and a perspective transformation method to obtain a target image. The steps of optimizing the initial image by the image processing unit of the present invention will be described below.

对于本发明采集到初始图像的噪声,主要来源于采集过程、传输过程。本发明噪声来源主要是是高斯噪声。针对初始图像中存在的高斯噪声,本发明将使用高斯滤波器来处理存在的高斯噪声。高斯滤波器作为应用广泛的平滑处理算法,其可以很好的降低图像噪声,与此同时该滤波器不会因为去除噪声而消除图像细节。The noise of the initial image collected by the present invention mainly comes from the collection process and the transmission process. The noise source of the present invention is mainly Gaussian noise. For the Gaussian noise existing in the initial image, the present invention will use a Gaussian filter to process the existing Gaussian noise. As a widely used smoothing algorithm, the Gaussian filter can reduce image noise very well, and at the same time, the filter will not eliminate image details due to noise removal.

对于本发明中采集到的带有噪声的图像T(x),其加性噪声用下面公式来表示:For the image T (x) with noise collected in the present invention, its additive noise is represented by following formula:

T(x)=S(x)+η(x),x∈ΩT(x)=S(x)+η(x), x∈Ω

T(x)代表有噪声的初始图像,S(x)代表没有噪声的初始图像,η(x)是加项噪声项;Ω是整幅初始图像包含的总的像素点。去除噪声项后就可以得到没有噪声的初始图像。T(x) represents the initial image with noise, S(x) represents the initial image without noise, η(x) is the added noise term; Ω is the total number of pixels contained in the entire initial image. After removing the noise term, the initial image without noise can be obtained.

使用指数平滑法替代高斯滤波器中的光滑系数:Use exponential smoothing instead of smoothing coefficients in a Gaussian filter:

Figure BDA0003921476490000081
Figure BDA0003921476490000081

其中,α为平滑系数,t代表时间。Among them, α is the smoothing coefficient, and t represents time.

本发明用透视变换方法来解决三维畸变。透视变换是将三维图像转换的过程,仿射变换是二维图像变换的过程。得到畸变图像中一组四个点和目标图像中一组四个点的坐标后,应用透视变换校正畸变图像。通过两组坐标点计算透视变换的变换矩阵,进而对整个原始图像进行变换,实现图像校正。The present invention uses a perspective transformation method to solve three-dimensional distortion. Perspective transformation is the process of transforming three-dimensional images, and affine transformation is the process of transforming two-dimensional images. After obtaining the coordinates of a set of four points in the distorted image and a set of four points in the target image, the perspective transformation is applied to correct the distorted image. The transformation matrix of perspective transformation is calculated through two sets of coordinate points, and then the entire original image is transformed to realize image correction.

将世界坐标系与相机坐标系进行转换,世界坐标为(X,Y,Z),相机坐标为(XC,YC,ZC),在世界坐标和相机坐标之间存在旋转变换矩阵R和位移变换矩阵T。Transform the world coordinate system and the camera coordinate system, the world coordinates are (X, Y, Z), the camera coordinates are (X C , Y C , Z C ), there is a rotation transformation matrix R and The displacement transformation matrix T.

应用的世界坐标系到相机坐标系的转换公式为:The conversion formula from the applied world coordinate system to the camera coordinate system is:

Figure BDA0003921476490000082
Figure BDA0003921476490000082

本发明畸变图像中四个点的坐标为参照物标准框的四个顶点,目标图像中四个点的坐标为图像的四个顶点。由于视角较大,并且转换后的图像在高度方向上被拉伸,因此校正后的图像对比度降低,但是其基本的颜色特征没有太大的变化。The coordinates of the four points in the distorted image of the present invention are the four vertices of the standard frame of the reference object, and the coordinates of the four points in the target image are the four vertices of the image. Since the viewing angle is larger and the transformed image is stretched in the height direction, the corrected image has reduced contrast, but its basic color characteristics do not change much.

由于图像采集的环境是复杂的自然条件,在收集图片过程中易产生图像噪声、畸变的影响。本发明通过去噪算法以及透视畸变矫正很好的削弱了环境因素对后期图像分割的影响。Due to the complex natural conditions of the image collection environment, it is easy to generate image noise and distortion in the process of image collection. The present invention well weakens the influence of environmental factors on the subsequent image segmentation through the denoising algorithm and perspective distortion correction.

由于图像中的光强变化和阴影会影响图像分割质量,并对后续的作物识别产生较大影响,因此准确提取作物类颜色特征是图像分割的关键。分析作物的颜色分布特征以便从土壤背景图像中准确地分割出绿色作物。作物茎叶颜色以不同程度的绿色和黄色为主,所以本发明在RGB空间条件下选取多个彩色图像进行图像分割。Since the light intensity changes and shadows in the image will affect the image segmentation quality and have a great impact on the subsequent crop recognition, the accurate extraction of crop color features is the key to image segmentation. The color distribution characteristics of crops are analyzed to accurately segment green crops from soil background images. The colors of crop stems and leaves are mainly green and yellow in different degrees, so the present invention selects a plurality of color images under RGB space conditions for image segmentation.

通过比较作物颜色模型,绿色G分量所占比例最大,红色R分量次之,蓝色B分量最小,因此应用分量算子2G-B和2G-R作为图像处理的颜色算子。为尽可能保留原图中的颜色信息,并且默认彩图转换为灰度图的分量算子0.299*R+0.587*G+0.114*B也符合各分量占比大小。综上,应用RGB空间的算子融合公式为:By comparing the crop color models, the green G component accounts for the largest proportion, the red R component takes the second place, and the blue B component is the smallest. Therefore, the component operators 2G-B and 2G-R are used as color operators for image processing. In order to preserve the color information of the original image as much as possible, and the component operator 0.299*R+0.587*G+0.114*B of the default color image converted to grayscale image is also in line with the proportion of each component. In summary, the operator fusion formula for applying RGB space is:

Figure BDA0003921476490000091
Figure BDA0003921476490000091

单独的2G-B,2G-R和0.299*R+0.587*G+0.114*B算子或两两融合的算子均不能区分绿色作物和背景。在三个算子融合的图像中,绿色作物的灰度值与背景的差值最大,可以区分草和背景,从而达到分割效果。因灰度图像的直方图分布具有高峰趋势,应用绿色作物类图像的三种色差特征作为图像算子解决将彩色图像的三维处理转化为灰度图像的一维的问题。The 2G-B, 2G-R and 0.299*R+0.587*G+0.114*B operators alone or pairwise fusion operators cannot distinguish between green crops and background. In the image fused by the three operators, the difference between the gray value of the green crop and the background is the largest, and the grass and the background can be distinguished to achieve the segmentation effect. Because the histogram distribution of grayscale images has a peak trend, the three color difference features of green crop images are used as image operators to solve the problem of converting the three-dimensional processing of color images into one-dimensional grayscale images.

基于上述实施例的内容,作为一种可选的实施例,本发明还提供一种农田的灌溉需水量计算方法,其中建立所述作物系数估算模型的步骤包括:获取多个数目相同的目标图像样本集,将其中一个目标图像样本集作为目标图像测试集,其余的每个目标图像样本集作为目标图像训练集;根据目标图像样本的覆盖率与作物系数的函数关系,利用每个目标图像训练集建立对应的作物系数估算模型;利用所述目标图像测试集,对每个所述作物系数估算模型进行测试,将最优的作物系数估算模型作为作物系数目标估算模型。Based on the content of the above embodiment, as an optional embodiment, the present invention also provides a method for calculating the irrigation water demand of farmland, wherein the step of establishing the crop coefficient estimation model includes: acquiring multiple target images with the same number Sample set, one of the target image sample sets is used as the target image test set, and each of the remaining target image sample sets is used as the target image training set; according to the functional relationship between the coverage rate of the target image sample and the crop coefficient, each target image is used to train Set up a corresponding crop coefficient estimation model; use the target image test set to test each of the crop coefficient estimation models, and use the optimal crop coefficient estimation model as the crop coefficient target estimation model.

具体地,本发明中获取800张目标图像,平均分为4个目标图像样本集,分别为S1,S2,S3和S4。其中,S1,S2,S3为目标图像训练集,S4为目标图像测试集。Specifically, in the present invention, 800 target images are obtained, which are equally divided into 4 target image sample sets, namely S1, S2, S3 and S4. Among them, S1, S2, and S3 are the target image training set, and S4 is the target image test set.

针对每个目标图像训练集S1,S2,S3建立作物系数估算模型,并利用目标图像测试集S4进行测试,选择准确率最高的作物系数估算模型为作物系数目标估算模型。Establish a crop coefficient estimation model for each target image training set S1, S2, S3, and use the target image test set S4 for testing, and select the crop coefficient estimation model with the highest accuracy as the crop coefficient target estimation model.

可选地,作物系数目标估算模型为覆盖率与作物系数的非线性关系模型,具体公式为:Optionally, the crop coefficient target estimation model is a nonlinear relationship model between coverage rate and crop coefficient, and the specific formula is:

KC=2.137PGC2-1.24PGC+0.2091K C =2.137PGC 2 -1.24PGC+0.2091

其中,KC为绿色农作物的作物系数,PGC为绿色作物的覆盖率。Among them, K C is the crop coefficient of green crops, and PGC is the coverage rate of green crops.

本发明针对手机拍照获取的图像数据存在噪声、失真的情况,使用去噪、透视变换方法来优化图片,最后使用基于颜色空间特征的图像分割算法来计算作物覆盖率,建立作物系数估算模型,实现作物系数的反演,计算得到参考作物蒸发蒸腾量后,进一步计算得到作物需水量。In view of the noise and distortion in the image data obtained by mobile phones, the present invention uses denoising and perspective transformation methods to optimize the picture, and finally uses an image segmentation algorithm based on color space features to calculate the crop coverage rate, establishes a crop coefficient estimation model, and realizes The inversion of crop coefficient, after calculating the reference crop evapotranspiration, further calculates the crop water requirement.

基于上述实施例的内容,作为一种可选的实施例,本发明提供的农田的灌溉需水量计算方法,所述基于所述覆盖率结合气象数据,确定所述农田的灌溉需水量,包括:将所述覆盖率输入作物系数目标估算模型,获取所述绿色作物的作物系数;根据所述作物系数和气象数据,确定所述农田的参考作物蒸发蒸腾量;基于所述作物系数和所述参考作物蒸发蒸腾量,确定所述农田的灌溉需水量。Based on the content of the above-mentioned embodiments, as an optional embodiment, the method for calculating the irrigation water demand of the farmland provided by the present invention, the determination of the irrigation water demand of the farmland based on the coverage rate combined with meteorological data includes: Input the coverage rate into the crop coefficient target estimation model to obtain the crop coefficient of the green crop; determine the reference crop evapotranspiration of the farmland according to the crop coefficient and meteorological data; based on the crop coefficient and the reference Crop evapotranspiration, which determines the irrigation water requirement of the field in question.

其中,根据所述作物系数和气象数据,确定所述农田的参考作物蒸发蒸腾量的具体公式为:Wherein, according to the crop coefficient and meteorological data, the specific formula for determining the reference crop evapotranspiration of the farmland is:

Figure BDA0003921476490000111
Figure BDA0003921476490000111

Figure BDA0003921476490000112
Figure BDA0003921476490000112

Rn=Rns-RnlR n =R ns -R nl ;

G=0.38(Td-Td-1);G=0.38( Td - Td-1 );

γ=0.00163P/λ;γ=0.00163P/λ;

U2=4.87·Uh/ln(67.8h-5.42);U 2 =4.87·U h /ln(67.8h-5.42);

Figure BDA0003921476490000113
Figure BDA0003921476490000113

Figure BDA0003921476490000114
Figure BDA0003921476490000114

ET0为参考作物蒸发蒸腾量;T为平均气温;Δ为温度-饱和水汽压关系曲线在T处的切线斜率;Rn为净太阳辐射,Rns为静短波辐射,Rnl为静长波辐射;G为土壤热通量,对于逐日估算ET0,计算第d日土壤热通量,Td和Td-1分别是第d天和第d-1天的平均气温;γ为温度表常数,λ为潜热;U2为2米高处风速,h为高度,Uh为高度h处的风速;ea为饱和水汽压;ed为实际水汽压,其中Tmin为日最低气温,Tmax为日最高气温,P为当日的降水量。ET 0 is the reference crop evapotranspiration; T is the average temperature; Δ is the tangent slope of the temperature-saturated water vapor pressure relationship curve at T; R n is the net solar radiation, R ns is the static short-wave radiation, R nl is the static long-wave radiation ; G is the soil heat flux, for the daily estimation of ET 0 , calculate the soil heat flux on the d-th day, T d and T d-1 are the average temperature of the d-th day and d-1 day respectively; γ is the temperature table constant , λ is latent heat; U 2 is the wind speed at a height of 2 meters, h is the height, U h is the wind speed at height h; e a is the saturated water vapor pressure; e d is the actual water vapor pressure, where T min is the daily minimum temperature, T max is the daily maximum temperature, and P is the daily precipitation.

ETc可以ETo和KC计算得出,计算公式如下:ET c can be calculated from ET o and K C , the calculation formula is as follows:

ETc=Kc*ET0 ET c =K c *ET 0

其中,ET0为作物需水量。Among them, ET 0 is the crop water requirement.

图3是本发明提供的农田的灌溉需水量计算装置的结构示意图,如图3所示,所述装置包括:第一处理模块301,第二处理模块302,第三处理模块303。FIG. 3 is a schematic structural diagram of a calculation device for irrigation water demand provided by the present invention. As shown in FIG. 3 , the device includes: a first processing module 301 , a second processing module 302 and a third processing module 303 .

其中,第一处理模块301,用于根据颜色特征对农田的目标图像进行图像分割,确定所述目标图像中的绿色作物所处的目标区域;Wherein, the first processing module 301 is used to perform image segmentation on the target image of the farmland according to the color feature, and determine the target area where the green crops in the target image are located;

第二处理模块302,用于根据所述目标区域的像素个数与所述目标图像的总像素个数的比值,确定绿色作物的覆盖率;The second processing module 302 is used to determine the coverage rate of green crops according to the ratio of the number of pixels in the target area to the total number of pixels in the target image;

第三处理模块303,用于根据所述覆盖率和气象数据,确定所述农田的灌溉需水量。The third processing module 303 is configured to determine the irrigation water demand of the farmland according to the coverage rate and meteorological data.

本发明利用基于颜色特征的图像分割方法计算出作物覆盖率,计算得到作物系数,再根据作物系数和参考作物蒸发蒸腾量计算得到作物需水量,改变传统作物需水量计算方式,实现作物需水量自动计算,提高生产效率并节省成本。The invention uses the image segmentation method based on color features to calculate the crop coverage rate, calculates the crop coefficient, and then calculates the crop water demand according to the crop coefficient and reference crop evapotranspiration, changes the traditional calculation method of crop water demand, and realizes automatic crop water demand Calculate, increase productivity and save money.

需要说明的是,本发明实施例提供的农田的灌溉需水量计算装置,在具体运行时,可以执行上述任一实施例所述的农田的灌溉需水量计算方法,对此本实施例不作赘述。It should be noted that, the device for calculating the water demand for farmland irrigation provided by the embodiments of the present invention may execute the method for calculating the water demand for farmland irrigation described in any of the above-mentioned embodiments during specific operation, which will not be described in detail in this embodiment.

图4是本发明提供的电子设备的结构示意图,如图4所示,该电子设备可以包括:处理器(processor)410、通信接口(Communications Interface)420、存储器(memory)430和通信总线440,其中,处理器410,通信接口420,存储器430通过通信总线440完成相互间的通信。处理器410可以调用存储器430中的逻辑指令,以执行农田的灌溉需水量计算方法,该方法包括:根据颜色特征对农田的目标图像进行图像分割,确定所述目标图像中的绿色作物所处的目标区域;根据所述目标区域的像素个数与所述目标图像的总像素个数的比值,确定绿色作物的覆盖率;根据所述覆盖率和气象数据,确定所述农田的灌溉需水量。FIG. 4 is a schematic structural diagram of an electronic device provided by the present invention. As shown in FIG. 4, the electronic device may include: a processor (processor) 410, a communication interface (Communications Interface) 420, a memory (memory) 430 and a communication bus 440, Wherein, the processor 410 , the communication interface 420 , and the memory 430 communicate with each other through the communication bus 440 . The processor 410 can call the logic instructions in the memory 430 to execute the method for calculating the irrigation water demand of the farmland. The method includes: performing image segmentation on the target image of the farmland according to the color features, and determining where the green crops in the target image are located. Target area: Determine the coverage rate of green crops according to the ratio of the number of pixels in the target area to the total number of pixels in the target image; determine the irrigation water demand of the farmland according to the coverage rate and meteorological data.

此外,上述的存储器430中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above logic instructions in the memory 430 may be implemented in the form of software function units and be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes. .

另一方面,本发明还提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述各实施例所提供的农田的灌溉需水量计算方法,该方法包括:根据颜色特征对农田的目标图像进行图像分割,确定所述目标图像中的绿色作物所处的目标区域;根据所述目标区域的像素个数与所述目标图像的总像素个数的比值,确定绿色作物的覆盖率;根据所述覆盖率和气象数据,确定所述农田的灌溉需水量。On the other hand, the present invention also provides a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer When executing, the computer can execute the method for calculating the irrigation water demand of the farmland provided by the above-mentioned embodiments, the method includes: performing image segmentation on the target image of the farmland according to the color features, and determining the target where the green crops in the target image are located area; determine the coverage rate of green crops according to the ratio of the number of pixels in the target area to the total number of pixels in the target image; determine the irrigation water demand of the farmland according to the coverage rate and meteorological data.

又一方面,本发明还提供一种非暂态计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现以执行上述各实施例提供的农田的灌溉需水量计算方法,该方法包括:根据颜色特征对农田的目标图像进行图像分割,确定所述目标图像中的绿色作物所处的目标区域;根据所述目标区域的像素个数与所述目标图像的总像素个数的比值,确定绿色作物的覆盖率;根据所述覆盖率和气象数据,确定所述农田的灌溉需水量。In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it is implemented to perform the method for calculating the irrigation water demand of farmland provided by the above-mentioned embodiments , the method includes: performing image segmentation on a target image of farmland according to color features, and determining a target area where green crops in the target image are located; The ratio of the numbers determines the coverage of green crops; according to the coverage and meteorological data, the water demand for irrigation of the farmland is determined.

以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative effort.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the above description of the implementations, those skilled in the art can clearly understand that each implementation can be implemented by means of software plus a necessary general hardware platform, and of course also by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic discs, optical discs, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (10)

1.一种农田的灌溉需水量计算方法,其特征在于,包括:1. A method for calculating the irrigation water demand of farmland, characterized in that, comprising: 根据颜色特征对农田的目标图像进行图像分割,确定所述目标图像中的绿色作物所处的目标区域;Carry out image segmentation to the target image of the farmland according to the color feature, and determine the target area where the green crops in the target image are located; 根据所述目标区域的像素个数与所述目标图像的总像素个数的比值,确定绿色作物的覆盖率;Determine the coverage rate of green crops according to the ratio of the number of pixels in the target area to the total number of pixels in the target image; 根据所述覆盖率和气象数据,确定所述农田的灌溉需水量。According to the coverage rate and meteorological data, the water demand for irrigation of the farmland is determined. 2.根据权利要求1所述的农田的灌溉需水量计算方法,其特征在于,所述基于所述覆盖率结合气象数据,确定所述农田的灌溉需水量,包括:2. The method for calculating the water demand for irrigation of farmland according to claim 1, wherein the determination of the water demand for irrigation of the farmland based on the coverage rate in combination with meteorological data includes: 将所述覆盖率输入作物系数目标估算模型,获取所述绿色作物的作物系数;Input the coverage rate into the crop coefficient target estimation model to obtain the crop coefficient of the green crop; 根据所述作物系数和气象数据,确定所述农田的参考作物蒸发蒸腾量;Determine the reference crop evapotranspiration of the farmland according to the crop coefficient and meteorological data; 基于所述作物系数和所述参考作物蒸发蒸腾量,确定所述农田的灌溉需水量。Based on the crop coefficient and the reference crop evapotranspiration, the irrigation water demand of the farmland is determined. 3.根据权利要求1所述的农田的灌溉需水量计算方法,其特征在于,在根据颜色特征对农田的目标图像进行图像分割,确定所述目标图像中的绿色作物所处的目标区域之前,还包括:3. the irrigation water demand calculation method of farmland according to claim 1, is characterized in that, before the target image of farmland is image-segmented according to color feature, before the target area where the green crop in the target image is determined, Also includes: 利用图像采集设备采集所述农田的初始图像;Using an image acquisition device to acquire an initial image of the farmland; 利用降噪算法和透视变换法对所述初始图像进行优化处理,获取目标图像;Optimizing the initial image by using a noise reduction algorithm and a perspective transformation method to obtain a target image; 所述图像采集设备包括手机。The image acquisition device includes a mobile phone. 4.根据权利要求2所述的农田的灌溉需水量计算方法,其特征在于,建立所述作物系数估算模型的步骤包括:4. the irrigation water demand calculation method of farmland according to claim 2, is characterized in that, the step of setting up described crop coefficient estimation model comprises: 获取多个数目相同的目标图像样本集,将其中一个目标图像样本集作为目标图像测试集,其余的每个目标图像样本集作为目标图像训练集;Obtain multiple target image sample sets with the same number, use one of the target image sample sets as a target image test set, and each of the remaining target image sample sets as a target image training set; 根据目标图像样本的覆盖率与作物系数的函数关系,利用每个目标图像训练集建立对应的作物系数估算模型;According to the functional relationship between the coverage rate of the target image sample and the crop coefficient, use each target image training set to establish a corresponding crop coefficient estimation model; 利用所述目标图像测试集,对每个所述作物系数估算模型进行测试,将最优的作物系数估算模型作为作物系数目标估算模型。Each of the crop coefficient estimation models is tested by using the target image test set, and the optimal crop coefficient estimation model is used as the crop coefficient target estimation model. 5.根据权利要求2所述的农田的灌溉需水量计算方法,其特征在于,所述根据所述作物系数和气象数据,确定所述农田的参考作物蒸发蒸腾量,其计算公式为:5. the irrigation water demand calculation method of farmland according to claim 2, is characterized in that, described according to described crop coefficient and meteorological data, determines the reference crop evapotranspiration of described farmland, and its computing formula is:
Figure FDA0003921476480000021
Figure FDA0003921476480000021
Figure FDA0003921476480000022
Figure FDA0003921476480000022
Rn=Rns-RnlR n =R ns -R nl ; G=0.38(Td-Td-1);G=0.38( Td - Td-1 ); γ=0.00163P/λ;γ=0.00163P/λ; U2=4.87·Uh/ln(67.8h-5.42);U 2 =4.87·U h /ln(67.8h-5.42);
Figure FDA0003921476480000023
Figure FDA0003921476480000023
Figure FDA0003921476480000024
Figure FDA0003921476480000024
ET0为参考作物蒸发蒸腾量;T为平均气温;Δ为温度-饱和水汽压关系曲线在T处的切线斜率;Rn为净太阳辐射,Rns为静短波辐射,Rnl为静长波辐射;G为土壤热通量,对于逐日估算ET0,计算第d日土壤热通量,Td和Td-1分别是第d天和第d-1天的平均气温;γ为温度表常数,λ为潜热;U2为2米高处风速,h为高度,Uh为高度h处的风速;ea为饱和水汽压;ed为实际水汽压,其中Tmin为日最低气温,Tmax为日最高气温,P为当日的降水量。ET 0 is the reference crop evapotranspiration; T is the average temperature; Δ is the tangent slope of the temperature-saturated water vapor pressure relationship curve at T; R n is the net solar radiation, R ns is the static short-wave radiation, R nl is the static long-wave radiation ; G is the soil heat flux, for the daily estimation of ET 0 , calculate the soil heat flux on the d-th day, T d and T d-1 are the average temperature of the d-th day and d-1 day respectively; γ is the temperature table constant , λ is latent heat; U 2 is the wind speed at a height of 2 meters, h is the height, U h is the wind speed at height h; e a is the saturated water vapor pressure; e d is the actual water vapor pressure, where T min is the daily minimum temperature, T max is the daily maximum temperature, and P is the daily precipitation.
6.根据权利要求2所述的农田的灌溉需水量计算方法,其特征在于,所述基于所述作物系数和所述参考作物蒸发蒸腾量,确定所述农田的灌溉需水量,其具体公式为:6. The irrigation water demand calculation method of farmland according to claim 2, characterized in that, based on the crop coefficient and the reference crop evapotranspiration, determine the irrigation water demand of the farmland, and its specific formula is : ETc=Kc*ET0ET c =K c *ET 0 ; 其中,ETc为灌溉需水量,Kc为作物系数。Among them, ET c is the irrigation water demand, and K c is the crop coefficient. 7.一种农田的灌溉需水量计算装置,其特征在于,包括:7. An irrigation water demand calculation device for farmland, characterized in that it comprises: 第一处理模块,用于根据颜色特征对农田的目标图像进行图像分割,确定所述目标图像中的绿色作物所处的目标区域;The first processing module is used to perform image segmentation on the target image of the farmland according to the color feature, and determine the target area where the green crops in the target image are located; 第二处理模块,用于根据所述目标区域的像素个数与所述目标图像的总像素个数的比值,确定绿色作物的覆盖率;The second processing module is used to determine the coverage rate of green crops according to the ratio of the number of pixels in the target area to the total number of pixels in the target image; 第三处理模块,用于根据所述覆盖率和气象数据,确定所述农田的灌溉需水量。The third processing module is used to determine the irrigation water demand of the farmland according to the coverage rate and meteorological data. 8.一种电子设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至6任一项所述农田的灌溉需水量计算方法的步骤。8. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, characterized in that, when the processor executes the computer program, the computer program according to claim 1 is realized. The steps of the method for calculating the irrigation water demand of farmland described in any one of 1 to 6. 9.一种非暂态计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至6任一项所述农田的灌溉需水量计算方法的步骤。9. A non-transitory computer-readable storage medium, on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the irrigation water demand of the farmland according to any one of claims 1 to 6 is realized Calculation method steps. 10.一种计算机程序产品,包括计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至6任一项所述农田的灌溉需水量计算方法的步骤。10. A computer program product, comprising a computer program, characterized in that, when the computer program is executed by a processor, the steps of the method for calculating the irrigation water demand of the farmland according to any one of claims 1 to 6 are realized.
CN202211367060.8A 2022-11-01 2022-11-01 Method and device for calculating irrigation water demand of farmland Pending CN115687850A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211367060.8A CN115687850A (en) 2022-11-01 2022-11-01 Method and device for calculating irrigation water demand of farmland

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211367060.8A CN115687850A (en) 2022-11-01 2022-11-01 Method and device for calculating irrigation water demand of farmland

Publications (1)

Publication Number Publication Date
CN115687850A true CN115687850A (en) 2023-02-03

Family

ID=85047934

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211367060.8A Pending CN115687850A (en) 2022-11-01 2022-11-01 Method and device for calculating irrigation water demand of farmland

Country Status (1)

Country Link
CN (1) CN115687850A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113742899A (en) * 2021-08-16 2021-12-03 北京安赛博技术有限公司 Crop coefficient calculation method and system
CN116451886A (en) * 2023-06-20 2023-07-18 创辉达设计股份有限公司 High-standard farmland water balance calculation method
CN118318712A (en) * 2024-04-11 2024-07-12 北京市农林科学院智能装备技术研究中心 Irrigation decision method of large sprinkler and sprinkler

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107862148A (en) * 2017-11-16 2018-03-30 清华大学 A kind of Reference Evapotranspiration computational methods based on remotely-sensed data
CN108446997A (en) * 2018-03-28 2018-08-24 江苏大学 A kind of Crop Water-saving Technology irrigation decision method and TT&C system based on Multi-source Information Fusion
CN109117811A (en) * 2018-08-24 2019-01-01 颜俊君 A kind of system and method based on low-altitude remote sensing measuring technique estimation urban vegetation coverage rate
US20200214231A1 (en) * 2017-07-02 2020-07-09 Manna Irrigation Ltd. Methods and systems for irrigation guidance

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200214231A1 (en) * 2017-07-02 2020-07-09 Manna Irrigation Ltd. Methods and systems for irrigation guidance
CN107862148A (en) * 2017-11-16 2018-03-30 清华大学 A kind of Reference Evapotranspiration computational methods based on remotely-sensed data
CN108446997A (en) * 2018-03-28 2018-08-24 江苏大学 A kind of Crop Water-saving Technology irrigation decision method and TT&C system based on Multi-source Information Fusion
CN109117811A (en) * 2018-08-24 2019-01-01 颜俊君 A kind of system and method based on low-altitude remote sensing measuring technique estimation urban vegetation coverage rate

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高海荣 等: "基于Bayesian-XGBoost的生菜作物系数估算方法", 山西农业科学, vol. 50, no. 10, pages 1482 - 1488 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113742899A (en) * 2021-08-16 2021-12-03 北京安赛博技术有限公司 Crop coefficient calculation method and system
CN116451886A (en) * 2023-06-20 2023-07-18 创辉达设计股份有限公司 High-standard farmland water balance calculation method
CN116451886B (en) * 2023-06-20 2023-10-10 创辉达设计股份有限公司 High-standard farmland water balance calculation method
CN118318712A (en) * 2024-04-11 2024-07-12 北京市农林科学院智能装备技术研究中心 Irrigation decision method of large sprinkler and sprinkler

Similar Documents

Publication Publication Date Title
RU2680765C1 (en) Automated determination and cutting of non-singular contour of a picture on an image
CN115687850A (en) Method and device for calculating irrigation water demand of farmland
CN109447945B (en) Quick counting method for basic wheat seedlings based on machine vision and graphic processing
CN102867295B (en) A kind of color correction method for color image
CN108765433A (en) One kind is for carrying high-precision leafy area measurement method
TW202011267A (en) Method and device for damage segmentation of vehicle damage image
CN111882555B (en) Net clothing detection methods, devices, equipment and storage media based on deep learning
Saleem et al. A non-reference evaluation of underwater image enhancement methods using a new underwater image dataset
CN116129096B (en) Digital measurement system and method for potato root length
CN115861409B (en) Soybean leaf area measurement method, system, computer equipment and storage medium
CN112200854A (en) A three-dimensional phenotype measurement method of leafy vegetables based on video images
CN109166127B (en) A wearable plant phenotype sensing system
Setyawan et al. Comparison of hsv and lab color spaces for hydroponic monitoring system
CN109671044B (en) A kind of more exposure image fusion methods decomposed based on variable image
Rony et al. BottleNet18: Deep Learning-Based Bottle Gourd Leaf Disease Classification
CN110428374A (en) A kind of small size pest automatic testing method and system
CN112419177B (en) Single image motion blur removing-oriented perception quality blind evaluation method
CN119206711A (en) Mushroom stick cultivation shiitake mushroom grading method and system based on improved YOLO v8
CN114187380A (en) Color transfer method based on visual saliency and channel attention mechanism
CN117237384B (en) A visual inspection method and system for crops grown in smart agriculture
CN113537140A (en) Weed detection method based on deep neural network
CN118053154A (en) Oyster mushroom growth monitoring method and device, electronic equipment and storage medium
CN118314450A (en) Low-illumination underwater target detection method based on improvement YOLOv n
CN116452830A (en) Fresh tobacco quality identification method
CN112991265B (en) Full-automatic water body extraction system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20230203

RJ01 Rejection of invention patent application after publication