Method, device and computer equipment for measuring area of ​​agricultural land

By acquiring and analyzing the image information of agricultural land, the area of ​​agricultural land is calculated, and the problem of inefficiency of traditional manual measurement methods is solved, and more efficient and economical area statistics are achieved.

CN114140513BActive Publication Date: 2025-02-28JIANGXI YUFENG INTELLIGENT AGRI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111390490.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-23
Publication Date
2025-02-28
Estimated Expiration
2041-11-23

AI Technical Summary

Technical Problem

The traditional agricultural land area statistics method relies on manual on-site measurement, which consumes a lot of manpower and material resources and is inefficient.

Method used

By obtaining image information of the target agricultural land, its coordinate information on a map with a sharpness greater than the threshold value, and the area of ​​the agricultural land is calculated based on these coordinate information.

Benefits of technology

The efficiency of statistical agricultural land area has been improved, the cost of measurement and statistics has been reduced, and the inefficiency of manual measurement has been avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114140513B_ABST
    Figure CN114140513B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention disclose a method, device, computer equipment and storage medium for measuring the area of ​​agricultural land. First, image information of target agricultural land is acquired. Then, on a map with a clarity greater than a clarity threshold, the coordinate information of the target agricultural land is determined based on the image information of the target agricultural land. Finally, the area of ​​the target agricultural land is determined based on the coordinate information of the target agricultural land, thereby improving the efficiency of statistically analyzing the area of ​​agricultural land and reducing the cost of measurement and statistics.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of agricultural planting statistics technology, and in particular to an agricultural land area measurement method, device, computer equipment and storage medium. Background Art

[0002] The traditional statistical method of agricultural land area is to measure and count the area manually on site. For example, a large number of staff are hired to carry measurement tools to check and measure agricultural land on site in various villages and towns, but this statistical measurement method consumes a lot of manpower and material resources and is inefficient. Based on this, it is necessary to change the method of manual on-site measurement and statistics of agricultural land area, improve the efficiency of agricultural land area statistics, and reduce the cost of measurement and statistics. Summary of the invention

[0003] In order to solve the existing technical problems, the embodiments of the present invention provide a method, device, computer equipment and storage medium for measuring the area of ​​agricultural land.

[0004] To achieve the above object, the technical solution of the embodiment of the present invention is implemented as follows:

[0005] An embodiment of the present invention provides a method for measuring the area of ​​agricultural land, the method comprising:

[0006] Acquire image information of target agricultural land;

[0007] On a map having a clarity greater than a clarity threshold, determining coordinate information of the target agricultural land according to image information of the target agricultural land;

[0008] According to the coordinate information of the target agricultural land, the area of ​​the target agricultural land is determined.

[0009] Preferably, determining the coordinate information of the target agricultural land according to the image information of the target agricultural land on a map having a clarity greater than a clarity threshold comprises:

[0010] On a map with a clarity greater than a clarity threshold, circling the outline of the target agricultural land according to the image information of the target agricultural land;

[0011] In a longitude and latitude coordinate system, determining the longitude and latitude values ​​of each vertex in the outline of the target agricultural land;

[0012] Determining the area of ​​the target agricultural land according to the coordinate information of the target agricultural land includes:

[0013] The area of ​​the target agricultural land is determined according to the latitude and longitude values ​​of each vertex in the outline of the target agricultural land.

[0014] Preferably, the method further comprises:

[0015] Determine the longitude difference between the maximum longitude value and the minimum longitude value at each vertex;

[0016] Determine the latitude difference between the maximum latitude value and the minimum latitude value in each vertex;

[0017] Determining the area of ​​the target agricultural land according to the latitude and longitude values ​​of each vertex in the outline of the target agricultural land includes:

[0018] In response to the longitude difference being less than the longitude difference threshold and the latitude difference being less than the latitude difference threshold, the area of ​​the target agricultural land is calculated according to the longitude and latitude values ​​of each vertex in the outline of the target agricultural land and the calculation strategy of the plane polygon, wherein the calculation strategy of the plane polygon includes: a strategy for calculating the area using the plane straight line connecting adjacent vertices as the side length of the polygon.

[0019] Preferably, determining the area of ​​the target agricultural land according to the longitude and latitude of each vertex in the outline of the target agricultural land comprises:

[0020] In response to the longitude difference being greater than or equal to a longitude difference threshold, and / or the latitude difference being greater than or equal to a latitude difference threshold, the area of ​​the target agricultural land is calculated according to the longitude and latitude values ​​of each vertex in the outline of the target agricultural land and in accordance with a spherical polygon calculation strategy, wherein the spherical polygon calculation strategy includes: a strategy for calculating the area using the connection of spherical arcs between adjacent vertices as the side length of the polygon.

