CN114140513A - Method and device for measuring area of agricultural land and computer equipment - Google Patents

Method and device for measuring area of agricultural land and computer equipment Download PDF

Info

Publication number
CN114140513A
CN114140513A CN202111390490.7A CN202111390490A CN114140513A CN 114140513 A CN114140513 A CN 114140513A CN 202111390490 A CN202111390490 A CN 202111390490A CN 114140513 A CN114140513 A CN 114140513A
Authority
CN
China
Prior art keywords
agricultural land
target agricultural
area
longitude
latitude
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111390490.7A
Other languages
Chinese (zh)
Inventor
张继生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangxi Yufeng Intelligent Agricultural Technology Co ltd
Original Assignee
Jiangxi Yufeng Intelligent Agricultural Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangxi Yufeng Intelligent Agricultural Technology Co ltd filed Critical Jiangxi Yufeng Intelligent Agricultural Technology Co ltd
Priority to CN202111390490.7A priority Critical patent/CN114140513A/en
Publication of CN114140513A publication Critical patent/CN114140513A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30181Earth observation
    • G06T2207/30188Vegetation; Agriculture

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Remote Sensing (AREA)
  • Computer Graphics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses an area measuring method and device for agricultural land, computer equipment and a storage medium.

Description

Method and device for measuring area of agricultural land and computer equipment
Technical Field
The invention relates to the technical field of statistics of agricultural planting, in particular to a method and a device for measuring the area of agricultural land, computer equipment and a storage medium.
Background
The traditional statistical method of agricultural land area is measurement statistics carried out on manual sites. For example: a large number of workers are hired to carry measuring tools and issue the measuring tools to agricultural land of each village and town site for checking and measuring, but the statistical measuring mode consumes a large amount of manpower and material resources and is low in efficiency. Therefore, the mode of manually measuring and counting the agricultural land area on site needs to be changed, the efficiency of counting the agricultural land area is improved, and the cost of measurement and counting is reduced.
Disclosure of Invention
In order to solve the existing technical problems, the embodiment of the invention provides an area measurement method and device for agricultural land, computer equipment and a storage medium.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides an area measurement method for agricultural land, which comprises the following steps:
acquiring image information of target agricultural land;
determining coordinate information of the target agricultural land according to the image information of the target agricultural land on the map with the definition greater than the definition threshold;
and determining the area of the target agricultural land according to the coordinate information of the target agricultural land.
Preferably, the determining the coordinate information of the target agricultural land according to the image information of the target agricultural land on the map with the definition greater than the definition threshold includes:
on the map with the definition larger than the definition threshold value, according to the image information of the target agricultural land, the outline of the target agricultural land is circled;
determining longitude and latitude values of all vertexes in the contour of the target agricultural land in a longitude and latitude coordinate system;
the determining the area of the target agricultural land according to the coordinate information of the target agricultural land comprises:
and determining the area of the target agricultural land according to the longitude and latitude values of all vertexes in the contour of the target agricultural land.
Preferably, the method further comprises:
determining a longitude difference between the maximum longitude value and the minimum longitude value in each vertex;
determining a latitude difference value between the maximum latitude value and the minimum latitude value in each vertex;
the determining the area of the target agricultural land according to the longitude and latitude values of each vertex in the contour of the target agricultural land comprises the following steps:
in response to that the longitude difference is smaller than a longitude difference threshold and the latitude difference is smaller than a latitude difference threshold, calculating the area of the target agricultural land according to the longitude and latitude values of each vertex in the contour of the target agricultural land and a calculation strategy of a planar polygon, wherein the calculation strategy of the planar polygon comprises the following steps: and taking the straight line connecting lines of the planes between the adjacent vertexes as the side length of the polygon to carry out the area calculation strategy.
Preferably, the determining the area of the target agricultural land according to the longitude and latitude of each vertex in the contour of the target agricultural land includes:
in response to that the longitude difference is greater than or equal to a longitude difference threshold and/or the latitude difference is greater than or equal to a latitude difference threshold, calculating the area of the target agricultural land according to a calculation strategy of a spherical polygon according to the longitude and latitude values of each vertex in the contour of the target agricultural land, wherein the calculation strategy of the spherical polygon comprises the following steps: and taking the connection of the spherical arcs between the adjacent vertexes as the side length of the polygon to carry out the area calculation strategy.
Preferably, the calculating the area of the target agricultural land according to the latitude and longitude values of each vertex in the contour of the target agricultural land and the calculation strategy of a spherical polygon includes:
and dividing a spherical area formed by each vertex in the contour into N grids according to the longitude and latitude values of each vertex in the contour of the target agricultural land, and determining the area of the target agricultural land according to the areas of the N grids.
Preferably, the N lattices are rectangular lattices having equal length and width values, respectively;
determining the area of the target agricultural land according to the areas of the N grids, and the method comprises the following steps:
and calculating the total area value of the N grids according to the area of one grid to obtain the area of the target agricultural land.
Preferably, the delineating the contour of the target agricultural land according to the image information of the target agricultural land includes:
and performing graying processing on the image information of the target agricultural land according to the image information of the target agricultural land, and taking the edge of an image area with a gray value change larger than a gray value change threshold value as the outline.
The embodiment of the invention also provides an area measuring device for agricultural land, which comprises:
the acquisition module is used for acquiring image information of the target agricultural land;
the first determination module is used for determining the coordinate information of the target agricultural land according to the image information of the target agricultural land on the map with the definition greater than the definition threshold;
and the second determination module is used for determining the area of the target agricultural land according to the coordinate information of the target agricultural land.
An embodiment of the present invention further provides a computer device, including: a processor and a memory for storing a computer program capable of running on the processor, wherein the processor is configured to implement any of the above-described methods for measuring the area of agricultural land when running the computer program.
The embodiment of the invention also provides a computer storage medium which stores an executable program, and the executable program is executed by a processor to realize the method for measuring the area of the agricultural land.
The measuring method comprises the steps of firstly obtaining image information of target agricultural land, then determining coordinate information of the target agricultural land according to the image information of the target agricultural land on a map with definition larger than a definition threshold value, and finally determining the area of the target agricultural land according to the coordinate information of the target agricultural land. Therefore, compared with the prior art that workers carry measuring tools to issue agricultural land to each village and town site to perform verification measurement, the area measuring method provided by the embodiment of the invention determines the area of the target agricultural land from the acquired image information of the target agricultural land, improves the efficiency of counting the area of the agricultural land, and reduces the cost of measurement and statistics.
Drawings
Fig. 1 is a schematic flow chart of a measurement method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a latitude and longitude coordinate system provided by an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an area measurement apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a computer device according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of image information of a contoured target agricultural site provided in accordance with an embodiment of the present invention;
fig. 6 is a schematic diagram of image information of a target agricultural land with a contour divided into a certain number of grids according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The embodiment of the invention provides an area measurement method for agricultural land, which belongs to the technical field of statistics of agricultural planting, and the application scene can be as follows: in the scenes of orchard planting area measurement and the like. It is understood that in the prior art, measurement statistics are performed manually on site. For example: a large number of workers are hired to carry measuring tools and issue the measuring tools to agricultural land of each village and town site for checking and measuring, but the statistical measuring mode consumes a large amount of manpower and material resources and is low in efficiency.
Therefore, how to improve the efficiency of calculating the agricultural land area and reduce the cost of measurement and calculation becomes a technical problem which needs to be solved urgently.
It is noted that the area measurement method is executed by a computer device. It should be noted that, the computer device herein refers to any device having a computing 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 notebook computer.
The technical solution of the present invention is further described in detail with reference to the accompanying drawings and specific embodiments.
Referring to fig. 1, an embodiment of the present invention provides a method for measuring an area of agricultural land, which is performed by a computer device, the method including the steps of:
step 11: acquiring image information of target agricultural land;
step 12: determining coordinate information of the target agricultural land according to the image information of the target agricultural land on the map with the definition greater than the definition threshold;
step 13: and determining the area of the target agricultural land according to the coordinate information of the target agricultural land.
In some embodiments, the step 11 of obtaining the image information of the target agricultural land may include: and receiving image information of the target agricultural land shot by modes such as unmanned aerial vehicles or satellite shooting. Of course, in other embodiments, the computer device may also be a device that stores image information of the target agricultural land in advance.
In some embodiments, the step 12, i.e. the definition threshold, may be a definition value that human eyes or equipment can identify the agricultural land area.
In some embodiments, the step 12, i.e. the map, may be map information built into a computer device executing the method or map information acquired in real time.
In other embodiments, in step 12 or/and step 13, that is, the coordinate information may be coordinate information on a custom coordinate axis, or coordinate information with longitude and latitude as a standard coordinate.
In the above embodiment, the image information of the target agricultural land is first acquired, then the coordinate information of the target agricultural land is determined according to the image information of the target agricultural land on the map with the definition greater than the definition threshold, and finally the area of the target agricultural land is determined according to the coordinate information of the target agricultural land.
Referring to fig. 5, in some exemplary embodiments, the step 12 includes:
on the map with the definition larger than the definition threshold value, according to the image information of the target agricultural land, the outline of the target agricultural land is circled;
determining longitude and latitude values of all vertexes in the contour of the target agricultural land in a longitude and latitude coordinate system;
the determining the area of the target agricultural land according to the coordinate information of the target agricultural land comprises:
and determining the area of the target agricultural land according to the longitude and latitude values of all vertexes in the contour of the target agricultural land.
For example, on the map with the definition greater than the definition threshold, the delineating the contour of the target agricultural land according to the image information of the target agricultural land may include:
and receiving sliding operation of a user on the interface where the map is located, and taking a sliding area where the sliding operation is located as the outline of the target agricultural land based on the sliding operation.
In this way, in the embodiment, the contour of the target agricultural land on the map can be determined by the operation of the user on the computer device, that is, the user can draw the contour of the target agricultural land, so that the accuracy of contour determination is improved.
In order to make the measurement of the agricultural land more intelligent, in other embodiments, the circling the contour of the target agricultural land according to the image information of the target agricultural land includes:
and performing graying processing on the image information of the target agricultural land according to the image information of the target agricultural land, and taking the edge of an image area with a gray value change larger than a gray value change threshold value as the outline.
It is understood that the image information of the target agricultural land includes: image color, image saturation, etc. And the image color, the image saturation and the like of the adjacent area of the target agricultural land have certain differences with the image color, the image saturation and the like of the target agricultural land. Based on this, in the embodiment, the image information of the target agricultural land is subjected to graying processing, and the edge of the image area with the gray value change larger than the gray value threshold value is used as the contour, so that the contour of the target agricultural land can be intelligently drawn on the map with the definition larger than the definition threshold value, and a foundation is laid for calculating the area of the target agricultural land based on the contour of the target agricultural land.
For example, referring to fig. 2, the longitude and latitude coordinate system of the embodiment is constructed in the following manner: a space rectangular coordinate system is established on the equatorial plane, the X axis points to the meridian of the prime, the Y axis is vertical to the X axis on the equatorial plane, and the Z axis points to the north pole.
It can be understood that the contour of the target agricultural land is a closed spherical polygon, the longitude and latitude values of each vertex in the contour of the agricultural land are the longitude and latitude values of each vertex of the spherical polygon, and each vertex A of the spherical polygon is obtained according to the image information of the agricultural land with map information1、A2...AnThe longitude and latitude of (A) to obtain1、A2...AnThe longitude and latitude of are respectively [ lat1,lng1]、[lat2,lng2]...[latn,lngn]The longitude is the degree of a place on the earth from east or west of a north-south direction called the initial meridian, wherein the longitude of the initial meridian is 0 degrees, and the latitude is the line surface angle formed by a line connecting a certain point with the center of the earth and the equatorial plane of the earth.
Further, according to the longitude and latitude of each vertex, the coordinates of each vertex in the longitude and latitude coordinate system can be obtained, and any point AnCan be calculated by equation (1).
An(Xn,Yn,Zn)=(cos latn·sinlngn·R,cos latn·sin lngn·R,sin latn·R) (1)
Wherein R is the radius of the earth, latnIs AnLongitude of a point, lngnIs AnThe latitude of the point, wherein the longitude and latitude are all expressed by radian, XnIs AnCoordinates on the X-axis of the latitude and longitude coordinate system, YnIs AnCoordinates in the Y-axis of the longitude and latitude coordinate system, ZnIs AnCoordinates on the Z axis of the longitude and latitude coordinate system.
It should be noted that, when the area of the agricultural land is measured, the area size of the agricultural land needs to be estimated in advance to determine different measurement strategies, so that the agricultural land with different area sizes can adopt appropriate measurement strategies, and on the premise of ensuring that the measurement is accurate enough, the calculation amount is reduced as much as possible to improve the measurement efficiency. The estimation method of this embodiment may estimate the area of the spherical polygon according to a longitude difference between the maximum longitude value and the minimum longitude value in each vertex and a latitude difference between the maximum latitude value and the minimum latitude value in each vertex.
In some exemplary embodiments, the determining the area of the target agricultural land according to the longitude and latitude values of each vertex in the contour of the target agricultural land includes:
in response to that the longitude difference is smaller than a longitude difference threshold and the latitude difference is smaller than a latitude difference threshold, calculating the area of the target agricultural land according to the longitude and latitude values of each vertex in the contour of the target agricultural land and a calculation strategy of a planar polygon, wherein the calculation strategy of the planar polygon comprises the following steps: and taking the straight line connecting lines of the planes between the adjacent vertexes as the side length of the polygon to carry out the area calculation strategy.
Illustratively, before the calculation strategy of the planar polygon is carried out, all vertexes in the outline of the agricultural land are connected with each other by straight lines to form a plurality of triangles, the side length of each triangle is calculated, then the area of each triangle is obtained, and the sum of the areas of the triangles is the area of the agricultural land.
It should be noted that the calculation strategy using the planar polygon is applicable to the agricultural land where the longitude difference is smaller than the longitude difference threshold and the latitude difference is smaller than the latitude difference threshold, the area of the agricultural land is smaller, the difference between the sum of the calculated areas of the triangles and the actual area of the agricultural land is not large, and within an allowable range, on the premise of ensuring that the measurement is accurate enough, the calculation amount is reduced and the measurement efficiency is improved.
In some exemplary embodiments, the determining the area of the target agricultural land according to the longitude and latitude of each vertex in the contour of the target agricultural land includes:
in response to that the longitude difference is greater than or equal to a longitude difference threshold and/or the latitude difference is greater than or equal to a latitude difference threshold, calculating the area of the target agricultural land according to a calculation strategy of a spherical polygon according to the longitude and latitude values of each vertex in the contour of the target agricultural land, wherein the calculation strategy of the spherical polygon comprises the following steps: and taking the connection of the spherical arcs between the adjacent vertexes as the side length of the polygon to carry out the area calculation strategy.
Illustratively, each vertex A in the contour of the target agricultural land is calculated according to formula (1)1、A2...AnThe obtained vertexes are the vertexes of the spherical polygon, the spherical side length of each side is calculated according to the vertexes of the spherical polygon, and any one spherical side length L of the spherical polygonnCan be calculated by the formula (2). Then, taking the spherical polygon as a planar polygon, wherein the spherical side length of the spherical polygon is the planar side length of the planar polygon, calculating the area of the planar polygon according to the planar side length of the planar polygon, and the area of the planar polygon is the area of the orchard
Ln=R·arccos(cos latn-1·cos latn·cos(lngn-1-lngn)+sin latn-1·sin latn) (2)
Wherein R is the radius of the earth, latnIs AnLongitude of a point, lngnIs AnLatitude of the point, latn-1Is An-1Longitude of a point, lngn-1Is An-1And the latitude of the point, wherein the latitude and the longitude are all expressed by radian.
It should be noted that the calculation strategy of the spherical polygon is suitable for agricultural land with the longitude difference being greater than or equal to the longitude difference threshold and/or the latitude difference being greater than or equal to the latitude difference threshold, such agricultural land has a large area, if the calculation strategy of the planar polygon is adopted, the actual area of the agricultural land cannot be accurately measured, and when the calculation strategy of the spherical polygon of the embodiment is used for measuring agricultural land with a large area, the measured area can be ensured to be closer to the actual area of the agricultural land, so that the measurement is more accurate.
Referring to fig. 6, in some exemplary embodiments, the calculating the area of the target agricultural land according to the latitude and longitude values of each vertex in the contour of the target agricultural land and the calculation strategy of a spherical polygon includes:
and dividing a spherical area formed by each vertex in the contour into N grids according to the longitude and latitude values of each vertex in the contour of the target agricultural land, and determining the area of the target agricultural land according to the areas of the N grids.
In the embodiment, the agricultural land is uniformly divided into a certain number of grids by using the calculus limit thought, the area of one grid is obtained, and the area of each grid is summed to obtain the area of the agricultural land which is further closer to the actual area of the agricultural land, so that the measurement is more accurate.
It is expected that, in the calculation strategy of the spherical polygon, including the strategy of uniformly dividing the agricultural land into a certain number of grids and summing the areas of the grids to obtain the area of the agricultural land, the agricultural land can be measured accurately enough for a spherical surface with a smooth surface, but in reality, the agricultural land is generally a complex terrain including pits, slopes, etc., and for such an agricultural land, the calculation strategy of the spherical polygon directly used cannot calculate the actual area of the slopes of the complex terrain such as pits, slopes, etc., but can calculate the projection of the slopes of the complex terrain such as pits, slopes, etc., on the spherical surface, which results in that the calculation strategy of the spherical polygon directly used in the measurement of the area of the agricultural land facing the complex terrain is not accurate enough.
Based on the foreseeable situations, in some exemplary embodiments, the calculating the area of the target agricultural land according to the latitude and longitude values of each vertex in the contour of the target agricultural land and the calculation strategy of a spherical polygon includes:
the image information comprises but is not limited to information such as terrain landform, longitude and latitude, and the like, and the terrain landform type comprises but is not limited to terrain landform such as pits and/or slopes;
dividing a spherical area formed by each vertex in the contour into N grids according to the longitude and latitude values of each vertex in the contour of the target agricultural land;
determining the terrain and landform types into which the N lattices fall;
responding to the slope surface range of the landform and landform in which the M lattices fall, adding a compensation area to the area of each lattice in the M lattices, and calculating to obtain the total area of the M lattices;
and calculating the sum of the area of the rest N-M lattices and the total area of the M lattices, namely the area of the target agricultural land.
Illustratively, the image information is three-dimensional map information, the three-dimensional map information of the target agricultural land is uniformly divided into a certain number of grids, whether the grids are located in a slope range of landforms such as pits and/or slopes is judged, compensation areas are added when the areas of the grids located in the slope range are calculated, the areas of other grids are calculated according to a calculation strategy of a spherical polygon normally, the sum of the total areas of the two grids is the area of the target agricultural land, the area of the target agricultural land is calculated to include the areas of slopes of complex terrains such as pits and slopes, and therefore the calculated area is further close to the actual area of the agricultural land, and measurement is more accurate.
Based on the foreseeable situations, in some exemplary embodiments, the calculating the area of the target agricultural land according to the latitude and longitude values of each vertex in the contour of the target agricultural land and the calculation strategy of a spherical polygon includes:
the image information comprises but is not limited to information such as terrain landform, longitude and latitude, and the like, and the terrain landform type comprises but is not limited to terrain landform such as pits and/or slopes;
according to the image information, the slope surface outline of the slope surface range of the landform such as the pits and/or the slopes in the target agricultural land is circled;
dividing a spherical area formed by each vertex in the slope surface contour into E lattices according to the longitude and latitude values of each vertex in the slope surface contour, adding a compensation area to the area of each lattice in the E lattices, and calculating to obtain the areas of the E lattices;
calculating the area of the target agricultural land outside the slope surface outline according to a calculation strategy that the connection of spherical arcs between every two adjacent vertexes is used as the side length of a polygon to calculate the area;
and determining the area of the target agricultural land according to the areas of the E grids and the area of the target agricultural land outside the slope surface contour.
Illustratively, the image information is three-dimensional map information, a slope surface range of the target agricultural land is judged firstly, the three-dimensional map information of the agricultural land in the slope surface range is uniformly divided into a certain number of grids, a compensation area is added when the area of each grid in the slope surface range is calculated to obtain the area of E grids, the areas of other target agricultural lands are not divided into grids any more and are calculated directly according to the calculation strategy of the spherical polygon, and the area of the E grids plus the area of other target agricultural lands is the area of the target agricultural land; not only is the calculation amount of grid division for the flat target agricultural land reduced, but also the accuracy of calculation for the topographic areas such as pits and/or slopes in the target agricultural land is ensured.
In some exemplary embodiments, the grids are rectangular grids with equal length and width values, so that the total area of the grids can be determined according to the area of one grid.
For example, the area of one of the grids is calculated by establishing a longitude and latitude coordinate system and acquiring two points a on one side of the grid with reference to fig. 21And A2The longitude and latitude of are respectively [ lat1,lng1]And [ lat2,lng2]A is obtained from the formula (1)1And A2The coordinates in the longitude and latitude coordinate system are (cos lat)1*cos lng1*R,cos lat1*sin lng1*R,sin lat1R) and (cos lat)2*cos lng2*R,cos lat2*sin lng2*R,sin lat2R) is obtained according to the calculation formula (2) of the side length of the spherical surface, A1To A2The length of the spherical side is R × arccos (cos lat)1*cos lat2*cos(lng1-lng2)+sin lat1*sin lat2) Thereby passing throughA1To A2The square of the side length of the spherical surface of the grid is used for obtaining the area of the grid, and the sum of the areas of all the grids is the total area of the grid.
As shown in fig. 3, an embodiment of the present invention further provides an area measuring device for agricultural land, including an obtaining module 21, a first determining module 22, and a second determining module 23, where the obtaining module 21 is configured to obtain image information of a target agricultural land; the first determining module 22 is configured to determine, on the map with the definition greater than the definition threshold, coordinate information of the target agricultural land according to the image information of the target agricultural land; the second determining module 23 is configured to determine the area of the target agricultural land according to the coordinate information of the target agricultural land.
In some embodiments, the obtaining module 21 is specifically configured to:
and acquiring information such as the landform, the longitude and the latitude of the target agricultural land according to the image information of the target agricultural land acquired in real time or the image information of the target agricultural land embedded in the area measuring device, wherein the information such as the landform, the longitude and the latitude comprises but is not limited to the landform such as pits and/or slopes.
In some embodiments, the first determining module 22 is specifically configured to:
judging whether the image information of the target agricultural land acquired by the acquisition module is greater than a definition threshold value, and if so, determining longitude and latitude coordinate information or user-defined coordinate information of the target agricultural land;
if the image information is less than or equal to the target agricultural land, returning to the acquisition module to acquire the image information of the target agricultural land again;
the first determining module 22 is further configured to:
determining 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;
the first determining module 22 is further configured to:
and determining the contour of the topographic features such as pits and/or slopes 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.
In some embodiments, the second determining module 23 is specifically configured to:
determining the area of the target agricultural land according to the contour of the target agricultural land and the coordinate information of each vertex of the contour;
the second determining module 23 is further configured to:
determining the area of the landform, such as the pit and/or the slope, according to the contour of the landform, such as the pit and/or the slope, of the target agricultural land and the coordinate information of each vertex of the contour;
the second determining module 23 is further configured to:
dividing the contour into a certain number of lattices according to the determined contour;
and determining the total area of the grids according to the coordinate information of the grids.
Here, it should be noted that: the description of the area measuring device item is similar to that of the area measuring method item of the agricultural land, and the description of the beneficial effects of the method is omitted for repeated description. For technical details not disclosed in the embodiment of the area measuring device of the present invention, please refer to the description of the embodiment of the area measuring method for agricultural land of the present invention.
The invention also provides a specific embodiment to further understand the area measuring method and device, the computer equipment and the storage medium of the agricultural land.
At present, the traditional statistical mode of agricultural land area is that measurement statistics is carried out on the manual site, and is high in cost and low in efficiency.
Based on this, the area of one orchard is calculated as an example below.
As shown in fig. 5 and fig. 6, the outline of the orchard range is drawn manually on the high-definition map, the outline of the orchard range is a polygon, then the polygon is evenly divided into a certain number of small grids, and according to the calculus limit concept, when the data reaches a certain limit, the small grids can be regarded as small squares.
Referring to fig. 2, a spatial rectangular coordinate system is established, wherein on the equatorial plane, the X axis points to the meridian, the Y axis is perpendicular to the X axis on the equatorial plane, and the Z axis points to the north pole;
obtaining the longitude and latitude [ lat ] of two end points A, B of one side length of any small square1,lng1]、[lat2,lng2]Wherein the longitude and latitude of A, B are both expressed in radians;
calculating coordinates of A, B two points according to the longitude and latitude of A, B two points and a formula (1), and firstly assuming that the radius of the earth is 1:
the coordinates of point A are expressed as (cos lat)1*cos lng1,cos lat1*sin lng1,sin lat1);
The coordinates of point B are expressed as (cos lat)2*cos lng2,cos lat2*sin lng2,sin lat2);
Then, according to the formula (2), the arc length (spherical distance) between the two points of A, B is calculated as arccos (cos lat)1*cos lat2*cos(lng1-lng2)+sin lat1*sin lat2);
Finally, the area of each small grid can be calculated by applying a rectangular area formula, and the area of all the small grids is summed to form the area of a polygon, namely the area of the orchard.
Note that, the radian is: the arc length is equal to the arc of radius, and the central angle subtended by the arc is 1 radian. A perimeter, namely 2 pi radian (radian unit is abbreviated as rad, pi is circumferential rate); calculating radian according to the angle: theta/360 ═ theta ═ pi/180 (theta is an angle and pi is a circumferential ratio); calculating the angle according to the radian:
Figure BDA0003368570270000131
Figure BDA0003368570270000132
(
Figure BDA0003368570270000133
is radian and pi is circumferential ratio) (ii) a Calculating the arc length according to the radian: radian is radius; equatorial radius of the earth: 6377.830-6356.9088 +20.9212 km; polar region radius: 6356.9088 km.
It is understood that the high definition map may correspond to the map with the definition greater than the definition threshold in the above embodiment; here, the high-definition map is obtained by manually drawing the outline of the orchard range, and the sliding operation of the user on the map is received, and the sliding area where the sliding operation is performed is taken as the outline of the target agricultural land based on the sliding operation, as described in the above embodiment.
In the embodiment of the invention, the outline of the orchard is encircled on the high-definition map, the spherical polygon constructed by the outline of the orchard is divided into a plurality of small lattices according to the longitude and latitude coordinates of each vertex of the outline of the orchard, the areas of the small lattices are calculated, and finally the total area of the orchard is calculated by utilizing a limit algorithm such as calculus. Thus, the cost of manpower and material resources is saved, and the working efficiency is improved.
As shown in fig. 4, the embodiment of the present invention further provides a computer device, which includes a processor 31 and a memory 32 for storing a computer program capable of running on the processor, wherein the processor is configured to implement the area measurement method applied to the agricultural land when the computer program is run.
In some embodiments, memory 32 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 32 of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
And the processor 31 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 31. The Processor 31 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. 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 method in combination with the hardware.
In some embodiments, the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Yet another embodiment of the present invention provides a computer storage medium storing an executable program which, when executed by the processor 31, can implement the steps of the area measuring method applied to the agricultural land. For example, as one or more of the methods shown in fig. 1.
In some embodiments, the computer storage medium may include: a U-disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that: the technical schemes described in the embodiments of the present invention can be combined arbitrarily without conflict.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A method for measuring the area of agricultural land, comprising:
acquiring image information of target agricultural land;
determining coordinate information of the target agricultural land according to the image information of the target agricultural land on the map with the definition greater than the definition threshold;
and determining the area of the target agricultural land according to the coordinate information of the target agricultural land.
2. The method as claimed in claim 1, wherein the determining the coordinate information of the target agricultural land from the image information of the target agricultural land on the map with the definition greater than the definition threshold comprises:
on the map with the definition larger than the definition threshold value, according to the image information of the target agricultural land, the outline of the target agricultural land is circled;
determining longitude and latitude values of all vertexes in the contour of the target agricultural land in a longitude and latitude coordinate system;
the determining the area of the target agricultural land according to the coordinate information of the target agricultural land comprises:
and determining the area of the target agricultural land according to the longitude and latitude values of all vertexes in the contour of the target agricultural land.
3. The method of claim 2, further comprising:
determining a longitude difference between the maximum longitude value and the minimum longitude value in each vertex;
determining a latitude difference value between the maximum latitude value and the minimum latitude value in each vertex;
the determining the area of the target agricultural land according to the longitude and latitude values of each vertex in the contour of the target agricultural land comprises the following steps:
in response to that the longitude difference is smaller than a longitude difference threshold and the latitude difference is smaller than a latitude difference threshold, calculating the area of the target agricultural land according to the longitude and latitude values of each vertex in the contour of the target agricultural land and a calculation strategy of a planar polygon, wherein the calculation strategy of the planar polygon comprises the following steps: and taking the straight line connecting lines of the planes between the adjacent vertexes as the side length of the polygon to carry out the area calculation strategy.
4. The method as claimed in claim 3, wherein the determining the area of the target agricultural land according to the longitude and latitude of each vertex in the contour of the target agricultural land comprises:
in response to that the longitude difference is greater than or equal to a longitude difference threshold and/or the latitude difference is greater than or equal to a latitude difference threshold, calculating the area of the target agricultural land according to a calculation strategy of a spherical polygon according to the longitude and latitude values of each vertex in the contour of the target agricultural land, wherein the calculation strategy of the spherical polygon comprises the following steps: and taking the connection of the spherical arcs between the adjacent vertexes as the side length of the polygon to carry out the area calculation strategy.
5. The method as claimed in claim 4, wherein the calculating the area of the target agricultural land according to the latitude and longitude values of each vertex in the contour of the target agricultural land and the calculation strategy of a spherical polygon comprises:
and dividing a spherical area formed by each vertex in the contour into N grids according to the longitude and latitude values of each vertex in the contour of the target agricultural land, and determining the area of the target agricultural land according to the areas of the N grids.
6. The method according to claim 5, wherein the N lattices are rectangular lattices having equal length and width values, respectively;
determining the area of the target agricultural land according to the areas of the N grids, and the method comprises the following steps:
and calculating the total area value of the N grids according to the area of one grid to obtain the area of the target agricultural land.
7. The method as claimed in claim 2, wherein said delineating the contour of the target agricultural land from the image information of the target agricultural land comprises:
and performing graying processing on the image information of the target agricultural land according to the image information of the target agricultural land, and taking the edge of an image area with a gray value change larger than a gray value change threshold value as the outline.
8. An area measuring device for agricultural land, comprising:
the acquisition module is used for acquiring image information of the target agricultural land;
the first determination module is used for determining the coordinate information of the target agricultural land according to the image information of the target agricultural land on the map with the definition greater than the definition threshold;
and the second determination module is used for determining the area of the target agricultural land according to the coordinate information of the target agricultural land.
9. A computer device, comprising: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable when executing the computer program to implement the method of measuring the area of agricultural land according to any one of claims 1 to 7.
10. A computer storage medium characterized by storing an executable program which, when executed by a processor, implements the method for measuring the area of agricultural land according to any one of claims 1 to 7.
CN202111390490.7A 2021-11-23 2021-11-23 Method and device for measuring area of agricultural land and computer equipment Pending CN114140513A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111390490.7A CN114140513A (en) 2021-11-23 2021-11-23 Method and device for measuring area of agricultural land and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111390490.7A CN114140513A (en) 2021-11-23 2021-11-23 Method and device for measuring area of agricultural land and computer equipment

