A dynamic irrigation control method and system based on crop phenotypic images
By analyzing crop images to determine the nitrogen, phosphorus, and potassium content, and adjusting the water-fertilizer ratio using a standard water-fertilizer ratio table, the problem of nitrogen, phosphorus, and potassium imbalance was solved, achieving efficient and environmentally friendly water and fertilizer management.
Patent Information
- Application Number
- CN202310851317.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-12
- Publication Date
- 2026-01-09
- Estimated Expiration
- 2043-07-12
AI Technical Summary
In the current fertilization process, imbalances in the ratio of nitrogen, phosphorus, and potassium and nutrient deficiency symptoms affect crop yield and quality. Furthermore, excessive application of fertilizers leads to waste and environmental pollution, and the effectiveness of fertilization depends on human judgment and experience.
By taking pictures of crops and analyzing their nitrogen, phosphorus, and potassium content, the optimal fertilizer ratio is determined using a standard water-fertilizer ratio table, and the water-fertilizer ratio is automatically adjusted.
It improves the accuracy and effectiveness of water and fertilizer ratio, reduces fertilizer waste and environmental pollution, and maintains the high-quality growth of crops.
Smart Images

Figure CN116762676B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of agricultural technology, in particular to a dynamic irrigation control method and system based on crop phenotype images. BACKGROUND
[0002] In the growth process of crops, the nitrogen, phosphorus and potassium content in the land is a very important factor affecting plant growth. Among them, nitrogen fertilizer can promote the division and growth of crop cells, enhance plant photosynthesis, make the stem and leaf grow rapidly, and achieve the effect of luxuriant branches and leaves; phosphorus fertilizer can promote the branching of crops, increase the flower amount and fruit setting rate; potassium fertilizer can promote the metabolism of carbohydrates and nitrogen, activate the activity of various enzymes, and the application of potassium fertilizer can promote fruit enlargement, accelerate fruit ripening, and play a role in stable yield and yield increase.
[0003] The imbalance of the proportions of main nutrients such as nitrogen, phosphorus and potassium and the deficiency symptoms directly affect the yield and quality of crops. Excessive application of nitrogen, phosphorus and potassium fertilizer not only causes waste of fertilizer and environmental non-point source pollution, but also causes reduction of crop quality and even yield. In the existing fertilization process, it is often performed according to manual judgment and experience, which not only reduces the effectiveness of fertilization, but also makes it difficult to maintain the high-quality growth state of plants. SUMMARY
[0004] The purpose of the present application is to provide a dynamic irrigation control method and system based on crop phenotype images, which can improve the above problems.
[0005] Embodiments of the present application are implemented as follows:
[0006] In a first aspect, the present application provides a dynamic irrigation control method based on crop phenotype images, comprising:
[0007] S1, controlling a shooting device to shoot a target crop to obtain a target image containing all stems, leaves and fruits of the target crop;
[0008] S2, performing image analysis on the target image to obtain nitrogen content reference data, phosphorus content reference data and potassium content reference data;
[0009] S3, reading a standard water and fertilizer ratio table of the target crop, and finding target nitrogen fertilizer ratio, target phosphorus fertilizer ratio and target potassium fertilizer ratio corresponding to the nitrogen content reference data, the phosphorus content reference data and the potassium content reference data respectively in the standard water and fertilizer ratio table;
[0010] S4, sending the target nitrogen fertilizer ratio, the target phosphorus fertilizer ratio and the target potassium fertilizer ratio to a water and fertilizer configuration device of the target crop.
[0011] It can be understood that the application discloses a dynamic irrigation control method based on crop phenotype images. The method obtains nitrogen content reference data, phosphorus content reference data and potassium content reference data by periodically performing image analysis on target images containing all stems and leaves and fruits of target crops; then finds optimal target nitrogen fertilizer ratio, target phosphorus fertilizer ratio and target potassium fertilizer ratio according to a standard water and fertilizer ratio table of the target crops; and sends the water and fertilizer ratio to a water and fertilizer configuration device of the target crops, so as to realize dynamic adjustment of the water and fertilizer ratio of the target crops. The method no longer configures the water and fertilizer ratio according to artificial judgment and experience, but determines the water and fertilizer ratio according to the image parameters of various element fertilizers in the target images, thereby improving the accuracy and effectiveness of the water and fertilizer ratio.
[0012] In an optional embodiment of the application, step S2 comprises:
[0013] S21, acquiring color values of each pixel in the target image;
[0014] S22, calculating hue values, saturation values and brightness values corresponding to each pixel according to the color values;
[0015] S23, judging a pixel as a stem and leaf pixel if the hue value of the pixel is within a stem and leaf hue range, the saturation value of the pixel is within a stem and leaf saturation range and the brightness value of the pixel is within a stem and leaf brightness range;
[0016] S24, judging a pixel as a fruit pixel if the hue value of the pixel is within a fruit hue range, the saturation value of the pixel is within a fruit saturation range and the brightness value of the pixel is within a fruit brightness range;
[0017] S25, taking a set of all the stem and leaf pixels in the target image as a stem and leaf part and taking a set of all the fruit pixels in the target image as a fruit part;
[0018] S26, performing analysis and processing on the stem and leaf part to obtain nitrogen content reference data;
[0019] S27, performing analysis and processing on the fruit part to obtain phosphorus content reference data and potassium content reference data.
[0020] It can be understood that the HSV color space is an intuitive color model, the H value represents hue, the S value represents saturation and the V value represents brightness. In the HSV space, the colors of the fruits and the stems and leaves of the target image are more separated, and the fruits and the stems and leaves can be segmented out by setting color thresholds. Then, image analysis is performed on the fruit part and the stem and leaf part respectively to obtain nitrogen content reference data, phosphorus content reference data and potassium content reference data which can reflect the nitrogen content, the phosphorus content and the potassium content in the soil corresponding to the target crops.
[0021] The color value includes a red value, a green value and a blue value.
[0022] The step S22 specifically includes:
[0023] The hue value, the saturation value and the brightness value corresponding to each pixel are calculated by the following formula:
[0024]
[0025] The red value of the i th pixel of the target image is represented by R i The green value of the i th pixel of the target image is represented by G i The blue value of the i th pixel of the target image is represented by B i The brightness value of the i th pixel of the target image is represented by V i The hue value of the i th pixel of the target image is represented by H i The saturation value of the i th pixel of the target image is represented by S i The saturation value of the i th pixel of the target image is represented by S.
[0026] In the optional embodiment of the present application, the step S26 includes:
[0027] S261, color values of each pixel in the stem and leaf part are obtained, the color values including a red value, a green value and a blue value;
[0028] S262, a proportion of the green value in the color value of each pixel in the stem and leaf part is calculated;
[0029] S263, a median value of the proportion of the green value in the stem and leaf part is calculated;
[0030] S264, the median value of the proportion of the green value is taken as the nitrogen content reference data.
[0031] It can be understood that the nitrogen content in the soil is associated with the cell growth and photosynthesis of the crops, so the dark green degree of the stem and leaf can well express the nitrogen content in the soil of the target crops. Therefore, the median value of the proportion of the green value of each pixel in the stem and leaf part of the target image can be calculated, and the median value is taken as the nitrogen content reference data.
[0032] In the optional embodiment of the present application, the step S27 includes:
[0033] S271, each fruit in the fruit part is identified;
[0034] S272, the number of fruits in the fruit part is calculated as the phosphorus content reference data;
[0035] S273, the average size of each fruit in the fruit part is calculated as the potassium content reference data.
[0036] It can be understood that the phosphorus content in the soil can promote the branching of the crops, increase the flower amount and the fruit setting rate, so the fruit amount in the fruit part can well express the phosphorus content in the soil of the target crops. Therefore, the fruit amount in the fruit part can be calculated as the phosphorus content reference data.
[0037] It can be understood that the potassium content in the soil can promote the metabolism of carbohydrates and nitrogen, promote the fruit enlargement, and accelerate the fruit ripening, so the fruit size can well express the potassium content in the soil of the target crops. Therefore, the average value of the fruit size of each fruit in the fruit part can be calculated as the potassium content reference data.
[0038] In an optional embodiment of the present application, step S273 comprises:
[0039] S2731, counting the pixel amount contained by each fruit;
[0040] S2732, taking the product of the corresponding pixel amount and the preset unit area as the fruit size of the corresponding fruit;
[0041] S2733, calculating the average value of the fruit size of each fruit in the fruit part as the potassium content reference data.
[0042] In an optional embodiment of the present application, the standard water and fertilizer matching table comprises the optimal nitrogen fertilizer ratio corresponding to different nitrogen content reference data, the optimal phosphorus fertilizer ratio corresponding to different phosphorus content reference data, and the optimal potassium fertilizer ratio corresponding to different potassium content reference data.
[0043] It can be understood that the standard water and fertilizer matching table can be prepared in advance by experienced agricultural experts, or obtained in advance by big data statistics. Different target crops correspond to different standard water and fertilizer matching tables, and the current optimal nitrogen, phosphorus and potassium fertilizer ratio can be found by table lookup. The optimal nitrogen fertilizer ratio, the optimal phosphorus fertilizer ratio and the optimal potassium fertilizer ratio are all the proportions of nitrogen, phosphorus and potassium elements in the single irrigation water.
[0044] In an optional embodiment of the present application, step S3 comprises:
[0045] S31, taking the optimal nitrogen fertilizer ratio corresponding to the nitrogen content reference data in the standard water and fertilizer matching table as the target nitrogen fertilizer ratio;
[0046] S32, taking the optimal phosphorus fertilizer ratio corresponding to the phosphorus content reference data in the standard water and fertilizer matching table as the target phosphorus fertilizer ratio;
[0047] S33, taking the optimal potassium fertilizer ratio corresponding to the potassium content reference data in the standard water and fertilizer matching table as the target potassium fertilizer ratio.
[0048] In a second aspect, the application discloses a dynamic irrigation control system based on crop phenotype images, which is used for controlling water and fertilizer matching of at least one target crop, and comprises:
[0049] a number of shooting devices and water and fertilizer configuration devices equal to the number of the target crops, a water and fertilizer irrigation analysis host and a water and fertilizer matching database;
[0050] The shooting device is used for shooting the target crops to obtain target images containing all stems, leaves and fruits of the target crops, and transmitting the target images to the water and fertilizer irrigation analysis host in a wired or wireless manner.
[0051] The water and fertilizer matching database is used for storing standard water and fertilizer matching tables corresponding to the target crops.
[0052] The water and fertilizer configuration device is used for configuring water and fertilizer according to the target nitrogen fertilizer proportion, the target phosphorus fertilizer proportion and the target potassium fertilizer proportion sent by the water and fertilizer irrigation analysis host.
[0053] The water and fertilizer irrigation analysis host comprises a processor and a memory connected with each other, wherein the memory is used for storing a computer program, the computer program comprises program instructions, and the processor is configured to invoke the program instructions and execute the method according to any one of the first aspect.
[0054] It can be understood that the water and fertilizer irrigation analysis host can periodically perform image analysis on the target images shot by the shooting device to obtain nitrogen content reference data, phosphorus content reference data and potassium content reference data, read the standard water and fertilizer matching table of the target crop from the water and fertilizer matching database, find the optimal target nitrogen fertilizer proportion, target phosphorus fertilizer proportion and target potassium fertilizer proportion in the table, and send the water and fertilizer matching to the water and fertilizer configuration device of the target crop, so as to realize dynamic adjustment of the water and fertilizer matching of the target crop.
[0055] In an optional embodiment of the application, the water and fertilizer configuration device is specifically used for automatically configuring water and fertilizer according to the target nitrogen fertilizer proportion, the target phosphorus fertilizer proportion and the target potassium fertilizer proportion; or the water and fertilizer configuration device is specifically used for displaying the target nitrogen fertilizer proportion, the target phosphorus fertilizer proportion and the target potassium fertilizer proportion, so that the on-site staff can configure water and fertilizer.
[0056] It can be seen that the water and fertilizer configuration device can be an automatic device with the function of automatically calculating and configuring water and fertilizer according to the target proportion, or can be a communication device including a display, which only displays the target water and fertilizer proportion so that the on-site staff can manually configure water and fertilizer.
[0057] In a third aspect, the present application also discloses a computer readable storage medium, which stores a computer program, the computer program comprising program instructions, which, when executed by a processor, cause the processor to perform the method of any one of the first aspect.
[0058] Advantages:
[0059] The present application discloses a dynamic irrigation control method and system based on crop phenotype images. The method obtains nitrogen content reference data, phosphorus content reference data and potassium content reference data by periodically performing image analysis on target images containing all stems and leaves and fruits of target crops; then finds the optimal target nitrogen fertilizer ratio, target phosphorus fertilizer ratio and target potassium fertilizer ratio according to a standard water-fertilizer ratio table of the target crops; and sends the water-fertilizer ratio to a water-fertilizer configuration device of the target crops, so as to realize dynamic adjustment of the water-fertilizer ratio of the target crops. The present method no longer configures the water-fertilizer ratio according to artificial judgment and experience, but determines each water-fertilizer ratio according to the image parameters of various element fertilizers in the target images, thereby improving the accuracy and effectiveness of the water-fertilizer ratio.
[0060] In addition, in the HSV space, the colors of the fruits and stems and leaves of the target images are more separated, and the fruit and stem and leaf parts can be segmented out by setting color thresholds, and then the fruit part and the stem and leaf part are analyzed respectively to obtain the nitrogen content reference data, the phosphorus content reference data and the potassium content reference data which can reflect the nitrogen content, the phosphorus content and the potassium content of the corresponding soil of the target crops.
[0061] The nitrogen content in the soil is related to the cell growth and photosynthesis of crops, so the degree of dark green of the stems and leaves can well express the nitrogen content in the soil of the target crops. Therefore, the median value of the proportion of green color of each pixel in the stem and leaf part of the target image can be calculated as the nitrogen content reference data.
[0062] The phosphorus content in the soil can promote the branching of crops, increase the flower number and the fruit setting rate, so the number of fruits in the fruit part can well express the phosphorus content in the soil of the target crops. Therefore, the number of fruits in the fruit part can be calculated as the phosphorus content reference data.
[0063] The potassium content in the soil can promote the metabolism of carbohydrates and nitrogen, promote fruit enlargement and accelerate fruit ripening, so the size of the fruit can well express the potassium content in the soil of the target crops. Therefore, the average size of each fruit in the fruit part can be calculated as the potassium content reference data.
[0064] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the following optional embodiments are described in detail below, and the accompanying drawings are described as follows. BRIEF DESCRIPTION OF DRAWINGS
[0065] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly introduced as follows. It should be understood that the following drawings only show some of the embodiments of the present application, and therefore should not be considered as a limitation on the scope. For those skilled in the art, other related drawings can also be obtained without creative labor on the basis of these drawings.
[0066] Figure 1 is a flowchart of a dynamic irrigation control method based on crop phenotype images provided by the present application;
[0067] Figure 2 is an enlarged schematic view of a fruit in the target image;
[0068] Figure 3 is a connection schematic diagram of a dynamic irrigation control system based on crop phenotype images provided by the present application. DETAILED DESCRIPTION
[0069] The technical solutions of the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.
[0070] In a first aspect, the present application provides a dynamic irrigation control method based on crop phenotype images, which comprises:
[0071] S1, controlling a photographing device to photograph a target crop to obtain a target image containing all stems, leaves and fruits of the target crop.
[0072] S2, performing image analysis on the target image to obtain nitrogen content reference data, phosphorus content reference data and potassium content reference data.
[0073] S3, reading a standard water-fertilizer ratio table of the target crop, and searching for target nitrogen fertilizer ratio, target phosphorus fertilizer ratio and target potassium fertilizer ratio corresponding to the nitrogen content reference data, the phosphorus content reference data and the potassium content reference data in the standard water-fertilizer ratio table.
[0074] S4, sending the target nitrogen fertilizer ratio, the target phosphorus fertilizer ratio and the target potassium fertilizer ratio to a water-fertilizer configuration device of the target crop.
[0075] It can be understood that the application discloses a dynamic irrigation control method based on crop phenotype images. The method obtains nitrogen content reference data, phosphorus content reference data and potassium content reference data by periodically performing image analysis on a target image containing all stems and leaves and fruits of a target crop; then finds optimal target nitrogen fertilizer ratio, target phosphorus fertilizer ratio and target potassium fertilizer ratio according to a standard water-fertilizer ratio table of the target crop; and sends the water-fertilizer ratio to a water-fertilizer configuration device of the target crop, so as to realize dynamic adjustment of the water-fertilizer ratio of the target crop. The method no longer configures the water-fertilizer ratio according to artificial judgment and experience, but determines each item of the water-fertilizer ratio according to image parameter performance of various element fertilizers in the target image, thereby improving the accuracy and effectiveness of the water-fertilizer ratio.
[0076] In an optional embodiment of the application, step S2 comprises:
[0077] S21, acquiring color values of each pixel in the target image.
[0078] S22, calculating hue values, saturation values and brightness values corresponding to each pixel according to the color values.
[0079] The color values comprise red values, green values and blue values.
[0080] Step S22 specifically comprises:
[0081] The hue values, saturation values and brightness values corresponding to each pixel are calculated by the following formula:
[0082]
[0083] Wherein, R i represents a red value of the i th pixel of the target image, G i represents a green value of the i th pixel of the target image, B i represents a blue value of the i th pixel of the target image, V i represents a brightness value of the i th pixel of the target image, H i represents a hue value of the i th pixel of the target image, and S i represents a saturation value of the i th pixel of the target image.
[0084] The HSV color space is an intuitive color model, the H value represents the hue, the S value represents the saturation, and the V value represents the brightness. In the HSV space, the colors of the fruits and stems and leaves of the target image are more separated, and the fruits and stem and leaf parts can be segmented out by setting color thresholds.
[0085] S23, judging the pixels with the hue value in the stem and leaf hue range, the saturation value in the stem and leaf saturation range and the brightness value in the stem and leaf brightness range as stem and leaf pixels.
[0086] S24, judging the pixel with the hue value in the fruit hue range, the saturation value in the fruit saturation range and the brightness value in the fruit brightness range as a fruit pixel.
[0087] S25, taking the set of all stem and leaf pixels in the target image as the stem and leaf part, and taking the set of all fruit pixels in the target image as the fruit part.
[0088] S26, performing analysis and processing on the stem and leaf part to obtain nitrogen content reference data.
[0089] S27, performing analysis and processing on the fruit part to obtain phosphorus content reference data and potassium content reference data.
[0090] It can be understood that the HSV color space is an intuitive color model, the H value represents the hue, the S value represents the saturation, and the V value represents the brightness. In the HSV space, the colors of the fruits and the stems and leaves of the target image are more separated, and the fruits and the stems and leaves can be respectively segmented by setting color thresholds. Then, image analysis is respectively performed on the fruit part and the stem and leaf part to obtain nitrogen content reference data, phosphorus content reference data and potassium content reference data which can reflect the nitrogen content, the phosphorus content and the potassium content in the corresponding soil of the target crop.
[0091] In optional embodiments of the present application, step S26 includes:
[0092] S261, corresponding to the color value of each pixel in the stem and leaf part, the color value including a red value, a green value and a blue value.
[0093] S262, calculating the proportion of the green value in the color value of each pixel in the stem and leaf part.
[0094] S263, calculating the median value of the proportion of the green value in the stem and leaf part.
[0095] S264, taking the median value of the proportion of the green value as the nitrogen content reference data.
[0096] It can be understood that the nitrogen content in the soil is related to the cell growth and photosynthesis of the crop, so the degree of dark green of the stems and leaves can well express the nitrogen content in the soil of the target crop. Therefore, the median value of the proportion of the green value of each pixel in the stem and leaf part of the target image can be calculated, and the median value is taken as the nitrogen content reference data.
[0097] In optional embodiments of the present application, step S27 includes:
[0098] S271, identifying each fruit in the fruit part.
[0099] S272, calculating the number of fruits in the fruit part as the phosphorus content reference data.
[0100] S273, calculate the average of the sizes of the fruits in the fruit part as the potassium content reference data.
[0101] It can be understood that the phosphorus content in the soil can promote the branching of the crops, increase the flower amount and the fruit setting rate, so the number of the fruits in the fruit part can well express the phosphorus content in the soil of the target crops. Therefore, the number of the fruits in the fruit part can be calculated as the phosphorus content reference data.
[0102] It can be understood that the potassium content in the soil can promote the metabolism of the carbohydrates and nitrogen, promote the fruit enlargement and accelerate the fruit maturation, so the fruit size can well express the potassium content in the soil of the target crops. Therefore, the average of the sizes of the fruits in the fruit part can be calculated as the potassium content reference data.
[0103] In optional embodiments of the present application, the step S273 comprises:
[0104] S2731, count the number of the pixels contained by each fruit.
[0105] For example, as shown in FIG. 10, a fruit in the fruit part is shown as a schematic diagram, and the fruit 100 in the target image is composed of a plurality of pixels 10 (as shown in the shaded part in the figure). The size of the fruit can be obtained by counting the number of the pixels. Figure 2
[0106] S2732, take the product of the corresponding pixel number and the preset unit area as the fruit size of the corresponding fruit.
[0107] The above-mentioned preset unit area only needs to be a unit value, and does not necessarily have any relationship with the real size of the fruit. However, the preset unit area needs to be associated with the corresponding standard water and fertilizer matching table. The preset unit area can be obtained by the researchers according to the experience after multiple tests.
[0108] S2733, calculate the average of the fruit sizes of the fruits in the fruit part as the potassium content reference data.
[0109] In optional embodiments of the present application, the standard water and fertilizer matching table comprises the best nitrogen fertilizer ratio corresponding to different nitrogen content reference data, the best phosphorus fertilizer ratio corresponding to different phosphorus content reference data, and the best potassium fertilizer ratio corresponding to different potassium content reference data.
[0110] It can be understood that the standard water and fertilizer matching table can be prepared in advance by experienced agricultural experts, or obtained in advance through big data. Different target crops correspond to different standard water and fertilizer matching tables, and the current best nitrogen, phosphorus and potassium fertilizer ratio can be found by looking up the table. The best nitrogen fertilizer ratio, the best phosphorus fertilizer ratio, and the best potassium fertilizer ratio are the proportions of nitrogen, phosphorus and potassium elements in the single irrigation water.
[0111] In an optional embodiment of the present application, step S3 comprises:
[0112] S31, taking the best nitrogen fertilizer ratio corresponding to the nitrogen content reference data in the standard water and fertilizer matching table as the target nitrogen fertilizer ratio;
[0113] S32, taking the best phosphorus fertilizer ratio corresponding to the phosphorus content reference data in the standard water and fertilizer matching table as the target phosphorus fertilizer ratio;
[0114] S33, taking the best potassium fertilizer ratio corresponding to the potassium content reference data in the standard water and fertilizer matching table as the target potassium fertilizer ratio.
[0115] In a second aspect, as shown in Figure 3 The present application discloses a dynamic irrigation control system based on crop phenotype image, which is used for controlling the water and fertilizer matching of at least one target crop. The system comprises: a number of shooting devices 110 and water and fertilizer configuration devices 120 equal to the number of target crops, a water and fertilizer irrigation analysis host 130, and a water and fertilizer matching database 140.
[0116] For example, as shown in Figure 3 In the figure, one water and fertilizer irrigation analysis host 130 corresponds to the management of n target crops, and n is a positive integer. Each target crop is correspondingly configured with one shooting device 110 and one water and fertilizer configuration device 120.
[0117] The shooting device 110 is used for shooting the target crop to obtain a target image containing all the stems, leaves and fruits of the crop, and transmitting the target image to the water and fertilizer irrigation analysis host 130 through wired or wireless means.
[0118] The water and fertilizer matching database 140 is used for storing the standard water and fertilizer matching table corresponding to each target crop.
[0119] The water and fertilizer configuration device 120 is used for water and fertilizer configuration according to the target nitrogen fertilizer ratio, the target phosphorus fertilizer ratio and the target potassium fertilizer ratio sent by the water and fertilizer irrigation analysis host 130.
[0120] The water and fertilizer irrigation analysis host 130 comprises a processor and a memory connected to each other. The memory is used for storing a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions and execute the method of any one of the first aspect.
[0121] It should be understood that, in the embodiments of the present application, the processor can be a central processing unit (CPU), and the processor can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.
[0122] The memory can include a read-only memory and a random access memory, and provide instructions and data for the processor. A portion of the memory can also include a non-volatile random access memory. For example, the memory can also store device type information.
[0123] It can be understood that the water and fertilizer irrigation analysis host 130 can periodically perform image analysis on the target image photographed by the photographing device 110 to obtain nitrogen content reference data, phosphorus content reference data and potassium content reference data; then read the standard water and fertilizer ratio table of the target crop from the water and fertilizer ratio database 140, find the optimal target nitrogen fertilizer ratio, target phosphorus fertilizer ratio and target potassium fertilizer ratio in the table; and send the water and fertilizer ratio to the water and fertilizer configuration device 120 of the target crop, so as to realize dynamic adjustment of the water and fertilizer ratio of the target crop.
[0124] In specific implementation, the processor described in the embodiments of the present application can execute the implementation manner described in any method of the first aspect, and can also execute the implementation manner of the terminal device described in the embodiments of the present application, which will not be described here.
[0125] In the embodiments of the present application, the water and fertilizer configuration device 120 is specifically configured to automatically configure water and fertilizer according to the target nitrogen fertilizer ratio, the target phosphorus fertilizer ratio and the target potassium fertilizer ratio; or the water and fertilizer configuration device 120 is specifically configured to display the target nitrogen fertilizer ratio, the target phosphorus fertilizer ratio and the target potassium fertilizer ratio, so that the on-site staff can configure water and fertilizer.
[0126] It can be seen that the water and fertilizer configuration device 120 can be an automatic device with the function of automatically calculating and configuring water and fertilizer according to the target ratio, or can be a communication device including a display, only displaying the target water and fertilizer ratio, so that the on-site staff can manually configure water and fertilizer.
[0127] In a third aspect, the present application provides a computer readable storage medium, which stores a computer program. The computer program comprises program instructions, and the program instructions, when executed by a processor, implement the steps of any method of the first aspect.
[0128] The computer readable storage medium can be an internal storage unit of the terminal device, such as a hard disk or a memory of the terminal device. The computer readable storage medium can also be an external storage device of the terminal device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Further, the computer readable storage medium can include both the internal storage unit and the external storage device of the terminal device. The computer readable storage medium is used to store the computer program and other programs and data required by the terminal device. The computer readable storage medium can also be used to temporarily store data that has been output or will be output.
[0129] Those skilled in the art can understand that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be realized in electronic hardware, computer software or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, the components and steps of the examples have been described in general terms in the above description. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A skilled person can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0130] In several embodiments provided in the present application, it should be understood that the disclosed terminal device and method can be implemented in other ways. For example, the above-described device embodiments are only schematic, for example, the division of the above-mentioned units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed mutual units can be indirect coupling or communication connection through some interfaces, devices or units, and can also be electrical, mechanical or other forms of connection.
[0131] The units described as separate components above can or can not be physically separate, and the components shown as units can or can not be physical units, i.e., can be located in one place, or can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiments of the present application.
[0132] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0133] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the part that contributes to the prior art, or all or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various program code storage media.
[0134] The expressions "first", "second", "the first" or "the second" used in various embodiments of the present disclosure can modify various components regardless of order and / or importance, but these expressions do not limit the corresponding components. The above expressions are only configured for the purpose of distinguishing the elements from other elements. For example, the first user equipment and the second user equipment represent different user equipment, although both are user equipment. For example, the first element can be referred to as the second element, and similarly, the second element can be referred to as the first element without departing from the scope of the present disclosure.
[0135] When an element (e.g., a first element) is referred to as being “(operatively or communicatively) coupled with” or “(operatively or communicatively) coupled to” or “connected to” another element (e.g., a second element), it should be understood that the one element is either directly connected to the other element or that one element is connected to the other element via a yet another element (e.g., a third element). In contrast, when an element (e.g., a first element) is referred to as being “directly connected” or “directly coupled” to another element (a second element), it should be understood that no element (e.g., a third element) is interposed between the two.
[0136] It has to be noted that, as used herein, the terms “includes”, “including”, “comprises” or “comprising”, or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without limitation, an element preceded by “comprises a” or “comprising a” does not, without more constraints, foreclose the existence of additional identical elements in the process, method, article, or apparatus that comprises the element. Any of the elements or features of any of the embodiments of the application that are expressed in the plural (i.e., as “comprises a plurality of” or “comprises at least one”) can be combined with any of the other elements or features of any of the other embodiments of the application to produce an embodiment of the application that includes a plurality of that element or feature.
[0137] The above description is only optional embodiments of the application and the explanation of the principles of the applied technology. The skilled in the art should understand that the scope of the application involved in this application is not limited to the technical solutions formed by the specific combinations of the above technical features, and also covers other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above inventive concept. For example, the technical solutions formed by replacing the above features with the technical features disclosed in this application (but not limited to) having similar functions.
[0138] Depending on the context, the word “if’ as used herein may be interpreted to mean “when” or “while” or “in response to determining” or “in response to detecting.” Similarly, the phrase “if it is determined” or “if a stated condition or event occurs” can be interpreted to mean “when it is determined” or “when a stated condition or event occurs” or “in response to determining” or “in response to detecting a stated condition or event.”
[0139] The above description is merely exemplary of optional embodiments and the principles of the application. It is not intended to limit the scope of the application to the described technical solutions. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the application shall be included in the scope of protection of the application.
[0140] The above description is merely exemplary of optional embodiments and the principles of the application. It is not intended to limit the scope of the application to the described technical solutions. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the application shall be included in the scope of protection of the application.
Claims
1. A dynamic irrigation control method based on crop phenotyping images, characterized by, The method comprises the following steps: controlling a shooting device to shoot a target crop to obtain a target image containing all stems and leaves and fruits of the target crop; performing image analysis on the target image to obtain nitrogen content reference data, phosphorus content reference data and potassium content reference data; reading a standard water and fertilizer matching table of the target crop, and searching the standard water and fertilizer matching table for target nitrogen fertilizer proportion, target phosphorus fertilizer proportion and target potassium fertilizer proportion corresponding to the nitrogen content reference data, the phosphorus content reference data and the potassium content reference data respectively; sending the target nitrogen fertilizer proportion, the target phosphorus fertilizer proportion and the target potassium fertilizer proportion to a water and fertilizer configuration device of the target crop; the image analysis on the target image to obtain nitrogen content reference data, phosphorus content reference data and potassium content reference data comprises the following steps: obtaining color values of each pixel in the target image; calculating hue values, saturation values and brightness values corresponding to each pixel according to the color values; judging a pixel as a stem and leaf pixel if the hue value of the pixel is within a stem and leaf hue range, the saturation value of the pixel is within a stem and leaf saturation range and the brightness value of the pixel is within a stem and leaf brightness range; judging a pixel as a fruit pixel if the hue value of the pixel is within a fruit hue range, the saturation value of the pixel is within a fruit saturation range and the brightness value of the pixel is within a fruit brightness range; regarding a set of all the stem and leaf pixels in the target image as a stem and leaf part, and regarding a set of all the fruit pixels in the target image as a fruit part; performing analysis and processing on the stem and leaf part to obtain nitrogen content reference data; performing analysis and processing on the fruit part to obtain phosphorus content reference data and potassium content reference data; the analysis and processing on the stem and leaf part to obtain nitrogen content reference data comprises the following steps: obtaining color values of each pixel in the stem and leaf part, wherein the color values include red value, green value and blue value; calculating a proportion of green value in the color values of each pixel in the stem and leaf part; calculating a median value of the proportion of green value in the stem and leaf part; regarding the median value of the proportion of green value as the nitrogen content reference data.
2. The dynamic irrigation control method based on crop phenotype image according to claim 1, wherein the analysis and processing on the fruit part to obtain phosphorus content reference data and potassium content reference data comprises the following steps: identifying each fruit in the fruit part; calculating a number of fruits in the fruit part as the phosphorus content reference data; calculating an average size of each fruit in the fruit part as the potassium content reference data.
3. The dynamic irrigation control method based on crop phenotype image according to claim 2, wherein the calculation of the average size of each fruit in the fruit part as the potassium content reference data comprises the following steps: counting a number of pixels contained in each fruit; regarding a product of the corresponding pixel number and a preset unit area as a fruit size of the corresponding fruit; calculating an average value of the fruit size of each fruit in the fruit part as the potassium content reference data.
4. The crop phenotype image-based dynamic irrigation control method according to claim 1, wherein the standard water and fertilizer ratio table comprises optimal nitrogen fertilizer ratios corresponding to different nitrogen content reference data, optimal phosphorus fertilizer ratios corresponding to different phosphorus content reference data, and optimal potassium fertilizer ratios corresponding to different potassium content reference data.
5. The crop phenotype image-based dynamic irrigation control method according to claim 4, wherein the reading of the standard water and fertilizer ratio table of the target crop, and the searching of nitrogen fertilizer ratios, phosphorus fertilizer ratios and potassium fertilizer ratios corresponding to the nitrogen content reference data, the phosphorus content reference data and the potassium content reference data in the standard water and fertilizer ratio table, comprises: taking the optimal nitrogen fertilizer ratio corresponding to the nitrogen content reference data in the standard water and fertilizer ratio table as the target nitrogen fertilizer ratio; taking the optimal phosphorus fertilizer ratio corresponding to the phosphorus content reference data in the standard water and fertilizer ratio table as the target phosphorus fertilizer ratio; and taking the optimal potassium fertilizer ratio corresponding to the potassium content reference data in the standard water and fertilizer ratio table as the target potassium fertilizer ratio.
6. A crop phenotype image-based dynamic irrigation control system, comprising: a plurality of shooting devices and water and fertilizer configuration devices equal in number to the target crops, a water and fertilizer irrigation analysis host and a water and fertilizer ratio database; the shooting device is configured to shoot the target crop to obtain a target image containing all stems, leaves and fruits of the target crop, and transmit the target image to the water and fertilizer irrigation analysis host through wired or wireless mode; the water and fertilizer ratio database is configured to store a standard water and fertilizer ratio table corresponding to each target crop; the water and fertilizer configuration device is configured to configure water and fertilizer according to the target nitrogen fertilizer ratio, the target phosphorus fertilizer ratio and the target potassium fertilizer ratio sent by the water and fertilizer irrigation analysis host; and the water and fertilizer irrigation analysis host comprises a processor and a memory connected to each other, wherein the memory is configured to store a computer program, the computer program comprises program instructions, and the processor is configured to invoke the program instructions to execute the method according to any one of claims 1 to 5.
7. The crop phenotype image-based dynamic irrigation control system according to claim 6, wherein the water and fertilizer configuration device is specifically configured to automatically configure water and fertilizer according to the target nitrogen fertilizer ratio, the target phosphorus fertilizer ratio and the target potassium fertilizer ratio; or the water and fertilizer configuration device is specifically configured to display the target nitrogen fertilizer ratio, the target phosphorus fertilizer ratio and the target potassium fertilizer ratio so as to configure water and fertilizer by on-site staff.
8. A computer readable storage medium, comprising: a computer program stored in the computer readable storage medium, the computer program comprising program instructions, the program instructions being executed by a processor to execute the method according to any one of claims 1 to 5. 6. A dynamic irrigation control system based on crop phenotyping images for controlling water and fertilizer ratio for at least one target crop, characterized in that,
Citation Information
Patent Citations
Tea garden water and fertilizer precision irrigation system and control method thereof
CN109699271A
Handheld device and method for determining plant status
CN110114800A
Method and system for determining fertilization formula of farm crops based on artificial intelligence
CN114757326A
KR20220033760A