[0021] Preferably, the area of ​​the target agricultural land is calculated according to the latitude and longitude values ​​of each vertex in the outline of the target agricultural land and the calculation strategy of the spherical polygon, including:

[0022] According to the latitude and longitude values ​​of each vertex in the outline of the target agricultural land, the spherical area formed by each vertex in the outline is divided into N grids, and the area of ​​the target agricultural land is determined according to the area of ​​the N grids.

[0023] Preferably, the N grids are rectangular grids with equal length and width;

[0024] According to the areas of the N grids, the area of ​​the target agricultural land is determined, including:

[0025] According to the area of ​​one grid, the total area value of N grids is calculated to obtain the area of ​​the target agricultural land.

[0026] Preferably, the step of circling the outline of the target agricultural land according to the image information of the target agricultural land comprises:

[0027] According to the image information of the target agricultural land, the image information of the target agricultural land is grayed, and the edge of the image area where the gray value change is greater than the gray value change threshold is used as the contour.

[0028] The embodiment of the present invention further provides an area measurement device for agricultural land, comprising:

[0029] An acquisition module, used for acquiring image information of target agricultural land;

[0030] A first determination module is used to determine the coordinate information of the target agricultural land according to the image information of the target agricultural land on a map with a clarity greater than a clarity threshold;

[0031] The second determination module is used to determine the area of ​​the target agricultural land according to the coordinate information of the target agricultural land.

[0032] An embodiment of the present invention also provides a computer device, comprising: a processor and a memory for storing a computer program that can be run on the processor, wherein the processor is used to implement any of the above-mentioned methods for measuring the area of ​​agricultural land when running the computer program.

[0033] An embodiment of the present invention further provides a computer storage medium storing an executable program, wherein when the executable program is executed by a processor, any of the above-mentioned methods for measuring the area of ​​agricultural land is implemented.

[0034] The area measurement method, device, computer equipment and storage medium of agricultural land provided in the above-mentioned embodiments include first acquiring image information of the target agricultural land, then determining the coordinate information of the target agricultural land based on the image information of the target agricultural land on a map whose clarity is greater than a clarity threshold, and finally determining the area of ​​the target agricultural land based on the coordinate information of the target agricultural land. Therefore, compared with the prior art, in which staff members take measurement tools to the agricultural land on site in various villages and towns for verification and measurement, the area measurement method provided in the embodiments of the present invention determines the area of ​​the target agricultural land from the acquired image information of the target agricultural land, thereby improving the efficiency of statistical agricultural land area and reducing the cost of measurement and statistics. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A schematic diagram of a flow chart of a measurement method provided by an embodiment of the present invention;

[0036] Figure 2A schematic diagram of a latitude and longitude coordinate system provided by an embodiment of the present invention;

[0037] Figure 3 A schematic diagram of the structure of an area measuring device provided by an embodiment of the present invention;

[0038] Figure 4 A schematic diagram of the structure of a computer device provided by an embodiment of the present invention;

[0039] Figure 5 A schematic diagram of image information of a target agricultural land with an outline provided by an embodiment of the present invention;

[0040] Figure 6 A schematic diagram of image information showing that a target agricultural land with an outline is divided into a certain number of grids provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0042] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0043] A method for measuring the area of ​​agricultural land provided in an embodiment of the present invention belongs to the field of statistical technology of agricultural planting, and its application scenarios can be: measuring the area of ​​orchard planting areas and other scenarios. It is understandable that in the prior art, manual on-site measurement and statistics are performed. For example, a large number of staff are hired to carry measurement tools to the agricultural land on site in various villages and towns for verification and measurement, but such statistical measurement methods consume a lot of manpower and material resources and are inefficient.

[0044] Based on this, how to improve the efficiency of statistical analysis of agricultural land area and reduce the cost of measurement and statistics has become a technical problem that needs to be solved urgently.

[0045] It should be noted that the area measurement method is performed by a computer device. It should be noted that the computer device here refers to any device with a computing and processing function, including but not limited to a fixed terminal device or a mobile terminal device. The fixed terminal device may include but is not limited to a desktop computer or a computer device, and the mobile terminal device may include but is not limited to a mobile phone, a tablet computer, a wearable device or a laptop computer, etc.

[0046] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0047] refer to Figure 1 The embodiment of the present invention provides a method for measuring the area of ​​agricultural land, which is executed by a computer device. The method includes the following steps:

[0048] Step 11: Acquire image information of target agricultural land;