Publications (1)

Publication Number Publication Date
CN114140513A true CN114140513A (en) 2022-03-04

Family

ID=80391118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111390490.7A Pending CN114140513A (en) 2021-11-23 2021-11-23 Method and device for measuring area of agricultural land and computer equipment

Country Status (1)

Country Link
CN (1) CN114140513A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115330963A (en) * 2022-08-01 2022-11-11 厦门路桥信息股份有限公司 Display method and display device of satellite map
CN115410104A (en) * 2022-09-16 2022-11-29 湖南胜云光电科技有限公司 Data processing system for acquiring image acquisition points of aircraft
CN116664663A (en) * 2023-07-21 2023-08-29 湖北泰跃卫星技术发展股份有限公司 Method, device, computer equipment and storage medium for calculating crop area

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115330963A (en) * 2022-08-01 2022-11-11 厦门路桥信息股份有限公司 Display method and display device of satellite map
CN115410104A (en) * 2022-09-16 2022-11-29 湖南胜云光电科技有限公司 Data processing system for acquiring image acquisition points of aircraft
CN116664663A (en) * 2023-07-21 2023-08-29 湖北泰跃卫星技术发展股份有限公司 Method, device, computer equipment and storage medium for calculating crop area
CN116664663B (en) * 2023-07-21 2023-10-20 湖北泰跃卫星技术发展股份有限公司 Method, device, computer equipment and storage medium for calculating crop area

