CN116664663B - Method, device, computer equipment and storage medium for calculating crop area - Google Patents

Method, device, computer equipment and storage medium for calculating crop area Download PDF

Info

Publication number
CN116664663B
CN116664663B CN202310899702.7A CN202310899702A CN116664663B CN 116664663 B CN116664663 B CN 116664663B CN 202310899702 A CN202310899702 A CN 202310899702A CN 116664663 B CN116664663 B CN 116664663B
Authority
CN
China
Prior art keywords
crop
land
grid
area
target
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.)
Active
Application number
CN202310899702.7A
Other languages
Chinese (zh)
Other versions
CN116664663A (en
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.)
Hubei Taiyue Satellite Technology Development Co ltd
Original Assignee
Hubei Taiyue Satellite Technology Development 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 Hubei Taiyue Satellite Technology Development Co ltd filed Critical Hubei Taiyue Satellite Technology Development Co ltd
Priority to CN202310899702.7A priority Critical patent/CN116664663B/en
Publication of CN116664663A publication Critical patent/CN116664663A/en
Application granted granted Critical
Publication of CN116664663B publication Critical patent/CN116664663B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30181Earth observation
    • G06T2207/30188Vegetation; Agriculture
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A40/00Adaptation technologies in agriculture, forestry, livestock or agroalimentary production
    • Y02A40/10Adaptation technologies in agriculture, forestry, livestock or agroalimentary production in agriculture

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Geometry (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Image Analysis (AREA)

Abstract

The invention provides a method, a device, computer equipment and a storage medium for calculating the area of crops, which relate to the technical field of crop data processing and comprise the following steps: acquiring a rural coverage area by using administrative area data; acquiring a soil map layer according to the rural coverage area, wherein the soil map layer comprises a plurality of lands; acquiring a grid layer according to the rural coverage area, wherein the grid layer comprises a plurality of original grids; according to the original grids covered by each land, acquiring the grid area of each land; and obtaining land crop areas according to the grid area of each land and the crop types on each land. The invention realizes the acquisition of the real planting data, and accurately and efficiently counts the area of the land crops.

Description

Method, device, computer equipment and storage medium for calculating crop area
Technical Field
The invention relates to the technical field of crop data processing, in particular to a method, a device, computer equipment and a storage medium for calculating the area of crops.
Background
At present, agriculture is taken as an important industry, and has a very important position in the production and life of people, the current urban development is accelerated, the agricultural development quality is ensured, and the rural crop statistics work is an essential link for ensuring the agricultural development quality.
In the traditional statistical method, the actual planting area of agricultural products in rural families is usually collected manually, and then the authenticity and accuracy of the data are verified by manual sampling. As can be seen, conventional rural crop area statistics are labor intensive and may not faithfully reflect the accuracy of these data.
Disclosure of Invention
The invention solves the problem that inaccurate data is caused by manually counting the area of crops.
In order to solve the above problems, the present invention provides a method for calculating an area of a crop, comprising:
acquiring a rural coverage area by using administrative area data;
acquiring a soil map layer according to the rural coverage area, wherein the soil map layer comprises a plurality of lands;
acquiring a grid layer according to the rural coverage area, wherein the grid layer comprises a plurality of original grids;
according to the original grids covered by each land, acquiring the grid area of each land;
and obtaining land crop areas according to the grid area of each land and the crop types on each land.
Optionally, obtaining land crop areas according to the grid area of each land and the crop species on each land comprises:
acquiring a plurality of crop images in the land;
if the crop image of one quarter is acquired, acquiring the corresponding crop type according to the crop image of the one quarter as an actual planted crop;
if the crop images of the two quarters are acquired and the crop types corresponding to the crop images of the two quarters are the same, the same crop type is used as the actual planted crop;
if the crop types in the two quarters are different, acquiring the actual planted crop from the crop types corresponding to the crop images in the two quarters according to a preset priority;
and acquiring the land crop area according to the actual planted crops and the grid area of the land.
Optionally, according to the original grid covered by each piece of land, obtaining a grid area of each piece of land includes:
taking any land as a target land, taking each original grid covered by the target land as one target grid, and judging whether each target grid is fully covered by the target land;
if the target grid is fully covered by the target land, taking the target grid fully covered by the target land as a first grid;
if the target grid is not fully covered by the target land, taking the target grid which is not fully covered by the target land as a second grid, enabling the second grid to generate a plurality of sub-grids, enabling at least one sub-grid to be fully covered by the target land, and taking at least one sub-grid which is fully covered by the target land as a third grid;
and acquiring the grid area corresponding to the target land according to the first grid and the third grid.
Optionally, the method for calculating the crop area further comprises:
and removing the third grid in the second grid to be used as the updated original grid for the land without acquiring the grid area.
Optionally, after the capturing a plurality of crop images in the land, the method further comprises:
if the crop images of three seasons are acquired and the crop types corresponding to the crop images of the three seasons are the same, the same crop type is used as the actual planted crop;
and if the crop images of the three seasons are acquired and the crop types corresponding to the crop images of the three seasons are different, acquiring the actual planted crop from the crop types corresponding to the crop images of the three seasons according to the preset priority.
Optionally, the acquiring an earth map layer according to the rural coverage area, the earth map layer including a plurality of lands, includes:
and acquiring the land map layer according to the land boundary, land number, area and family information of each land in the rural coverage area.
The method for calculating the crop area comprises the steps of firstly obtaining a rural coverage area by using administrative area data, dividing each land relation to establish a land map layer, then carrying out grid division on the rural coverage area to obtain a plurality of grids, and establishing a grid map layer. And then, overlapping the land map layer and the grid layer, taking the grid as a center, identifying the coverage condition between the grid and the land, acquiring the grid area of each land according to the original grid covered by each land, acquiring the land crop area according to the grid area of each land and the crop type on each land, avoiding errors caused by manual processing, and accurately acquiring the real land crop area data.
The invention also provides a device for calculating the area of crops, which comprises: the first acquisition unit is used for acquiring a rural coverage area by using administrative area data;
the second acquisition unit is used for acquiring a soil map layer according to the rural coverage area, wherein the soil map layer comprises a plurality of lands;
a third obtaining unit, configured to obtain a grid layer according to the rural coverage area, where the grid layer includes a plurality of original grids;
the fourth acquisition unit is used for acquiring the grid area of each land according to the original grid covered by each land;
a fifth acquisition unit for acquiring land crop areas from the grid area of each land and the crop species of each land, comprising:
acquiring a plurality of crop images in the land;
if the crop image of one quarter is acquired, acquiring the corresponding crop type according to the crop image of the one quarter as an actual planted crop;
if the crop images of the two quarters are acquired and the crop types corresponding to the crop images of the two quarters are the same, the same crop type is used as the actual planted crop;
if the crop types in the two quarters are different, acquiring the actual planted crop from the crop types corresponding to the crop images in the two quarters according to a preset priority;
and acquiring the land crop area according to the actual planted crops and the grid area of the land.
The device for calculating the area of the crops has the same advantages as the method for calculating the area of the crops compared with the prior art, and is not repeated here.
The invention also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, which processor when executing the computer program implements the steps of the method of calculating crop area.
The advantages of the computer device of the present invention and the method for calculating the crop area are the same as those of the prior art, and are not described in detail herein.
The invention also provides a computer readable storage medium storing a computer program which, when read and run by a processor, implements the steps of the method of calculating crop area.
The advantages of the computer readable storage medium of the present invention and the method for calculating the crop area are the same as those of the prior art, and are not described in detail herein.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a diagram showing the environment in which a method of calculating crop area according to an embodiment of the present invention is used;
FIG. 2 is a flow chart of a method for calculating crop area according to an embodiment of the invention;
FIG. 3 is an exemplary diagram of a grid and land coverage area in an embodiment of the invention;
FIG. 4 is a schematic flow chart of the method for obtaining the land crop area according to the embodiment of the invention;
FIG. 5 is a schematic view of an apparatus for calculating crop area in accordance with an embodiment of the present invention;
fig. 6 is a diagram showing an internal structure of a computer device in the embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is an application environment diagram of a method of calculating a crop area according to an embodiment of the present invention. Referring to fig. 1, the method of calculating the area of crops is applied to a system of calculating the area of crops. The system for calculating crop area includes a terminal 110 and a server 120. The terminal 110 and the server 120 are connected through a network. The terminal 110 may be a desktop terminal or a mobile terminal, and the mobile terminal may be at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The server 120 may be implemented as a stand-alone server or as a server cluster composed of a plurality of servers.
Referring to fig. 2, the present embodiment provides a method for calculating an area of a crop, including:
step 210, acquiring a rural coverage area by using administrative area data;
step 220, obtaining a land map layer according to the rural coverage area, wherein the land map layer comprises a plurality of lands;
step 230, acquiring a grid layer according to the rural coverage area, wherein the grid layer comprises a plurality of original grids;
step 240, according to the original grids covered by each land, obtaining the grid area of each land;
step 250, obtaining land crop areas according to the grid area of each land and the crop types of each land.
Specifically, a rural coverage area is obtained by using administrative area data, a soil map layer and a grid layer are obtained according to the rural coverage area, the grid layer comprises a plurality of original grids, each original grid is provided with a unique number, the divided granularity of each original grid is adjusted according to the resolution and the scale of the map, and the higher the resolution is, the lower the scale is, the higher the granularity is. And acquiring the grid area of each land according to the land and the original grid by taking overlapping as a principle. And then according to the grid area of each land and the crop types on each land, the crop types can be acquired by utilizing unmanned aerial vehicles or video capturing, so that the land crop area is acquired.
The method for calculating the crop area of the embodiment includes the steps of firstly obtaining a rural coverage area by using administrative area data, dividing each land relation to establish a land map layer, and then carrying out grid division on the rural coverage area to obtain a plurality of grids to establish a grid map layer. And then, overlapping the land map layer and the grid layer, taking the grid as a center, identifying the coverage condition between the grid and the land, acquiring the grid area of each land according to the original grid covered by each land, acquiring the land crop area according to the grid area of each land and the crop type on each land, avoiding errors caused by manual processing, and accurately acquiring the real land crop area data.
In the embodiment of the invention, any land is taken as a target land, each original grid covered by the target land is taken as one target grid, and whether each target grid is fully covered by the target land is judged;
if the target grid is fully covered by the target land, taking the target grid fully covered by the target land as a first grid;
if the target grid is not fully covered by the target land, taking the target grid which is not fully covered by the target land as a second grid, enabling the second grid to generate a plurality of sub-grids, enabling at least one sub-grid to be fully covered by the target land, and taking at least one sub-grid which is fully covered by the target land as a third grid;
and acquiring the grid area corresponding to the target land according to the first grid and the third grid.
Specifically, the coverage areas of the target land and the target grids are established, and whether each target grid is fully covered by the target land is judged. If the target grid is fully covered by the target land, taking the target grid as a first grid; and if the target grid is not fully covered by the target land, taking the target grid which is not fully covered by the target land as a second grid. And dividing the second grid according to a dividing method to generate a plurality of sub-grids, enabling at least one sub-grid to be fully covered by the target land, and taking the at least one sub-grid fully covered by the target land as a third grid. Meanwhile, as the segmentation method has calculation errors, a plurality of sub-grids are checked and adjusted according to the check result, if the sum of the areas of the plurality of sub-grids is larger than the second grid, the area of the maximum segmentation grid is reduced, and the reduction value is equal to the difference value between the sum of the areas of the plurality of sub-grids and the area of the second grid; and if the sum of the areas of the plurality of sub-grids is smaller than or equal to the second grid, increasing the area of the maximum division grid, wherein the increase value is equal to the difference value of the sum of the areas of the second grid and the plurality of sub-grids. And acquiring the grid area of the target land corresponding to the target land according to the first grid and the third grid.
In some more specific embodiments, as shown in fig. 3, fig. 3 is an exemplary diagram of a grid and a land coverage area, the grid layer is twenty-four grids of equal size, numbered sequentially from grid 1 to grid 24, respectively, and the land map layer is eight lands divided by land boundaries, numbered sequentially from land a to land H, respectively. Grid 9, grid 10 and grid 14 are not divided by the boundaries of the land, so grid 9 and grid 10 act as the first grid of land a and grid 14 acts as the first grid of land B. Grid 1 is divided into two sub-grids by the boundary of land F and land G, and the two sub-grids respectively correspond to land F and land G to obtain respective third grids of each land. Grid 8 is divided into four sub-grids by land number a, land B, land F and land G, so that the four sub-grids respectively correspond to land a, land B, land F and land G to obtain respective third grids for each land. And counting the areas of the first grid and the third grid corresponding to each land to obtain the area of each land. The coverage area results of the grids 1 to 12 with the land are shown in table 1:
TABLE 1
Grid numbering Land numbering Whether or not to fully cover Grid numbering Land numbering Whether or not to fully cover
1 F Whether or not 6 E Whether or not
1 G Whether or not 6 D Whether or not
2 F Whether or not 7 G Whether or not
2 G Whether or not 7 H Whether or not
3 F Whether or not 8 F Whether or not
3 A Whether or not 8 G Whether or not
4 A Whether or not 8 B Whether or not
4 F Whether or not 8 A Is that
4 D Whether or not 9 A Is that
4 E Whether or not 10 A Whether or not
5 D Whether or not 11 D Whether or not
5 E Whether or not 11 A Whether or not
6 E Whether or not 12 D Whether or not
According to the method for calculating the crop area, whether each target grid is fully covered by the target land or not is judged according to the target land and the target grids; and acquiring a first grid and a third grid according to whether the target grid is fully covered by the target land, and acquiring the grid area of the target land corresponding to the target land according to the first grid and the third grid. And correspondingly acquiring the grid area of the target land through the target land and the target network, faithfully feeding back the grid area of the target land, and counting the real land area data.
In the embodiment of the invention, after the third grid in the second grid is removed, the third grid is used as the updated original grid for the land which does not acquire the grid area.
The method for calculating the crop area of the embodiment obtains the grid area of the rest land by eliminating the third grid in the second grid as the updated original grid, thereby avoiding data omission.
In the embodiment of the invention, a plurality of crop images in the land are acquired;
respectively acquiring the crop images of at least one quarter and at most three quarters, judging the crop types of the crop images of the at least one quarter and at most three quarters by utilizing image recognition, and acquiring actual planted crops according to the crop types;
and acquiring the land crop area according to the actual planted crops and the grid area of the land.
Specifically, the unmanned plane or video monitoring is utilized to acquire the crop images of at least one quarter and at most three quarters in the longitude and latitude range of the land, and the crop types of the crop images of at least one quarter and at most three quarters are judged by utilizing image recognition, wherein the crop types comprise an implicit assumption that only one crop type is planted in each land. According to the crop types, the actual crop actually planted is obtained. And (3) relating the land planting of the actually planted crops with the area of the land to obtain the area of the land crops.
According to the method for calculating the area of the crops, the unmanned aerial vehicle or the video monitoring is used for acquiring the crop images of a plurality of seasons in the longitude and latitude range of the land, judging the crop types of the crop images, obtaining actual crops, associating the actual planted crops with the area of the land to obtain the area of the land crops, and the visual recognition technology is used for recognizing real planting data of each land.
In the embodiment of the present invention, if the crop image of one quarter is obtained, the corresponding crop type is obtained according to the crop image of the one quarter, and is used as the actual planted crop;
if the crop images of the two quarters are acquired and the crop types corresponding to the crop images of the two quarters are the same, the same crop type is used as the actual planted crop;
and if the crop types in the two quarters are different, acquiring the actual planted crops from the crop types corresponding to the crop images in the two quarters according to a preset priority.
In the embodiment of the present invention, if the crop images of three seasons are obtained and the crop types corresponding to the crop images of the three seasons are the same, the same crop type is used as the actual planted crop;
and if the crop images of the three seasons are acquired and the crop types corresponding to the crop images of the three seasons are different, acquiring the actual planted crop from the crop types corresponding to the crop images of the three seasons according to the preset priority.
Specifically, if the crop types corresponding to the crop images of the three quarters are the same, the crop types are actual planted crops. If the crop types corresponding to the crop images of the three seasons are different, judging the actually planted crops according to the weight priority of the shooting time of the crop images shot by the three seasons. The earlier the time of shooting the crop image is, the lower the weight of the crop type judgment corresponding to the crop image is, the later the time of shooting the crop image is, and the higher the weight of the crop type judgment corresponding to the crop image is.
In some preferred embodiments, if the crop types corresponding to the crop images in two quarters are different, manual judgment can be introduced for marking.
According to the method for calculating the crop area, the crop images in three seasons are obtained, the types of the crop species corresponding to the crop images in the three seasons are judged, the preset priority is introduced to judge the actually planted crops, the accuracy of judging the actually planted crops is ensured, and the actual planting condition of the land crops is obtained.
In the embodiment of the invention, the land map layer is obtained according to the land boundary, land number, area and family information of each land in the rural coverage area.
Specifically, a GIS map is marked with a land boundary, and according to a land contract of each household, the land boundary, the land number, the area and the household information of each land are marked, so that a land map layer is obtained. The family information comprises contractor information and family numbers, and the connection between the family and the land is established.
The method for calculating the crop area of the embodiment numbers the land by establishing the land map layer, accurately establishes the relationship between the land and the family, and feeds back the real situation of each family of the rural land.
In some specific embodiments, as shown in fig. 4, an image of a crop of the area is acquired by unmanned aerial vehicle or video surveillance, respectively in spring, autumn and summer, and before no agricultural product is harvested, the image being named: grid number + land number + summer + shooting time. And identifying whether the types of the crops planted in the crop images are the same, if so, acquiring the actual planted crops in the area, if not, judging by adopting the weight priority, determining the actual planted crops in the area, and acquiring the land crop area according to the actual planted crops.
The method for calculating the crop area comprises the steps of firstly obtaining a rural coverage area by using administrative area data, dividing each land relation to establish a land map layer, then carrying out grid division on the rural coverage area to obtain a plurality of grids, and establishing a grid map layer. And then, overlapping the land map layer and the grid layer, taking the grid as a center, identifying the coverage condition between the grid and the land, acquiring the grid area of each land according to the original grid covered by each land, acquiring the land crop area according to the grid area of each land and the crop type on each land, avoiding errors caused by manual processing, and accurately acquiring the real land crop area data.
Corresponding to the method for calculating the area of the crops, the embodiment of the invention also provides a device for calculating the area of the crops. Fig. 5 is a schematic view of calculating an area of a crop according to an embodiment of the present invention, and as shown in fig. 5, an apparatus for calculating an area of a crop includes:
a first acquiring unit 510, configured to acquire a rural coverage area using administrative area data;
a second obtaining unit 520, configured to obtain a land map layer according to the rural coverage area, where the land map layer includes a plurality of lands;
a third obtaining unit 530, configured to obtain a grid layer according to the rural coverage area, where the grid layer includes a plurality of original grids;
a fourth obtaining unit 540, configured to obtain a grid area of each land according to the original grid covered by each land;
a fifth acquisition unit 550 for acquiring land crop areas according to the grid area of each land and the crop species on each land.
In the embodiment of the present invention, the fourth obtaining unit 540 is further configured to determine whether each of the target grids is fully covered by the target land, where any one of the lands is used as the target land, and each of the original grids covered by the target land is used as one of the target grids;
if the target grid is fully covered by the target land, taking the target grid fully covered by the target land as a first grid;
if the target grid is not fully covered by the target land, taking the target grid which is not fully covered by the target land as a second grid, enabling the second grid to generate a plurality of sub-grids, enabling at least one sub-grid to be fully covered by the target land, and taking at least one sub-grid which is fully covered by the target land as a third grid;
and acquiring the grid area corresponding to the target land according to the first grid and the third grid.
The device further comprises a rejecting unit, wherein the rejecting unit is used for rejecting the third grid in the second grid, and then serving as the updated original grid for the land without acquiring the grid area.
The fifth obtaining unit 550 further includes obtaining a plurality of crop images in the land;
respectively acquiring the crop images of at least one quarter and at most three quarters, judging the crop types of the crop images of the at least one quarter and at most three quarters by utilizing image recognition, and acquiring actual planted crops according to the crop types;
and acquiring the land crop area according to the actual planted crops and the grid area of the land.
The fifth obtaining unit 550 further obtains the corresponding crop type as the actual planted crop according to the crop image of one quarter if the crop image of one quarter is obtained;
if the crop images of the two quarters are acquired and the crop types corresponding to the crop images of the two quarters are the same, the same crop type is used as the actual planted crop;
and if the crop types in the two quarters are different, acquiring the actual planted crops from the crop types corresponding to the crop images in the two quarters according to a preset priority.
The fifth obtaining unit 550 further includes, if the crop images of three seasons are obtained and the crop types corresponding to the crop images of the three seasons are the same, taking the same crop type as the actually planted crop;
and if the crop images of the three seasons are acquired and the crop types corresponding to the crop images of the three seasons are different, acquiring the actual planted crop from the crop types corresponding to the crop images of the three seasons according to the preset priority.
The second obtaining unit 520 further obtains the land map layer according to a land boundary, a land number, an area, and family information of each of the lands in the rural coverage area.
The device for calculating the area of the crops has the same advantages as the method for calculating the area of the crops compared with the prior art, and is not repeated here.
FIG. 6 illustrates an internal block diagram of a computer device in one embodiment. The computer device may be specifically the terminal 110 (or the server 120) in fig. 1. As shown in fig. 6, the computer device includes a processor, a memory, a network interface, an input device, and a display screen connected by a system bus. The memory includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program which, when executed by a processor, causes the processor to implement a method of calculating crop area. The internal memory may also have stored therein a computer program which, when executed by the processor, causes the processor to perform a method of calculating crop area. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 6 is merely a block diagram of some of the structures associated with the present invention and is not limiting of the computer device to which the present invention may be applied, and that a particular computer device may include more or fewer components than those shown, or may combine certain components, or have a different arrangement of components.
Another embodiment of the present invention provides a computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: acquiring a rural coverage area by using administrative area data; acquiring a soil map layer according to the rural coverage area, wherein the soil map layer comprises a plurality of lands; acquiring a grid layer according to the rural coverage area, wherein the grid layer comprises a plurality of original grids; according to the original grids covered by each land, acquiring the grid area of each land; and obtaining land crop areas according to the grid area of each land and the crop types on each land.
In another embodiment of the present invention, the processor, when executing the computer program, further implements the steps of the method for calculating the crop area described above.
The advantages of the computer device of the present invention and the method for calculating the crop area are the same as those of the prior art, and are not described in detail herein.
Another embodiment of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of: acquiring a rural coverage area by using administrative area data; acquiring a soil map layer according to the rural coverage area, wherein the soil map layer comprises a plurality of lands; acquiring a grid layer according to the rural coverage area, wherein the grid layer comprises a plurality of original grids; according to the original grids covered by each land, acquiring the grid area of each land; and obtaining land crop areas according to the grid area of each land and the crop types on each land.
In another embodiment of the present invention, the computer program when executed by the processor further implements the steps of the method for calculating crop area described above.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The advantages of the computer readable storage medium of the present invention and the method for calculating the crop area are the same as those of the prior art, and are not described in detail herein.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a specific embodiment of the invention to enable those skilled in the art to understand or practice the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (7)

1. A method of calculating crop area comprising:
acquiring a rural coverage area by using administrative area data;
acquiring a soil map layer according to the rural coverage area, wherein the soil map layer comprises a plurality of lands;
acquiring a grid layer according to the rural coverage area, wherein the grid layer comprises a plurality of original grids;
according to the original grid covered by each land, obtaining the grid area of each land, including:
taking any land as a target land, taking each original grid covered by the target land as a target grid, and judging whether each target grid is fully covered by the target land;
if the target grid is fully covered by the target land, taking the target grid fully covered by the target land as a first grid;
if the target grid is not fully covered by the target land, taking the target grid which is not fully covered by the target land as a second grid, enabling the second grid to generate a plurality of sub-grids, enabling at least one sub-grid to be fully covered by the target land, and taking at least one sub-grid which is fully covered by the target land as a third grid;
acquiring the grid area corresponding to the target land according to the first grid and the third grid;
obtaining land crop areas according to the grid area of each land and the crop species on each land, comprising:
acquiring a plurality of crop images in the lands, wherein each land is only planted with one crop species;
if the crop image of one quarter is acquired, acquiring the corresponding crop type according to the crop image of the one quarter as an actual planted crop;
if the crop images of the two quarters are acquired and the crop types corresponding to the crop images of the two quarters are the same, the same crop type is used as the actual planted crop;
if the crop types in the two quarters are different, acquiring the actual planted crop from the crop types corresponding to the crop images in the two quarters according to a preset priority;
and acquiring the land crop area according to the actual planted crops and the grid area of the land.
2. The method of calculating an area of a crop of claim 1, wherein the method of calculating an area of a crop further comprises:
and removing the third grid in the second grid to be used as the updated original grid for the land without acquiring the grid area.
3. The method of calculating a crop area according to claim 1, further comprising, after said acquiring a plurality of crop images within said land:
if the crop images of three seasons are acquired and the crop types corresponding to the crop images of the three seasons are the same, the same crop type is used as the actual planted crop;
and if the crop images of the three seasons are acquired and the crop types corresponding to the crop images of the three seasons are different, acquiring the actual planted crop from the crop types corresponding to the crop images of the three seasons according to the preset priority.
4. The method of calculating crop area of claim 1, wherein the obtaining a land map layer from the rural coverage area, the land map layer comprising a plurality of lands, comprises:
and acquiring the land map layer according to the land boundary, land number, area and family information of each land in the rural coverage area.
5. An apparatus for generating a calculated crop area, comprising:
the first acquisition unit is used for acquiring a rural coverage area by using administrative area data;
the second acquisition unit is used for acquiring a soil map layer according to the rural coverage area, wherein the soil map layer comprises a plurality of lands;
a third obtaining unit, configured to obtain a grid layer according to the rural coverage area, where the grid layer includes a plurality of original grids;
a fourth obtaining unit, configured to obtain a grid area of each land according to the original grid covered by each land, including:
taking any land as a target land, taking each original grid covered by the target land as a target grid, and judging whether each target grid is fully covered by the target land;
if the target grid is fully covered by the target land, taking the target grid fully covered by the target land as a first grid;
if the target grid is not fully covered by the target land, taking the target grid which is not fully covered by the target land as a second grid, enabling the second grid to generate a plurality of sub-grids, enabling at least one sub-grid to be fully covered by the target land, and taking at least one sub-grid which is fully covered by the target land as a third grid;
acquiring the grid area corresponding to the target land according to the first grid and the third grid;
a fifth acquisition unit for acquiring land crop areas from the grid area of each land and the crop species of each land, comprising:
acquiring a plurality of crop images in the lands, wherein each land is only planted with one crop species;
if the crop image of one quarter is acquired, acquiring the corresponding crop type according to the crop image of the one quarter as an actual planted crop;
if the crop images of the two quarters are acquired and the crop types corresponding to the crop images of the two quarters are the same, the same crop type is used as the actual planted crop;
if the crop types in the two quarters are different, acquiring the actual planted crop from the crop types corresponding to the crop images in the two quarters according to a preset priority;
and acquiring the land crop area according to the actual planted crops and the grid area of the land.
6. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method of calculating crop area as claimed in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that it stores a computer program which, when read and run by a processor, implements the method of calculating crop area according to any of claims 1 to 4.
CN202310899702.7A 2023-07-21 2023-07-21 Method, device, computer equipment and storage medium for calculating crop area Active CN116664663B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310899702.7A CN116664663B (en) 2023-07-21 2023-07-21 Method, device, computer equipment and storage medium for calculating crop area

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310899702.7A CN116664663B (en) 2023-07-21 2023-07-21 Method, device, computer equipment and storage medium for calculating crop area

Publications (2)

Publication Number Publication Date
CN116664663A CN116664663A (en) 2023-08-29
CN116664663B true CN116664663B (en) 2023-10-20

Family

ID=87709990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310899702.7A Active CN116664663B (en) 2023-07-21 2023-07-21 Method, device, computer equipment and storage medium for calculating crop area

Country Status (1)

Country Link
CN (1) CN116664663B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101349561A (en) * 2007-07-17 2009-01-21 农业部规划设计研究院 Vehicle mounted investigation method and system of large scale crops planting area
CN103033150A (en) * 2011-10-09 2013-04-10 黄青 Method for quickly extracting main crop planting area through utilization of moderate resolution imaging spectroradiometer (MODIS) data
CN107084688A (en) * 2017-05-06 2017-08-22 湖北大学 A kind of crop area Dynamic Change by Remote Sensing monitoring method based on plot yardstick
CN107103305A (en) * 2017-05-03 2017-08-29 西安科技大学 High standard farmland recognition methods based on high-resolution remote sensing image
CN108151679A (en) * 2017-12-29 2018-06-12 深圳市智物联网络有限公司 A kind of method and system of Land area measure
CN110175931A (en) * 2019-05-10 2019-08-27 北京师范大学 A kind of method of a wide range of rapidly extracting crop acreage and phenology information
CN111143500A (en) * 2019-12-27 2020-05-12 中国联合网络通信集团有限公司 Visualized area calculation method, terminal, control device and storage medium
KR20210063016A (en) * 2019-11-22 2021-06-01 주식회사 공간정보 method for extracting corp cultivation area and program thereof
CN113989362A (en) * 2021-10-28 2022-01-28 江苏天汇空间信息研究院有限公司 Method for rapidly and effectively judging area of crops
CN114140513A (en) * 2021-11-23 2022-03-04 江西裕丰智能农业科技有限公司 Method and device for measuring area of agricultural land and computer equipment
CN114494513A (en) * 2021-12-31 2022-05-13 深圳思凯微电子有限公司 Agricultural machinery working area obtaining method and device, terminal equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102017120050A1 (en) * 2017-08-31 2019-02-28 Krones Ag Method for planning packaging plants
JP7163881B2 (en) * 2019-08-02 2022-11-01 トヨタ自動車株式会社 Crop Characteristics Prediction System, Crop Characteristics Prediction Method, and Crop Characteristics Prediction Program
CN113902185B (en) * 2021-09-30 2023-10-31 北京百度网讯科技有限公司 Determination method and device for regional land property, electronic equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101349561A (en) * 2007-07-17 2009-01-21 农业部规划设计研究院 Vehicle mounted investigation method and system of large scale crops planting area
CN103033150A (en) * 2011-10-09 2013-04-10 黄青 Method for quickly extracting main crop planting area through utilization of moderate resolution imaging spectroradiometer (MODIS) data
CN107103305A (en) * 2017-05-03 2017-08-29 西安科技大学 High standard farmland recognition methods based on high-resolution remote sensing image
CN107084688A (en) * 2017-05-06 2017-08-22 湖北大学 A kind of crop area Dynamic Change by Remote Sensing monitoring method based on plot yardstick
CN108151679A (en) * 2017-12-29 2018-06-12 深圳市智物联网络有限公司 A kind of method and system of Land area measure
CN110175931A (en) * 2019-05-10 2019-08-27 北京师范大学 A kind of method of a wide range of rapidly extracting crop acreage and phenology information
KR20210063016A (en) * 2019-11-22 2021-06-01 주식회사 공간정보 method for extracting corp cultivation area and program thereof
CN111143500A (en) * 2019-12-27 2020-05-12 中国联合网络通信集团有限公司 Visualized area calculation method, terminal, control device and storage medium
CN113989362A (en) * 2021-10-28 2022-01-28 江苏天汇空间信息研究院有限公司 Method for rapidly and effectively judging area of crops
CN114140513A (en) * 2021-11-23 2022-03-04 江西裕丰智能农业科技有限公司 Method and device for measuring area of agricultural land and computer equipment
CN114494513A (en) * 2021-12-31 2022-05-13 深圳思凯微电子有限公司 Agricultural machinery working area obtaining method and device, terminal equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Use of high resolution imagery and ground survey data for estimating crop areas in Mengcheng county, China;H Kerdiles;《IOP Conference Series: Earth and Environmental Science》;全文 *
基于无人机遥感影像的水稻种植信息提取;李明 等;《农业工程学报》;全文 *
基于深度学习和图像融合诊断甲状腺结节良恶性的研究;陈飞 等;《广东医学》;全文 *

Also Published As

Publication number Publication date
CN116664663A (en) 2023-08-29

Similar Documents

Publication Publication Date Title
US10015360B1 (en) Image-based field boundary detection and identification
CN111656387B (en) Crop boundary detection in images
Gueta et al. Quantifying the value of user-level data cleaning for big data: A case study using mammal distribution models
Fletcher et al. Integrated models that unite local and regional data reveal larger-scale environmental relationships and improve predictions of species distributions
CN109508881B (en) Sea island region classification and ecological resource value evaluation method
Betzek et al. Computational routines for the automatic selection of the best parameters used by interpolation methods to create thematic maps
CN110363176B (en) Image analysis method and device
CN111489387B (en) Remote sensing image building area calculation method
Byrne et al. Estimating badger social-group abundance in the Republic of Ireland using cross-validated species distribution modelling
CN109766742B (en) Corn seed crack identification method, device, system, equipment and storage medium
Johnson et al. Using occupancy-based camera-trap surveys to assess the Critically Endangered primate Macaca nigra across its range in North Sulawesi, Indonesia
CN111369152A (en) Agricultural land value evaluation optimization method, device and equipment and readable storage medium
CN113688172B (en) Landslide susceptibility evaluation model training method, landslide susceptibility evaluation device and medium
CN114820532A (en) Locust area analysis method and device
CN116664663B (en) Method, device, computer equipment and storage medium for calculating crop area
Webb et al. Developing spatially‐explicit weighting factors to account for bias associated with missed GPS fixes in resource selection studies
CN112241981A (en) Method and device for verifying precision of secondary measurement data of crop planting area
Ruiz-Lendínez et al. Method for an automatic alignment of imagery and vector data applied to cadastral information in Poland
CN111611335A (en) Method, system and storage medium for evaluating applicability of homeland space
CN113240340B (en) Soybean planting area analysis method, device, equipment and medium based on fuzzy classification
US20230102406A1 (en) System and method for automated forest inventory mapping
CN114154680A (en) Urban ground collapse prediction method and device and electronic equipment
CN113989632A (en) Bridge detection method and device for remote sensing image, electronic equipment and storage medium
CN112418043A (en) Corn weed occlusion determination method and device, robot, equipment and storage medium
CN116612474B (en) Object detection method, device, computer equipment and computer readable storage medium

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
GR01 Patent grant
GR01 Patent grant