[0049] Step 12: on a map with a clarity greater than a clarity threshold, determining the coordinate information of the target agricultural land according to the image information of the target agricultural land;

[0050] Step 13: Determine the area of ​​the target agricultural land based on the coordinate information of the target agricultural land.

[0051] In some embodiments, the step 11, i.e., obtaining the image information of the target agricultural land, may include: receiving the image information of the target agricultural land obtained by drone or satellite photography, etc. Of course, in other embodiments, the computer device may also store the image information of the target agricultural land in advance.

[0052] In some embodiments, the step 12, namely the clarity threshold, may be a clarity value that allows human eyes or equipment to identify the scope of agricultural land.

[0053] In some embodiments, the step 12, namely the map, may be map information built into a computer device executing the method or map information acquired in real time.

[0054] In other embodiments, the step 12 and / or step 13, that is, the coordinate information, may be coordinate information on a custom coordinate axis, or may be coordinate information using longitude and latitude as standard coordinates.

[0055] In the above embodiment, the image information of the target agricultural land is first obtained, and then the coordinate information of the target agricultural land is determined based on the image information of the target agricultural land on a map with a clarity greater than a clarity threshold. Finally, the area of ​​the target agricultural land is determined based on the coordinate information of the target agricultural land. Compared with the existing technical staff who carry measuring tools to various villages and towns to verify and measure the agricultural land on site, the area measurement method provided by the above embodiment determines the area of ​​the target agricultural land from the obtained image information of the target agricultural land, thereby improving the efficiency of statistical agricultural land area statistics and reducing the cost of measurement statistics.

[0056] refer to Figure 5 In some exemplary embodiments, the step 12 includes:

[0057] On a map with a clarity greater than a clarity threshold, circling the outline of the target agricultural land according to the image information of the target agricultural land;

[0058] In a longitude and latitude coordinate system, determining the longitude and latitude values ​​of each vertex in the outline of the target agricultural land;

[0059] Determining the area of ​​the target agricultural land according to the coordinate information of the target agricultural land includes:

[0060] The area of ​​the target agricultural land is determined according to the latitude and longitude values ​​of each vertex in the outline of the target agricultural land.

[0061] Exemplarily, on a map with a clarity greater than a clarity threshold, circling the outline of the target agricultural land according to the image information of the target agricultural land may include:

[0062] A sliding operation of the user on the interface where the map is located is received, and based on the sliding operation, a sliding area where the sliding operation is performed is used as the outline of the target agricultural land.

[0063] Thus, in this embodiment, the contour of the target agricultural land can be determined through the user's operation on the computer device, that is, the user outlines the contour of the target agricultural land on the map, thereby improving the accuracy of contour determination.

[0064] In order to make the measurement of agricultural land more intelligent, in other embodiments, circling the outline of the target agricultural land according to the image information of the target agricultural land includes:

[0065] According to the image information of the target agricultural land, the image information of the target agricultural land is grayed, and the edge of the image area where the gray value change is greater than the gray value change threshold is used as the contour.

[0066] It can be understood that the image information of the target agricultural land includes: image color, image saturation, etc. And the image color, image saturation, etc. of the adjacent area of ​​the target agricultural land are somewhat different from the image color, image saturation, etc. of the target agricultural land. Based on this, in this embodiment, by graying the image information of the target agricultural land, and taking the edge of the image area where the gray value change is greater than the gray value threshold as the outline, the outline of the target agricultural land can be intelligently outlined on a map with a clarity greater than the clarity threshold, thereby laying the foundation for the subsequent calculation of the area of ​​the target agricultural land based on the outline of the target agricultural land.

[0067] Exemplary, reference Figure 2The latitude and longitude coordinate system of this embodiment is constructed as follows: a spatial rectangular coordinate system is established on the equatorial plane, with the X-axis pointing to the prime meridian, the Y-axis being perpendicular to the X-axis in the equatorial plane, and the Z-axis pointing to the North Pole.

[0068] It can be understood that the outline of the target agricultural land is a closed spherical polygon, and the longitude and latitude values ​​of each vertex in the outline of the agricultural land are also the longitude and latitude values ​​of each vertex of the spherical polygon. The vertices A1, A2, ..., A of the spherical polygon are obtained according to the image information of the agricultural land with map information. n The longitude and latitude of A1, A2, ...A n The longitude and latitude are [lat1,lng1], [lat2,lng2]...[lat n ,lng n ], where longitude and latitude can be expressed in degrees or radians, preferably in radians. It should be noted that longitude is the degree to the east or west of a point on the earth from a north-south line called the prime meridian, where the longitude of the prime meridian is 0°, and latitude refers to the linear angle formed by the line connecting a point with the center of the earth and the equatorial plane of the earth.