Similar Documents

Publication Publication Date Title
CN114140513A (en) Method and device for measuring area of agricultural land and computer equipment
KR101594288B1 (en) Position determination using horizontal angles
US8564596B2 (en) Techniques for density mapping
Wang et al. Urban positioning on a smartphone: Real-time shadow matching using GNSS and 3D city models
CN109905892B (en) User positioning method and device
US11226431B2 (en) Method and device for filling invalid regions of terrain elevation model data
CN111475916B (en) DEM-based radar shielding angle calculation method and system
CN109714699B (en) Positioning method and terminal equipment
CN114266871B (en) Robot, map quality evaluation method, and storage medium
CN114063098A (en) Multi-target tracking method, device, computer equipment and storage medium
CN112362059B (en) Positioning method and device for mobile carrier, computer equipment and medium
CN113902856B (en) Semantic annotation method and device, electronic equipment and storage medium
WO2021056339A1 (en) Positioning method and system, and movable platform
CN110208271A (en) Phased array antenna damage detection method, phased array antenna damage detection device and terminal
CN109489658B (en) Moving target positioning method and device and terminal equipment
CN111982152B (en) Point cloud map quantification method and device, computer equipment and storage medium
CN103813446A (en) Method and device for estimating coverage of staying area
US20210409902A1 (en) Localization by using skyline data
Saxena et al. Efficient viewshed analysis as QGIS plugin
CN111223139B (en) Target positioning method and terminal equipment
CN111669698B (en) Positioning method, device, system and storage medium
Moon et al. Fast image-matching technique robust to rotation in spherical images
CN113124816A (en) Antenna work parameter generation method and device, storage medium and computer equipment
CN109147055B (en) Augmented reality display method, device, equipment and storage medium
CN114140519A (en) Method and device for determining number of crops in agricultural land and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination