Data processing method and device suitable for intelligent farmland protection
By collecting and verifying cultivated land data in the central area of the Tianchangtuan, the problem of inaccurate data in remote sensing technology is solved, the accuracy and authenticity of cultivated land data is achieved, and arable land resources are protected.
Patent Information
- Application Number
- CN202210888458.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-27
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2042-07-27
AI Technical Summary
When existing remote sensing technologies collect arable land data, they are susceptible to external factors such as weather, and it is difficult to accurately identify crops, resulting in inaccurate data.
By obtaining the distribution map of each plot, Tianchangtou collects and fills the normal and abnormal cultivated land data, uses Tianchangtou camera to collect verification data in the central area, generate verification data and send it to the monitoring end.
Improve the accuracy and authenticity of arable land data, promptly discover arable land problems, reduce arable land damage, and protect arable land resources.
Smart Images

Figure CN115271435B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to data processing technology, and in particular to a data processing method and device suitable for intelligent farmland protection. Background Art
[0002] In the past decade or so, the amount of arable land that has been reduced due to non-agricultural construction in my country has accounted for about 40% of the total reduction in arable land area. The large-scale reduction in arable land area has directly threatened my country's agricultural development.
[0003] At present, remote sensing technology is mostly used to collect data on farmland damage. However, when using remote sensing technology to collect data, it is easily affected by external factors such as weather. In addition, since some crops are very similar in appearance, it is difficult to directly identify them, resulting in inaccurate collected data.
[0004] Therefore, how to make the collected cultivated land data more accurate has become a problem that needs to be solved. Summary of the Invention
[0005] The embodiments of the present invention provide a data processing method and device suitable for intelligent protection of cultivated land, which can more accurately collect various conditions of cultivated land, take corresponding countermeasures in a timely manner for situations that damage cultivated land, and protect valuable cultivated land resources.
[0006] A first aspect of an embodiment of the present invention provides a data processing method applicable to intelligent farmland protection, comprising:
[0007] Obtaining a first plot distribution map of each plot, and sending the first plot distribution map to a farm manager who oversees the plot;
[0008] Acquire positioning information of the farm manager terminal, and fill the normal cultivated land data and abnormal cultivated land data collected by the farm manager terminal into a first block map corresponding to the first plot distribution map based on the positioning information, and update the first plot distribution map to a second plot distribution map;
[0009] Acquire at least one central area of the first block diagram, generate call information for calling the camera interface of the field manager terminal based on the positioning information and the central area, and receive verification data collected by the field manager terminal according to a preset action in response to the call information;
[0010] The second plot distribution map and the verification data are sent to the monitoring terminal that monitors the field manager terminal.
[0011] Optionally, in a possible implementation of the first aspect, obtaining at least one central area of the first block map includes:
[0012] Acquire area information of the first block diagram, and determine the number of initial regions according to the area information and preset area information;
[0013] Rounding the initial number of regions to obtain a number of regions, and dividing the first block image into at least one region to be collected according to the number of regions;
[0014] Determine the central area of each of the areas to be collected.
[0015] Optionally, in a possible implementation manner of the first aspect, after dividing the first block image into at least one area to be collected according to the number of areas, the method further includes:
[0016] If the number of crop types in the area to be collected is greater than 1, receiving operation data of the user on the field manager terminal based on the positioning information;
[0017] generating a crop demarcation line corresponding to the area to be collected according to the operation data;
[0018] The original area to be collected is divided into a plurality of areas to be collected corresponding to the number of crop types according to the crop dividing lines.
[0019] Optionally, in a possible implementation of the first aspect, determining the central area of each of the to-be-collected areas includes:
[0020] If the area to be collected is a rectangle, obtain the intersection of the diagonals of the collection area, and determine the center point according to the intersection of the diagonals;
[0021] The central area of each of the areas to be collected is determined according to the central point and the preset radius.
[0022] Optionally, in a possible implementation of the first aspect, determining the central area of each of the to-be-collected areas includes:
[0023] If the area to be collected is not a rectangle, generating an outer rectangular frame corresponding to the area to be collected;
[0024] Obtaining the diagonal intersection of the outer rectangular frame as the initial center point, and generating mutually perpendicular vertical dividing lines and horizontal dividing lines according to the diagonal intersection;
[0025] Obtaining a blank area within the outer rectangular frame, and processing the blank area according to the vertical dividing line and the horizontal dividing line to obtain an upper blank area, a lower blank area, a left blank area, and a right blank area;
[0026] offsetting the initial center point according to the upper blank area, the lower blank area, the left blank area, and the right blank area to obtain a center point;
[0027] The central area of each of the areas to be collected is determined according to the central point and the preset radius.
[0028] Optionally, in a possible implementation of the first aspect, offsetting the initial center point according to the upper blank area, the lower blank area, the left blank area, and the right blank area to obtain the center point includes:
[0029] Obtaining an upper blank area of the upper blank area, a lower blank area of the lower blank area, a left blank area of the left blank area, and a right blank area of the right blank area; and generating corresponding downward offset coefficients, upward offset coefficients, rightward offset coefficients, and leftward offset coefficients according to the upper blank area, the lower blank area, the left blank area, the right blank area, and a preset area;
[0030] Generate corresponding downward offset distance, upward offset distance, rightward offset distance and leftward offset distance respectively according to the downward offset coefficient, upward offset coefficient, rightward offset coefficient and leftward offset coefficient and the preset distance;
[0031] The initial center point is offset based on the downward offset distance, the upward offset distance, the rightward offset distance, and the leftward offset distance to obtain a center point.
[0032] Optionally, in a possible implementation of the first aspect, offsetting the initial center point based on the downward offset distance, the upward offset distance, the rightward offset distance, and the leftward offset distance to obtain the center point includes:
[0033] The center point is calculated by the following formula,
[0034]
[0035] in, is the upward offset distance, is the blank area below, is the preset area, is the weight value of the upward shift coefficient, For the preset distance, is the downward offset distance, is the upper blank area, is the weight value of the downward shift coefficient, is the left offset distance, is the right blank area, is the weight value of the left shift coefficient, is the rightward offset distance, is the left blank area, is the weight value of the rightward shift coefficient, is the horizontal coordinate of the center point, is the horizontal coordinate of the initial center point, is the vertical coordinate of the center point, is the vertical coordinate of the initial center point.
[0036] Optionally, in a possible implementation of the first aspect, filling the normal cultivated land data and abnormal cultivated land data collected by the field manager terminal into a first block map corresponding to the first plot distribution map based on the positioning information includes:
[0037] Receiving normal cultivated land data input by the farm manager;
[0038] Filling the first block image with corresponding crop images in a preset farmland database according to the positioning information and the normal farmland data;
[0039] receiving the abnormal cultivated land demarcation line input by the field manager;
[0040] generating a violation block map corresponding to the first block map according to the positioning information and the abnormal cultivated land demarcation line, and adjusting pixel values in the violation block map to a preset pixel interval;
[0041] Receiving the violation information input by the farm manager, and generating abnormal cultivated land data according to the violation information;
[0042] Fill the abnormal cultivated land data into the violation block map.
[0043] Optionally, in a possible implementation of the first aspect, generating call information for calling the camera interface of the field manager terminal based on the positioning information and the central area, and receiving verification data collected by the field manager terminal according to a preset action in response to the call information, includes:
[0044] If the positioning information is within the central area, obtaining the calling information of the camera interface of the field manager end;
[0045] In response to the call information, randomly select a preset action from a plurality of preset actions, and send the preset action to the field manager for display, wherein the preset action includes rotating one circle clockwise or one circle counterclockwise;
[0046] Receive the verification data collected by the user controlling the camera of the field manager according to the preset action.
[0047] A second aspect of an embodiment of the present invention provides a data processing device suitable for intelligent farmland protection, including:
[0048] A distribution module, configured to obtain a first plot distribution map of each plot and send the first plot distribution map to a farm manager who supervises the plot;
[0049] a filling module, configured to obtain positioning information of the field manager terminal, fill the normal cultivated land data and abnormal cultivated land data collected by the field manager terminal into the first block map corresponding to the first plot distribution map based on the positioning information, and update the first plot distribution map to a second plot distribution map;
[0050] a verification module, configured to obtain at least one central area of the first block diagram, generate call information for calling the camera interface of the farmer terminal based on the positioning information and the central area, and receive verification data collected by the farmer terminal according to a preset action in response to the call information;
[0051] The monitoring module is used to send the second plot distribution map and the verification data to the monitoring terminal that monitors the field manager terminal.
[0052] The beneficial effects of the present invention are as follows:
[0053] 1. The present invention ensures the accuracy and authenticity of cultivated land data by filling in the real-time status of cultivated land and verifying the acquired cultivated land data based on verification data. This method can relatively accurately record the cultivated land conditions of each plot and promptly identify various cultivated land problems, allowing managers to take appropriate measures to address them. This helps reduce the occurrence of cultivated land damage, protect precious cultivated land resources, and promote agricultural development.
[0054] 2. The present invention first captures the center of each area to be collected, then enables the receiving user to control the camera according to preset actions within the center area to collect verification data, thereby ensuring the accuracy and authenticity of the collected data. This method can prevent users from standing at the edge of the plot and photographing other areas, ensuring the authenticity and accuracy of the data collected by the receiving user, and preventing the receiving user from tampering with the data without authorization, resulting in farmland problems not being discovered in a timely manner. It also allows for more comprehensive collection of verification data, avoiding the situation where some areas are not collected.
[0055] 3. The present invention records various farmland conditions in real time by filling normal farmland data and abnormal farmland data into the plot distribution map where data needs to be collected, and specifically marking the abnormal farmland data. This method can effectively avoid the situation where some farmland conditions are not recorded. Moreover, since the data is collected at close range, it can also effectively reduce the problem of inaccurate recorded data compared to remote sensing data, thereby improving the accuracy of the recorded farmland data. This is conducive to the subsequent implementation of targeted treatment measures for various farmland conditions and reducing the occurrence of farmland damage. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of the present invention;
[0057] Figure 2 This is a flow chart of a data processing method applicable to intelligent farmland protection provided by an embodiment of the present invention;
[0058] Figure 3 is a schematic diagram for showing horizontal dividing lines and vertical dividing lines provided by an embodiment of the present invention;
[0059] Figure 4 This is a schematic structural diagram of a device suitable for intelligent farmland protection provided by an embodiment of the present invention;
[0060] Figure 5 The figure is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0061] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0062] The terms "first," "second," "third," "fourth," and so forth (if any) in the description and claims of the present invention and in the accompanying drawings are used to distinguish similar items and are not necessarily used to describe a particular order or sequential sequence. It should be understood that the terms used in this manner are interchangeable where appropriate, such that the embodiments of the present invention described herein can be practiced in sequences other than those illustrated or described herein.
[0063] It should be understood that in various embodiments of the present invention, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0064] It should be understood that in the present invention, "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatuses.
[0065] It should be understood that in the present invention, "multiple" refers to two or more. "And / or" is only a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "Contains A, B and C", "Contains A, B, C" means that A, B, and C are all included, "Contains A, B or C" means that one of A, B, and C is included, and "Contains A, B and / or C" means that any one, any two, or any three of A, B, and C are included.
[0066] It should be understood that, in the present invention, "B corresponding to A," "B corresponding to A," "A corresponds to B," or "B corresponds to A" means that B is associated with A and B can be determined based on A. Determining B based on A does not mean determining B based solely on A; B can also be determined based on A and / or other information. A and B match when the similarity between A and B is greater than or equal to a preset threshold.
[0067] Depending on the context, "if" as used herein may be interpreted as "when" or "when" or "in response to determining" or "in response to detecting."
[0068] The following specific embodiments are used to describe the technical solution of the present invention in detail. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0069] The inventive concept of the present invention is as follows:
[0070] In order to make up for the problem of inaccurate cultivated land data collected by remote sensing technology in the existing technology, the present invention first collects the distribution of each plot to find out the normal cultivated land data and abnormal cultivated land data in each plot, and then delineates multiple designated verification areas at the center of each plot. The collected cultivated land data is verified by a specific verification method within the designated verification area. For example, the verification method can be to receive the user to hold the mobile phone and rotate it clockwise for one circle in the verification area to take a picture, thereby ensuring the accuracy of the collected cultivated land data.
[0071] See also Figure 1 , is a schematic diagram of an application scenario provided by an embodiment of the present invention. In the figure, both the farm manager terminal and the monitoring terminal are connected to the server. There can be multiple farm manager terminals. For example, if a village has 10,000 mu of land, and each farm manager terminal oversees 100 mu of land, there can be 100 farm manager terminals. The farm manager terminal can be an electronic device with a display screen, such as a mobile phone, and the monitoring terminal can be a computer. If the collection area involved in this solution is the cultivated land data of a village, the monitoring terminal can be held by the village head.
[0072] See also Figure 2 , is a flow chart of a data processing method applicable to intelligent farmland protection provided by an embodiment of the present invention, Figure 2 The execution subject of the method shown may be a software and / or hardware device. The execution subject of the present application may include but is not limited to at least one of the following: user equipment, network equipment, etc. Among them, user equipment may include but is not limited to computers, smart phones, personal digital assistants (PDAs) and the electronic devices mentioned above. Network equipment may include but is not limited to a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing consisting of a large number of computers or network servers, wherein cloud computing is a type of distributed computing, a super virtual computer composed of a group of loosely coupled computers. This embodiment does not limit this. It includes steps S1 to S4, as follows:
[0073] S1, obtaining a first plot distribution map of each plot, and sending the first plot distribution map to the farm manager who supervises the plot.
[0074] Each plot refers to the area of cultivated land supervised by each farm manager, for example, the cultivated land area corresponding to the 100 mu of land supervised by each farm manager. A first plot distribution map refers to a plot distribution map that has not yet been populated with cultivated land data. One first plot distribution map corresponds to one farm manager. The first plot distribution map can be sent from the monitoring terminal to the server, which then sends it to the farm manager for display.
[0075] Specifically, in order to collect the cultivated land conditions of each plot, we can first obtain the first plot distribution map of each plot, and then fill the first plot distribution map according to the actual cultivated land conditions to update the actual cultivated land conditions of each plot. Since this method uses close-range data collection, compared with remote sensing technology, this method will be more accurate.
[0076] S2, obtain the positioning information of the field manager end, and fill the normal cultivated land data and abnormal cultivated land data collected by the field manager end into the first block map corresponding to the first plot distribution map based on the positioning information, and update the first plot distribution map to the second plot distribution map.
[0077] Among them, normal cultivated land data can be crops planted as required, and abnormal cultivated land data can be crops planted in violation of regulations or illegal occupation of cultivated land. The first block map refers to the sub-area corresponding to the first plot distribution map after it is divided into multiple areas. For example, if the first plot distribution map has 100 acres of cultivated land, when these 100 acres of cultivated land correspond to 5 households, the 100 acres of land can be divided according to the location of each household to generate the cultivated land area corresponding to each household (that is, the first block map mentioned above). The second plot distribution map refers to the plot distribution map after filling in the cultivated land data.
[0078] The filling of the first block diagram can be completed through steps S21 to S26, as follows:
[0079] S21, receiving normal cultivated land data input by the farm manager.
[0080] S22: Fill the first block image with corresponding crop images in a preset farmland database according to the positioning information and the normal farmland data.
[0081] In practical applications, since each first block diagram may contain both normal farmland data and abnormal farmland data, the normal farmland data may be filled in first, and then the abnormal farmland data may be filled in later.
[0082] Specifically, the first block map where the positioning information is located can be determined based on the positioning information, and then the first block map can be filled with normal cultivated land data. In order to better distinguish the types of crops planted in each first block map, the image of the crop can be displayed in the filled first block map for distinction.
[0083] Among them, the image of the crop can be pre-saved in the database. When the user needs to fill the crop image in the database into the first block map, the server will automatically identify the first block map corresponding to the current positioning information and automatically fill the data into the corresponding first block map. The positioning information can be combined to ensure the accuracy of data filling.
[0084] In actual application, the positioning information can be displayed in the first plot distribution map with a small red dot. The small red dot will move with the movement of the field manager. On the one hand, the field manager can use this to determine the first block map corresponding to the current position. On the other hand, it can assist the field manager to check his real-time positioning so as to fill in the normal cultivated land data of the first block map.
[0085] S23, receiving the abnormal cultivated land demarcation line input by the field manager.
[0086] S24 , generating a violation block map corresponding to the first block map according to the positioning information and the abnormal cultivated land demarcation line, and adjusting pixel values in the violation block map to a preset pixel interval.
[0087] Specifically, if there is a violation in the first block map where the positioning information is located, the user can divide the area of the violation in the first block map corresponding to the positioning information with the abnormal cultivated land dividing line to form the above-mentioned violation block map. The area where the violation block map is located is the area where the abnormal cultivated land data is located.
[0088] In order to better distinguish violations from normal phenomena in the distribution map, the pixel value of the violation block map where the violation phenomenon is located can be set within a pre-set pixel value range. For example, the pixel value of the violation block map can be set to (255, 255, 255) to facilitate subsequent marking of the violation phenomenon.
[0089] It should be noted that the abnormal farmland demarcation line in this solution is a line drawn to assist the monitoring terminal in determining the approximate area where the abnormal farmland data is located. The abnormal farmland demarcation line does not necessarily need to represent the exact area of the abnormal farmland data; it only needs to represent the approximate area where the abnormal farmland data is located. S25: Receive the violation information input by the farm manager, and generate abnormal farmland data based on the violation information.
[0090] S26, filling the abnormal cultivated land data into the illegal block map.
[0091] In actual applications, there are many types of violations, such as illegal planting of crops, illegal construction of houses, etc. In order to distinguish specific violations, the above-mentioned violation block map can be marked with violation information and then abnormal cultivated land data can be generated to fill it.
[0092] Among them, the violation information can be the types of crops planted illegally, or the specific circumstances of illegal occupation of arable land, such as illegal construction of houses or illegal construction of fish ponds.
[0093] The actual conditions of cultivated land collected through the above method are more accurate than those collected through remote sensing technology. It can fully collect the collection area and accurately collect areas that are difficult to distinguish. For example, it is difficult to distinguish between crops with similar appearance and color (such as green wheat and green grass) through remote sensing technology.
[0094] In some embodiments, the actual cultivated land conditions of the above-mentioned plots can be collected using the field manager terminal. In order to prevent the receiving user from falsifying the data privately, the collected data can also be verified through step S3, so that the monitoring data has higher accuracy and authenticity.
[0095] S3, obtaining at least one central area of the first block diagram, generating call information for calling the camera interface of the field manager end based on the positioning information and the central area, and receiving verification data collected by the field manager end in response to the call information according to a preset action.
[0096] The center area refers to the area where the center of the first block image is located. Setting the center area can prevent users from standing on the edge of the first block image to take pictures or videos of other areas, thereby ensuring the accuracy and authenticity of the data.
[0097] Since the area of each first block image is different, in order to make the verification data more accurate, the first block image can be subdivided, and then the center area of each divided area can be determined to ensure that the data is more accurate.
[0098] The calling information refers to the information that can be used to call the camera interface of the Tian Chang end. The camera of the Tian Chang end can only perform the photo operation after responding to the calling information. The preset actions can be pre-stored in the Tian Chang end.
[0099] Specifically, in practical applications, the first block diagram can be divided through the following steps S31 to S36:
[0100] S31: Acquire area information of the first block diagram, and obtain the initial number of regions according to the area information and preset area information.
[0101] The initial area quantity refers to the quotient of the area of the first block image divided by the area of the preset area information.
[0102] Specifically, the area size of the first block image may be obtained first, and then the initial number of regions may be obtained according to the quotient of the first block image and preset area information. The preset area information may be set in advance according to actual conditions.
[0103] S32: rounding the initial number of regions to obtain a number of regions, and dividing the first block image into at least one region to be collected according to the number of regions.
[0104] S33: Determine the central area of each of the areas to be collected.
[0105] Since the area of each first block image is different, the first block image with a larger area can be subdivided to generate at least one area to be collected, so that the area of each area to be collected after the division is roughly similar. Since each area to be collected is set with its corresponding central area, it is necessary to determine the central area corresponding to each area to be collected.
[0106] In practical applications, since the initial number of regions may be a decimal, and the number of regions cannot be half, the initial number of regions needs to be rounded off.
[0107] The rounding process may be rounding up. For example, if the area of the first block image is 13000m 2 , the preset area information is 3000m 2 , the number of regions is the integer of the quotient of 13000 and 3000, which is 5. That is, the first block map is divided into 5 areas to be collected according to the number of regions 5, and then the center area of each area to be collected is determined.
[0108] In actual applications, there may be multiple crops in the area to be collected, and not all of them may be collected in the central area defined above. To prevent this, the area to be collected may be subdivided according to the number of crop types to ensure that each crop can be verified. Specifically, the following steps S34 to S36 are included:
[0109] S34: If the number of crop types in the area to be collected is greater than 1, receive operation data of the user on the farmer terminal based on the positioning information.
[0110] S35: Generate a crop demarcation line corresponding to the area to be collected based on the operation data.
[0111] Among them, the crop dividing line refers to the dividing line of each crop area. According to the crop dividing line, the areas where different crops are located in the area to be collected can be divided out, and accurate verification can be achieved for different crops.
[0112] In some embodiments, the crop dividing line can be divided by the field manager holding the field manager's end, and the approximate area of each crop can be divided. There is no need to make a precise division of the area of each crop.
[0113] S36: Divide the original area to be collected into a plurality of areas to be collected corresponding to the number of crop types according to the crop dividing lines.
[0114] Specifically, if the area to be collected contains multiple crops, the user can subdivide the area to be collected to generate multiple areas to be collected corresponding to the multiple crops. After obtaining multiple areas to be collected in the above manner, the center area of each area to be collected can be determined through the following steps S37 to S313.
[0115] In actual application S37, if the area to be collected is a rectangle, the intersection of the diagonals of the collection area is obtained, and the center point is determined according to the intersection of the diagonals.
[0116] S38: Determine the central area of each of the areas to be collected according to the central point and the preset radius.
[0117] Specifically, if the shape of the area to be collected is a rectangle, the center point of the area to be collected can be found by taking the center point of the rectangle as the intersection point of the diagonals, and then a circle is drawn based on the found center point and the preset radius to determine the center area of the area to be collected.
[0118] In practical applications, the preset radius can be 1m. A circle with a radius of 1m is made with the center point as the center according to the preset radius, which serves as the central area of the area to be collected.
[0119] S39: If the area to be collected is not a rectangle, generate an outer rectangular frame corresponding to the area to be collected.
[0120] In practical applications, since the shape of cultivated land is uncertain, the shape of the area to be collected after it is divided is also uncertain. In order to find the center area of each area to be collected, an outer rectangular frame can be established for the area to be collected that is not rectangular in shape. The center point of the outer rectangular frame is found by the intersection of the diagonals of the outer rectangular frame, and then the center point of the area to be collected is obtained by offsetting the center point position of the outer rectangular frame.
[0121] S310 , obtaining a diagonal intersection of the outer rectangular frame as an initial center point, and generating mutually perpendicular vertical dividing lines and horizontal dividing lines according to the diagonal intersection.
[0122] S311 , obtaining a blank area within the outer rectangular frame, and processing the blank area according to the vertical dividing line and the horizontal dividing line to obtain an upper blank area, a lower blank area, a left blank area, and a right blank area.
[0123] Since the area of the blank area will affect the position of the center point of the area to be collected, in order to better offset the position of the initial center point to obtain the center point of the area to be collected, it can be offset through the blank area within the outer rectangular frame.
[0124] Since the shape and size of each area to be collected are different, after the outer rectangular frame of the area to be collected is obtained, the blank area obtained within the outer rectangular frame will also be different.
[0125] In order to obtain the blank area of each part within the outer rectangle, vertical and horizontal dividing lines perpendicular to each other can be generated according to the center point of the outer rectangular frame (that is, the initial center point mentioned above) to divide the outer rectangular frame into four areas (that is, the upper blank area, the lower blank area, the left blank area and the right blank area mentioned above).
[0126] See also Figure 3The shaded part in the figure refers to the area to be collected, the blank part refers to the blank area, the upper blank area refers to all blank areas above the horizontal dividing line, the lower blank area refers to all blank areas below the horizontal dividing line, the left blank area refers to all blank areas to the left of the vertical dividing line, and the right blank area refers to all blank areas to the right of the vertical dividing line.
[0127] S312: offset the initial center point according to the upper blank area, the lower blank area, the left blank area, and the right blank area to obtain a center point.
[0128] In order to obtain the center point of the area to be collected, the initial center point can be offset as follows:
[0129] Obtain the upper blank area of the upper blank area, the lower blank area of the lower blank area, the left blank area of the left blank area, and the right blank area of the right blank area; and generate corresponding downward offset coefficients, upward offset coefficients, rightward offset coefficients, and leftward offset coefficients according to the upper blank area, the lower blank area, the left blank area, the right blank area, and a preset area.
[0130] Since the area of the blank area will affect the position of the center point of the area to be collected, the larger the blank area, the smaller the corresponding area to be collected will be. The initial center point may fall in the blank area or close to the blank area. In order to make the initial center point after offset fall at the center of the area to be collected, the blank area can be used to adjust it.
[0131] Specifically, when the upper blank area is larger, the initial center point can be moved downward by a larger distance, so that it is closer to the center of the area to be collected and farther away from the blank area. Accordingly, when the lower blank area is larger, the initial center point can be moved upward by a larger distance. When the left blank area is larger, the initial center point can be moved to the right by a larger distance. When the right blank area is larger, the initial center point can be moved to the left by a larger distance.
[0132] Among them, the preset area can be set in advance according to actual conditions, and the above-mentioned downward offset coefficient, upward offset coefficient, rightward offset coefficient and leftward offset coefficient can be obtained respectively according to the ratio of the upper blank area, lower blank area, left blank area and right blank area to the preset area.
[0133] According to the downward offset coefficient, upward offset coefficient, rightward offset coefficient, leftward offset coefficient and the preset distance, the corresponding downward offset distance, upward offset distance, rightward offset distance and leftward offset distance are generated respectively.
[0134] The preset distance and the preset area are set correspondingly. For example, if the preset area is 300m 2 If so, the corresponding preset distance can be set to 3m, and the preset distance and preset area can be set accordingly according to actual conditions.
[0135] After obtaining the downward offset distance, upward offset distance, rightward offset distance, and leftward offset distance, the initial center point can be moved accordingly to obtain the center point of the area to be collected.
[0136] The initial center point is offset based on the downward offset distance, the upward offset distance, the rightward offset distance, and the leftward offset distance to obtain a center point.
[0137] The center point is calculated by the following formula,
[0138]
[0139] in, is the upward offset distance, is the blank area below, is the preset area, is the weight value of the upward shift coefficient, For the preset distance, is the downward offset distance, is the upper blank area, is the weight value of the downward shift coefficient, is the left offset distance, is the right blank area, is the weight value of the left shift coefficient, is the rightward offset distance, is the left blank area, is the weight value of the rightward shift coefficient, is the horizontal coordinate of the center point, is the horizontal coordinate of the initial center point, is the vertical coordinate of the center point, is the vertical coordinate of the initial center point.
[0140] From the above formula, we can see that the upward offset distance With the blank area below , Downward offset distance With blank area , left offset distance With right blank area , right offset distance With left blank area They are all in direct proportion. When the blank area corresponding to the offset distance is larger, the offset distance will be larger. This is set to make the initial center point after movement closer to the center point of the area to be collected.
[0141] After calculating the upward offset distance of the initial center point , Downward offset distance , left offset distance and the right offset distance Then the horizontal and vertical coordinates of the initial center point can be moved accordingly to obtain the horizontal and vertical coordinates of the center point, and the specific position of the center point can be obtained through the horizontal and vertical coordinates of the center point.
[0142] S313: Determine the central area of each of the areas to be collected according to the central point and the preset radius.
[0143] After obtaining the specific location of the center point, you can use the center point as the center of the circle and draw a circle with a preset radius to determine the center area of the area to be collected. The preset radius can be set in advance according to actual conditions, for example, the preset radius can be set to 1m.
[0144] After obtaining the center position of each area to be collected in the above manner, the data required for verification can be collected based on the positioning information and the center area, including steps S314 to S316, as follows:
[0145] S314: If the positioning information is within the central area, obtaining the calling information of the camera interface of the field manager end.
[0146] S315, in response to the call information, randomly selecting a preset action from a plurality of preset actions, and sending the preset action to the field manager for display, wherein the preset action includes rotating one circle clockwise or one circle counterclockwise.
[0147] S316, receiving the verification data collected by the user controlling the camera of the field manager terminal according to the preset action.
[0148] In order to ensure the accuracy of the collected data, it can be set to start the call information of the field manager's camera when the positioning information appears in the central area, and then let the receiving user collect verification data according to the preset actions to prevent the receiving user from tampering with the verification data.
[0149] In actual applications, to make the collected data more comprehensive, the preset action may include rotating the device clockwise or counterclockwise. When the user collects verification data according to the preset action, the user's voice may also be collected, such as reading a preset text, to ensure the authenticity of the verification data collected by the user.
[0150] Obtaining verification data in the above manner can ensure the authenticity and accuracy of the collected verification data, and can collect more comprehensive verification data, which is beneficial for subsequent data verification and prevents the receiving user from tampering with the collected data during data collection.
[0151] S4, sending the second plot distribution map and the verification data to the monitoring terminal that monitors the farmer terminal.
[0152] Specifically, after collecting the actual conditions of the cultivated land and verification data, the second plot distribution map and verification data can be sent to the monitoring terminal of the monitoring farm manager. The monitoring terminal can be controlled by the village head, who can use the collected data and verification data to understand the various cultivated land conditions in the village and then take appropriate measures based on the various cultivated land conditions.
[0153] Through the above method, the actual situation of cultivated land can be grasped in time, so as to achieve a timely solution to various cultivated land problems, which is conducive to the protection of cultivated land resources.
[0154] See also Figure 4 , is a schematic structural diagram of a device for intelligent farmland protection provided by an embodiment of the present invention, the device for intelligent farmland protection comprising:
[0155] The distribution module is used to obtain a first plot distribution map of each plot and send the first plot distribution map to the field manager who supervises the plot.
[0156] A filling module is used to obtain the positioning information of the field manager end, and based on the positioning information, fill the normal cultivated land data and abnormal cultivated land data collected by the field manager end into the first block map corresponding to the first plot distribution map, and update the first plot distribution map to the second plot distribution map.
[0157] A verification module is used to obtain at least one central area of the first block diagram, generate call information for calling the camera interface of the field manager end based on the positioning information and the central area, and receive verification data collected by the field manager end in response to the call information according to a preset action.
[0158] The monitoring module is used to send the second plot distribution map and the verification data to the monitoring terminal that monitors the field manager terminal.
[0159] Figure 4 The apparatus of the embodiment shown can be used to perform Figure 2 The implementation principles and technical effects of the steps in the method embodiment shown are similar and will not be repeated here.
[0160] See also Figure 5: is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. The electronic device 50 includes: a processor 51, a memory 52 and a computer program; wherein:
[0161] The memory 52 is used to store the computer program, which may also be a flash memory. The computer program is, for example, an application program or a functional module for implementing the above method.
[0162] The processor 51 is configured to execute the computer program stored in the memory to implement the various steps performed by the device in the above method. For details, please refer to the relevant description in the above method embodiment.
[0163] Optionally, the memory 52 may be independent or integrated with the processor 51 .
[0164] When the memory 52 is a device independent of the processor 51, the device may further include:
[0165] The bus 53 is used to connect the memory 52 and the processor 51 .
[0166] The present invention also provides a readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the methods provided in the various embodiments described above.
[0167] The readable storage medium may be a computer storage medium or a communication medium. Communication media include any medium that facilitates the transfer of computer programs from one location to another. Computer storage media may be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, a readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may be located in an application-specific integrated circuit (ASIC). In addition, the ASIC may be located in a user device. Of course, the processor and the readable storage medium may also exist as discrete components in a communication device. The readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
[0168] The present invention also provides a program product, which includes execution instructions stored in a readable storage medium. At least one processor of a device can read the execution instructions from the readable storage medium, and at least one processor executes the execution instructions so that the device implements the methods provided in the various embodiments described above.
[0169] In the embodiments of the above-mentioned devices, it should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASICs), etc. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly executed by a hardware processor or by a combination of hardware and software modules within the processor.
[0170] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A data processing method suitable for intelligent farmland protection, characterized in that: include: Obtaining a first plot distribution map of each plot, and sending the first plot distribution map to a farm manager who oversees the plot; Acquire positioning information of the farm manager terminal, and fill the normal cultivated land data and abnormal cultivated land data collected by the farm manager terminal into a first block map corresponding to the first plot distribution map based on the positioning information, and update the first plot distribution map to a second plot distribution map; Acquire at least one central area of the first block diagram, generate call information for calling the camera interface of the field manager terminal based on the positioning information and the central area, and receive verification data collected by the field manager terminal according to a preset action in response to the call information; If the positioning information is within the central area, obtaining the calling information of the camera interface of the field manager end; In response to the call information, randomly select a preset action from a plurality of preset actions, and send the preset action to the field manager for display, wherein the preset action includes rotating one circle clockwise or one circle counterclockwise; Receiving the verification data collected by the user controlling the camera of the field manager terminal according to the preset action; The second plot distribution map and the verification data are sent to the monitoring terminal that monitors the field manager terminal.
2. The method according to claim 1, characterized in that Acquiring at least one central area of the first block image includes: Acquire area information of the first block diagram, and determine the number of initial regions according to the area information and preset area information; Rounding the initial number of regions to obtain a number of regions, and dividing the first block image into at least one region to be collected according to the number of regions; Determine the central area of each of the areas to be collected.
3. The method according to claim 2, characterized in that After dividing the first block image into at least one area to be collected according to the number of areas, the method further includes: If the number of crop types in the area to be collected is greater than 1, receiving operation data of the user on the field manager terminal based on the positioning information; generating a crop demarcation line corresponding to the area to be collected according to the operation data; The original area to be collected is divided into a plurality of areas to be collected corresponding to the number of crop types according to the crop dividing lines.
4. The method according to claim 3, characterized in that Determining the central area of each of the areas to be collected includes: If the area to be collected is a rectangle, obtain the intersection of the diagonals of the collection area, and determine the center point according to the intersection of the diagonals; The central area of each of the areas to be collected is determined according to the central point and the preset radius.
5. The method according to claim 4, characterized in that Determining the central area of each of the areas to be collected includes: If the area to be collected is not a rectangle, generating an outer rectangular frame corresponding to the area to be collected; Obtaining the diagonal intersection of the outer rectangular frame as the initial center point, and generating mutually perpendicular vertical dividing lines and horizontal dividing lines according to the diagonal intersection; Obtaining a blank area within the outer rectangular frame, and processing the blank area according to the vertical dividing line and the horizontal dividing line to obtain an upper blank area, a lower blank area, a left blank area, and a right blank area; offsetting the initial center point according to the upper blank area, the lower blank area, the left blank area, and the right blank area to obtain a center point; The central area of each of the areas to be collected is determined according to the central point and the preset radius.
6. The method according to claim 5, characterized in that The initial center point is offset according to the upper blank area, the lower blank area, the left blank area, and the right blank area to obtain the center point, including: Obtaining an upper blank area of the upper blank area, a lower blank area of the lower blank area, a left blank area of the left blank area, and a right blank area of the right blank area; and generating corresponding downward offset coefficients, upward offset coefficients, rightward offset coefficients, and leftward offset coefficients according to the upper blank area, the lower blank area, the left blank area, the right blank area, and a preset area; Generate corresponding downward offset distance, upward offset distance, rightward offset distance and leftward offset distance respectively according to the downward offset coefficient, upward offset coefficient, rightward offset coefficient and leftward offset coefficient and the preset distance; The initial center point is offset based on the downward offset distance, the upward offset distance, the rightward offset distance, and the leftward offset distance to obtain a center point.
7. The method according to claim 6, characterized in that The initial center point is offset based on the downward offset distance, the upward offset distance, the rightward offset distance, and the leftward offset distance to obtain the center point, including: The center point is calculated by the following formula, Among them, u is the upward offset distance, s1 is the lower blank area, s is the preset area, k1 is the weight value of the upward offset coefficient, d is the preset distance, b is the downward offset distance, s2 is the upper blank area, k2 is the weight value of the downward offset coefficient, l is the left offset distance, s3 is the right blank area, k3 is the weight value of the left offset coefficient, r is the right offset distance, s4 is the left blank area, k4 is the weight value of the right offset coefficient, x is the horizontal coordinate of the center point, x1 is the horizontal coordinate of the initial center point, y is the vertical coordinate of the center point, and y1 is the vertical coordinate of the initial center point.
8. The method according to claim 1, characterized in that Filling the normal cultivated land data and abnormal cultivated land data collected by the farm manager terminal into the first block map corresponding to the first plot distribution map based on the positioning information includes: Receiving normal cultivated land data input by the farm manager; Filling the first block image with corresponding crop images in a preset farmland database according to the positioning information and the normal farmland data; receiving the abnormal cultivated land demarcation line input by the field manager; generating a violation block map corresponding to the first block map according to the positioning information and the abnormal cultivated land demarcation line, and adjusting pixel values in the violation block map to a preset pixel interval; Receiving the violation information input by the farm manager, and generating abnormal cultivated land data according to the violation information; Fill the abnormal cultivated land data into the violation block map.
9. A data processing device suitable for intelligent farmland protection, characterized in that: include: A distribution module, configured to obtain a first plot distribution map of each plot and send the first plot distribution map to a farm manager who supervises the plot; a filling module, configured to obtain positioning information of the field manager terminal, fill the normal cultivated land data and abnormal cultivated land data collected by the field manager terminal into the first block map corresponding to the first plot distribution map based on the positioning information, and update the first plot distribution map to a second plot distribution map; a verification module, configured to obtain at least one central area of the first block diagram, generate call information for calling the camera interface of the farmer terminal based on the positioning information and the central area, and receive verification data collected by the farmer terminal according to a preset action in response to the call information; If the positioning information is within the central area, obtaining the calling information of the camera interface of the field manager end; In response to the call information, randomly select a preset action from a plurality of preset actions, and send the preset action to the field manager for display, wherein the preset action includes rotating one circle clockwise or one circle counterclockwise; Receiving the verification data collected by the user controlling the camera of the field manager terminal according to the preset action; The monitoring module is used to send the second plot distribution map and the verification data to the monitoring terminal that monitors the field manager terminal.
Citation Information
Patent Citations
Map construction method based on multiple sensors, map construction device based on multiple sensors and storage medium
CN110567467A
Cultivated land image extraction method and equipment
CN114429590A