[0069] Furthermore, based on the longitude and latitude of each vertex mentioned above, we can obtain the coordinates of each vertex in the longitude and latitude coordinate system. n The coordinates of can be calculated by formula (1).

[0070] A n (X n ,Y n ,Z n )=(cos lat n ·sinlng n ·R,cos lat n ·sin lngn·R,sin latn·R) (1)

[0071] Where R is the radius of the earth, lat n A n The longitude of the point, lng n A n The latitude of the point, where longitude and latitude are expressed in radians, X n A n The coordinates on the X axis of the latitude and longitude coordinate system, Y n A n The coordinate on the Y axis of the latitude and longitude coordinate system, Z n A n The coordinate on the Z axis of the latitude and longitude coordinate system.

[0072] It should be noted that when measuring the area of ​​agricultural land, it is necessary to estimate the size of the agricultural land in advance to determine different measurement strategies, so that appropriate measurement strategies can be adopted for agricultural land of different sizes, so as to reduce the amount of calculation as much as possible to improve measurement efficiency while ensuring that the measurement is sufficiently accurate. The estimation method of this embodiment can estimate the area of ​​the spherical polygon based on the longitude difference between the maximum longitude value and the minimum longitude value in each vertex and the latitude difference between the maximum latitude value and the minimum latitude value in each vertex.

[0073] In some exemplary embodiments, determining the area of ​​the target agricultural land according to the latitude and longitude values ​​of each vertex in the outline of the target agricultural land includes:

[0074] In response to the longitude difference being less than the longitude difference threshold and the latitude difference being less than the latitude difference threshold, the area of ​​the target agricultural land is calculated according to the longitude and latitude values ​​of each vertex in the outline of the target agricultural land and the calculation strategy of the plane polygon, wherein the calculation strategy of the plane polygon includes: a strategy for calculating the area using the plane straight line connecting adjacent vertices as the side length of the polygon.

[0075] Exemplarily, before implementing the planar polygon calculation strategy, the vertices in the outline of the agricultural land are first connected to each other with straight lines to form a number of triangles, the side length of each triangle is calculated, and then the area of ​​each triangle is obtained. The sum of the areas of each triangle is the area of ​​the agricultural land.

[0076] It should be noted that the calculation strategy using planar polygons is applicable to agricultural land where the longitude difference is less than the longitude difference threshold and the latitude difference is less than the latitude difference threshold. The area of ​​such agricultural land is small, and the sum of the calculated areas of each triangle is not much different from the actual area of ​​the agricultural land. Within the allowed range, it is achieved while ensuring that the measurement is sufficiently accurate, reducing the amount of calculation and improving the measurement efficiency.

[0077] In some exemplary embodiments, determining the area of ​​the target agricultural land according to the longitude and latitude of each vertex in the outline of the target agricultural land includes:

[0078] In response to the longitude difference being greater than or equal to a longitude difference threshold, and / or the latitude difference being greater than or equal to a latitude difference threshold, the area of ​​the target agricultural land is calculated according to the longitude and latitude values ​​of each vertex in the outline of the target agricultural land and in accordance with a spherical polygon calculation strategy, wherein the spherical polygon calculation strategy includes: a strategy for calculating the area using the connection of spherical arcs between adjacent vertices as the side length of the polygon.

[0079] For example, the vertices A1, A2, ..., A in the outline of the target agricultural land are calculated according to formula (1). n The coordinates of the vertices obtained are the vertices of the spherical polygon. The spherical side lengths of the sides are calculated according to the vertices of the spherical polygon. The length of any spherical side of the spherical polygon is L n All of them can be calculated by formula (2). Then, the spherical polygon is regarded as a plane polygon, and the spherical side length of the spherical polygon is the plane side length of the plane polygon. The area of ​​the plane polygon is calculated according to the plane side length of the plane polygon. The area of ​​the plane polygon is the orchard area.

[0080] L n = R arccos(cos lat n-1 ·cos lat n ·cos(lng n-1 -lng n )+sin lat n-1 ·sinlat n ) (2)

[0081] Where R is the radius of the earth, lat n A n The longitude of the point, lng n A n The latitude of the point, lat n-1 A n-1 The longitude of the point, lng n-1 A n-1 The latitude of a point, where both longitude and latitude are expressed in radians.

[0082] It should be noted that the spherical polygon calculation strategy is applicable to agricultural land whose longitude difference is greater than or equal to the longitude difference threshold and / or the latitude difference is greater than or equal to the latitude difference threshold. Such agricultural land has a large area. If the plane polygon calculation strategy is adopted, the actual area of ​​the agricultural land cannot be accurately measured. The spherical polygon calculation strategy of this embodiment can ensure that the measured area is closer to the actual area of ​​the agricultural land when measuring agricultural land with a larger area, making the measurement more accurate.

[0083] refer to Figure 6 In some exemplary embodiments, the area of ​​the target agricultural land is calculated according to the latitude and longitude values ​​of each vertex in the outline of the target agricultural land and the calculation strategy of the spherical polygon, including:

[0084] According to the latitude and longitude values ​​of each vertex in the outline of the target agricultural land, the spherical area formed by each vertex in the outline is divided into N grids, and the area of ​​the target agricultural land is determined according to the area of ​​the N grids.

[0085] In the above embodiment, the idea of ​​calculus limit is used to evenly divide the agricultural land into a certain number of grids, and the area of ​​one of the grids is obtained. Then, the area of ​​each grid is summed up to get the area of ​​the agricultural land, which is further closer to the actual area of ​​the agricultural land, making the measurement more accurate.

[0086] It can be foreseen that in the calculation strategy of the spherical polygon, including the strategy of evenly dividing the agricultural land into a certain number of grids and obtaining the area of ​​the agricultural land by summing the area of ​​each grid, it can ensure that the measurement of agricultural land is sufficiently accurate for a spherical surface with a smooth surface. However, in reality, agricultural land usually includes complex terrains such as pits and slopes. In the face of such agricultural land, directly using the calculation strategy of the spherical polygon, the actual area of ​​the slopes of complex terrains such as pits and slopes cannot be calculated, and only the projections of the slopes of complex terrains such as pits and slopes on the spherical surface can be calculated. This results in the measurement of the area of ​​agricultural land in complex terrain directly using the calculation strategy of the spherical polygon is not accurate enough.

[0087] Based on the foreseeable situation above, in some exemplary embodiments, the area of ​​the target agricultural land is calculated according to the latitude and longitude values ​​of each vertex in the outline of the target agricultural land according to the calculation strategy of spherical polygons, including:

[0088] The image information includes but is not limited to information such as topography and longitude and latitude, and the topography types include but are not limited to topography such as pits and / or slopes;

[0089] According to the latitude and longitude values ​​of each vertex in the outline of the target agricultural land, the spherical area formed by each vertex in the outline is divided into N grids;

[0090] Determining the types of terrain and landforms that the N grids fall into;

[0091] In response to the slope range of the topography that the M grids fall into, adding a compensation area to the area of ​​each grid in the M grids to calculate the total area of ​​the M grids;

[0092] The sum of the areas of the remaining NM grids and the total area of ​​the M grids is the area of ​​the target agricultural land.

[0093] Exemplarily, the image information is three-dimensional map information, and the three-dimensional map information of the target agricultural land is evenly divided into a certain number of grids. It is determined whether the grid is located within the slope range of terrain features such as pits and / or slopes. The compensation area is added when calculating the area of ​​the grid within the slope range, and the spherical polygon calculation strategy is normally followed when calculating the area of ​​other grids. The sum of the total areas of the two grids is the area of ​​the target agricultural land. The calculated area of ​​the target agricultural land will include the area of ​​the slopes of complex terrains such as pits and slopes, so that the calculated area is further closer to the actual area of ​​the agricultural land, making the measurement more accurate.

[0094] Based on the foreseeable situation above, in some exemplary embodiments, the area of ​​the target agricultural land is calculated according to the latitude and longitude values ​​of each vertex in the outline of the target agricultural land according to the calculation strategy of spherical polygons, including:

[0095] The image information includes but is not limited to information such as topography and longitude and latitude, and the topography types include but are not limited to topography such as pits and / or slopes;

[0096] According to the image information, the slope contour of the slope range of the topographic features such as the pits and / or slopes in the target agricultural land is circled;

[0097] According to the latitude and longitude values ​​of each vertex in the slope profile, the spherical area formed by each vertex in the slope profile is divided into E grids, and the area of ​​each grid in the E grids is added with the compensation area to calculate the area of ​​the E grids;

[0098] The area of ​​the target agricultural land outside the slope contour is calculated according to the area calculation strategy using the connection of spherical arcs between adjacent vertices as the side length of the polygon;

[0099] The area of ​​the target agricultural land is determined based on the areas of the E grids and the area of ​​the target agricultural land outside the slope contour.

[0100] Exemplarily, the image information is three-dimensional map information. First, the slope range of the target agricultural land is determined, and the three-dimensional map information of the agricultural land within the slope range is evenly divided into a certain number of grids. When calculating the area of ​​each grid within the slope range, the compensation area is added to obtain the area of ​​the E grids. The area of ​​other target agricultural lands is no longer divided into grids, but is directly calculated according to the calculation strategy of the spherical polygon. The area of ​​the E grids plus the area of ​​other target agricultural lands is the area of ​​the target agricultural land. This not only reduces the amount of calculation for dividing the flat target agricultural land into grids, but also ensures the accuracy of the calculation of the area of ​​terrain and landforms such as pits and / or slopes in the target agricultural land.

[0101] In some exemplary embodiments, the grids are rectangular grids with equal length and width, so that the total area of ​​the grids can be determined based on the area of ​​one grid.

[0102] For example, the area of ​​one of the grids is calculated by referring to Figure 2 , establish a longitude and latitude coordinate system, obtain the longitude and latitude of two points A1 and A2 on one side of the grid, which are [lat1, lng1] and [lat2, lng2] respectively. According to formula (1), the coordinates of A1 and A2 in the longitude and latitude coordinate system are (cos lat1*cos lng1*R, cos lat1*sin lng1*R, sinlat1*R) and (cos lat2*cos lng2*R, cos lat2*sin lng2*R, sin lat2*R). According to the calculation formula (2) of the spherical side length, the spherical side length from A1 to A2 = R*arccos(cos lat1*cos lat2*cos(lng1-lng2)+sinlat1*sin lat2). Therefore, the area of ​​the grid is obtained by the square of the spherical side length from A1 to A2. The sum of the areas of all grids is the total area of ​​the grid.

[0103] like Figure 3 As shown, an embodiment of the present invention further provides an area measurement device for agricultural land, including an acquisition module 21, a first determination module 22 and a second determination module 23, wherein the acquisition module 21 is used to acquire image information of target agricultural land; the first determination module 22 is used to determine the coordinate information of the target agricultural land according to the image information of the target agricultural land on a map with a clarity greater than a clarity threshold; the second determination module 23 is used to determine the area of ​​the target agricultural land according to the coordinate information of the target agricultural land.

[0104] In some embodiments, the acquisition module 21 is specifically used to:

[0105] According to the image information of the target agricultural land acquired in real time or according to the image information of the target agricultural land built into the area measuring device, the topography, longitude and latitude and other information of the target agricultural land are acquired, and the topography, longitude and latitude and other information include but are not limited to topography such as pits and / or slopes.

[0106] In some embodiments, the first determining module 22 is specifically configured to:

[0107] Determine whether the image information of the target agricultural land acquired by the acquisition module is greater than a clarity threshold, and if so, determine the latitude and longitude coordinate information or custom coordinate information of the target agricultural land;

[0108] If it is less than or equal to, returning to the acquisition module to reacquire the image information of the target agricultural land;

[0109] The first determining module 22 is further configured to:

[0110] Determine the contour of the target agricultural land and the coordinate information of each vertex of the contour according to the image information of the target agricultural land;

[0111] The first determining module 22 is further configured to:

[0112] According to the image information of the target agricultural land, the contour of the topography such as the pits and / or slopes of the target agricultural land and the coordinate information of each vertex of the contour are determined.

[0113] In some embodiments, the second determining module 23 is specifically configured to:

[0114] Determine the area of ​​the target agricultural land according to the outline of the target agricultural land and the coordinate information of each vertex of the outline;

[0115] The second determining module 23 is further configured to:

[0116] Determine the area of ​​the topography such as the pit and / or slope according to the contour of the topography such as the pit and / or slope of the target agricultural land and the coordinate information of each vertex of the contour;

[0117] The second determining module 23 is further configured to:

[0118] According to the determined outline, the outline is divided into a certain number of grids;

[0119] According to the coordinate information of the grid, the total area of ​​the grid is determined.

[0120] It should be noted here that the description of the above area measurement device is similar to the description of the above agricultural land area measurement method, and the description of the beneficial effects of the same method is not repeated. For technical details not disclosed in the embodiment of the area measurement device of the present invention, please refer to the description of the embodiment of the agricultural land area measurement method of the present invention.

[0121] The present invention also provides a specific embodiment to further understand the method, device, computer equipment and storage medium for measuring the area of ​​agricultural land.

[0122] At present, the traditional way to count the area of ​​agricultural land is to conduct manual on-site measurement and statistics, which is costly and inefficient.

[0123] Based on this, let’s take the calculation of the area of ​​an orchard as an example.

[0124] like Figure 5 and Figure 6 The outline of the orchard is manually drawn on the high-definition map. The outline of the orchard is a polygon. Then, the polygon is evenly divided into a certain number of small grids. According to the idea of ​​calculus limit, when the data reaches a certain limit, these small grids can be regarded as small squares.

[0125] Please refer to Figure 2 , establish a spatial rectangular coordinate system. On the equatorial plane, the X-axis points to the prime meridian, the Y-axis is perpendicular to the X-axis on the equatorial plane, and the Z-axis points to the North Pole;

[0126] Get the longitude and latitude of the two endpoints A and B of one side of any small square [lat1,lng1], [lat2,lng2], where the longitude and latitude of A and B are both expressed in radians;

[0127] The coordinates of points A and B are calculated based on their longitude and latitude and formula (1), assuming that the radius of the earth is 1:

[0128] The coordinates of point A are expressed as (cos lat1*cos lng1,cos lat1*sin lng1,sin lat1);

[0129] The coordinates of point B are expressed as (cos lat2*cos lng2,cos lat2*sin lng2,sin lat2);

[0130] Then, according to formula (2), the arc length (spherical distance) between points A and B is calculated as arccos(cos lat1*cos lat2*cos(lng1-lng2)+sin lat1*sin lat2);

[0131] Finally, apply the rectangular area formula to calculate the area of ​​each small grid, and then sum up the areas of all small grids to get the area of ​​the polygon, which is the area of ​​the orchard.

[0132] It should be noted that radians are arcs with arc lengths equal to the radius, and the corresponding central angle is 1 radian. One circumference is 2∏ radians (the abbreviation of radians is rad, and ∏ is pi); Calculate radians based on angles: θ / 360*2∏=θ*∏ / 180 (θ is the angle, and ∏ is pi); Calculate angles based on radians: ( is radians, ∏ is pi); calculate arc length based on radians: radians * radius; Earth's equatorial radius: 6377.830 = 6356.9088 + 20.9212 kilometers; Polar radius: 6356.9088 kilometers.

[0133] It can be understood that the high-definition map here can be equivalent to the map with a clarity greater than the clarity threshold described in the above embodiment; here, the outline of the orchard range is manually drawn on the high-definition map, which is equivalent to the above embodiment, receiving the user's sliding operation on the map, and based on the sliding operation, taking the sliding area where the sliding operation is located as the outline of the target agricultural land.

[0134] In the embodiment of the present invention, the outline of the orchard is circled on the high-definition map, and the spherical polygon constructed by the orchard outline is divided into a plurality of small grids according to the latitude and longitude coordinates of each vertex of the orchard outline, and the area of ​​the small grid is calculated, and finally the total area of ​​the orchard is calculated using limit algorithms such as calculus. In this way, the cost of manpower and material resources is saved and the work efficiency is improved.

[0135] like Figure 4 As shown, an embodiment of the present invention further provides a computer device, including a processor 31 and a memory 32 for storing a computer program that can be run on the processor, wherein the processor is used to implement the area measurement method applied to the agricultural land when running the computer program.

[0136] In some embodiments, the memory 32 in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (DRRAM). The memory 32 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0137] The processor 31 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 31 or the instruction in the form of software. The above processor 31 may be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 32, and the processor 31 reads the information in the memory 32 and completes the steps of the above method in combination with its hardware.

[0138] In some embodiments, the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSP devices, DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described herein, or a combination thereof.

[0139] For software implementation, the techniques described herein can be implemented by modules (e.g., procedures, functions, etc.) that perform the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0140] Another embodiment of the present invention provides a computer storage medium, the computer readable storage medium stores an executable program, and when the executable program is executed by the processor 31, the steps of the area measurement method applied to the agricultural land can be implemented. Figure 1 One or more of the methods shown.

[0141] In some embodiments, the computer storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0142] It should be noted that the technical solutions described in the embodiments of the present invention can be combined arbitrarily without conflict.

[0143] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for measuring the area of ​​agricultural land, characterized in that: The method comprises: Acquire image information of target agricultural land; On a map with a clarity greater than a clarity threshold, determining coordinate information of the target agricultural land according to image information of the target agricultural land; Determining the area of ​​the target agricultural land according to the coordinate information of the target agricultural land; The step of determining the coordinate information of the target agricultural land according to the image information of the target agricultural land on a map having a clarity greater than a clarity threshold comprises: On a map with a clarity greater than a clarity threshold, circling the outline of the target agricultural land according to the image information of the target agricultural land; In a longitude and latitude coordinate system, determining the longitude and latitude values ​​of each vertex in the outline of the target agricultural land; Determining the area of ​​the target agricultural land according to the coordinate information of the target agricultural land includes: Determine the area of ​​the target agricultural land according to the latitude and longitude values ​​of each vertex in the outline of the target agricultural land; The method further comprises: Determine the longitude difference between the maximum longitude value and the minimum longitude value at each vertex; Determine the latitude difference between the maximum latitude value and the minimum latitude value in each vertex; Determining the area of ​​the target agricultural land according to the latitude and longitude values ​​of each vertex in the outline of the target agricultural land includes: In response to the longitude difference being less than the longitude difference threshold and the latitude difference being less than the latitude difference threshold, the area of ​​the target agricultural land is calculated according to the longitude and latitude values ​​of each vertex in the outline of the target agricultural land and the calculation strategy of the plane polygon, wherein the calculation strategy of the plane polygon includes: a strategy for calculating the area using the plane straight line connecting adjacent vertices as the side length of the polygon.

2. The method according to claim 1, characterized in that Determining the area of ​​the target agricultural land according to the longitude and latitude of each vertex in the outline of the target agricultural land includes: In response to the longitude difference being greater than or equal to a longitude difference threshold, and / or the latitude difference being greater than or equal to a latitude difference threshold, the area of ​​the target agricultural land is calculated according to the longitude and latitude values ​​of each vertex in the outline of the target agricultural land and in accordance with a spherical polygon calculation strategy, wherein the spherical polygon calculation strategy includes: a strategy for calculating the area using the connection of spherical arcs between adjacent vertices as the side length of the polygon.

3. The method according to claim 2, characterized in that The area of ​​the target agricultural land is calculated according to the latitude and longitude values ​​of each vertex in the outline of the target agricultural land and the calculation strategy of the spherical polygon, including: According to the latitude and longitude values ​​of each vertex in the outline of the target agricultural land, the spherical area formed by each vertex in the outline is divided into N grids, and the area of ​​the target agricultural land is determined according to the area of ​​the N grids.

4. The method according to claim 3, characterized in that The N grids are rectangular grids with equal length and width; According to the areas of the N grids, the area of ​​the target agricultural land is determined, including: According to the area of ​​one grid, the total area value of N grids is calculated to obtain the area of ​​the target agricultural land.

5. The method according to claim 1, characterized in that The step of circling the outline of the target agricultural land according to the image information of the target agricultural land comprises: According to the image information of the target agricultural land, the image information of the target agricultural land is grayed, and the edge of the image area where the gray value change is greater than the gray value change threshold is used as the contour.

6. An area measuring device for agricultural land, comprising: An acquisition module, used for acquiring image information of target agricultural land; A first determination module is used to determine the coordinate information of the target agricultural land according to the image information of the target agricultural land on a map with a clarity greater than a clarity threshold; A second determination module is used to determine the area of ​​the target agricultural land according to the coordinate information of the target agricultural land; The step of determining the coordinate information of the target agricultural land according to the image information of the target agricultural land on a map having a clarity greater than a clarity threshold comprises: On a map with a clarity greater than a clarity threshold, circling the outline of the target agricultural land according to the image information of the target agricultural land; In a longitude and latitude coordinate system, determining the longitude and latitude values ​​of each vertex in the outline of the target agricultural land; Determining the area of ​​the target agricultural land according to the coordinate information of the target agricultural land includes: Determine the area of ​​the target agricultural land according to the latitude and longitude values ​​of each vertex in the outline of the target agricultural land; Also includes: Determine the longitude difference between the maximum longitude value and the minimum longitude value at each vertex; Determine the latitude difference between the maximum latitude value and the minimum latitude value in each vertex; Determining the area of ​​the target agricultural land according to the latitude and longitude values ​​of each vertex in the outline of the target agricultural land includes: In response to the longitude difference being less than the longitude difference threshold and the latitude difference being less than the latitude difference threshold, the area of ​​the target agricultural land is calculated according to the longitude and latitude values ​​of each vertex in the outline of the target agricultural land and the calculation strategy of the plane polygon, wherein the calculation strategy of the plane polygon includes: a strategy for calculating the area using the plane straight line connecting adjacent vertices as the side length of the polygon.

7. A computer device, characterized in that: include: A processor and a memory for storing a computer program that can be run on the processor, wherein the processor is used to implement the method for measuring the area of ​​agricultural land as described in any one of claims 1 to 5 when running the computer program.

8. A computer storage medium, characterized in that An executable program is stored, and when the executable program is executed by a processor, the area measurement method of agricultural land according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Method for autonomously collecting space load basic data on basis of open source information

    CN107169878A

  • Farmland mu measurement method and system based on calibration block targeting correction

    CN111598937A

  • Crop information display system, method and device based on remote sensing images and medium

    CN111949817A