Sampling point deployment method and device, equipment and storage medium
By adjusting the number of sampling points in a preset area based on the geographical scene type, the problem of sampling point density not meeting actual needs in the existing technology is solved, and efficient sampling point deployment under different geographical scenes is achieved.
Patent Information
- Application Number
- CN202210988301.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-17
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-08-17
AI Technical Summary
Existing technologies that uniformly deploy sampling points in different geographical scenarios result in sampling point density that does not meet actual needs, leading to poor performance and low practicality.
By acquiring the location and image information of the preset area, the target unit area is determined based on the geographic scene type, and sampling points are evenly deployed in the target unit area. The number of sampling points is adjusted according to the geographic scene type, and the unit area is determined multiple times until the preset number is reached.
It enables the on-demand adjustment of sampling point density in different geographical scenarios, improving the effectiveness and practicality of sampling point deployment.
Smart Images

Figure CN117641366B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a sampling point deployment method, apparatus, device and storage medium. Background Technology
[0002] In building different platforms (such as coexistence simulation platforms and system simulation platforms), topology implementation is involved to achieve a uniform deployment of a certain number of sampling points within a certain range (such as base station deployment). With the research of multi-domain air-to-ground services, the concept of sub-satellite field of view (i.e., the visible range or measurement area from a satellite to the Earth) is gradually being introduced. Regardless of the size of the field of view or measurement area (millions or even tens of millions of square kilometers), different geographical scenes such as urban areas, suburbs, villages, rivers, and forests will exist within this area. Currently, the general approach is to first divide the area into grids, dividing it into multiple grids according to latitude and longitude with a certain granularity, and then uniformly deploy sampling points within the grids.
[0003] In the above method, by rasterizing the area to uniformly distribute sampling points within the raster, the result is that the density of sampling points is the same in any geographical scenario. However, the required density of sampling points varies in different geographical scenarios. Therefore, the current method is ineffective and has low practicality in deploying sampling points within a certain area. Summary of the Invention
[0004] This application provides a sampling point deployment method, apparatus, equipment, and storage medium to improve the effectiveness and practicality of deploying sampling points within a certain area.
[0005] To achieve the above objectives, this application adopts the following technical solution:
[0006] Firstly, a sampling point deployment method is provided. This method includes: acquiring location information and image information of a preset area, the image information including latitude and longitude information of each pixel and the geographic scene type of each pixel; based on the location information and image information, determining a target unit area from a first area through a target operation, and uniformly deploying a target number of sampling points in the target unit area, the first area being a region in the preset area whose geographic scene type is the target type, the target number being related to the target type, with different geographic scene types corresponding to different target numbers; if the total number of sampling points deployed in the first area is less than a preset number, determining multiple unit areas from the first area multiple times through a target operation, and uniformly deploying a target number of sampling points in each unit area, each time determining one unit area from the first area through a target operation; if the total number of sampling points deployed in the first area is greater than or equal to a preset number, completing the deployment of the preset number of sampling points in the first area.
[0007] In one possible implementation, a target unit region is determined from a first region based on location information and image information through a target operation, including: randomly selecting a first unit region from the first region based on location information and image information, and determining whether a target number of sampling points are deployed in the first unit region; if it is determined that no target number of sampling points are deployed in the first unit region, the first unit region is determined as the target unit region; if it is determined that a target number of sampling points are deployed in the first unit region, multiple unit regions corresponding to the first unit region are selected and determined in a preset order to determine whether a target number of sampling points are deployed in them; if it is determined that no target number of sampling points are deployed in the second unit region, the second unit region is determined as the target unit region.
[0008] In one possible implementation, a unit region corresponds to multiple pixels; based on location information and image information, a first unit region is randomly selected from the first region, including: based on location information and image information, a target pixel is randomly selected from the first region, and the latitude and longitude information of the target pixel is determined; based on the latitude and longitude information of the target pixel, the first unit region corresponding to the target pixel is determined.
[0009] In one possible implementation, determining whether a target number of sampling points are deployed in the first unit region includes: determining the number of times the first unit region is selected; if the first unit region is randomly selected from the first region, incrementing the number of times the first unit region is selected by one; or, if the first unit region is selected sequentially from multiple unit regions corresponding to other unit regions in a preset order, incrementing the number of times the first unit region is selected by one, wherein the other unit regions are any unit regions other than the first unit region among the multiple unit regions included in the first region; if the number of times the first unit region is selected is 0, determining that no target number of sampling points are deployed in the first unit region; if the number of times the first unit region is selected is not 0, determining that a target number of sampling points are deployed in the first unit region.
[0010] In one possible implementation, determining the number of times the first unit region is selected includes: determining the number of times each pixel in the multiple pixels included in the first unit region is selected; and determining the number of times the first unit region is selected based on the sum of the number of times each pixel is selected.
[0011] Secondly, a sampling point deployment device is provided, comprising: an acquisition unit, a determination unit, and a processing unit; the acquisition unit is used to acquire location information and image information of a preset area, the image information including: latitude and longitude information of each pixel and geographic scene type of each pixel; the determination unit is used to determine a target unit area from a first area through a target operation based on the location information and image information; the processing unit is used to uniformly deploy a target number of sampling points in the target unit area, the first area being a region in the preset area whose geographic scene type is the target type, the target number being related to the target type, with different geographic scene types corresponding to different target numbers; the determination unit is used to determine multiple unit areas from the first area through multiple target operations when the total number of sampling points deployed in the first area is less than a preset number; the processing unit is used to uniformly deploy a target number of sampling points in each unit area, determining one unit area from the first area each time through a target operation; the determination unit is used to complete the deployment of a preset number of sampling points in the first area when the total number of sampling points deployed in the first area is greater than or equal to a preset number.
[0012] In one possible implementation, a processing unit is used to randomly select a first unit region from a first region based on location information and image information; a determining unit is used to determine whether a target number of sampling points are deployed in the first unit region; a determining unit is used to determine the first unit region as a target unit region if it is determined that no target number of sampling points are deployed in the first unit region; a processing unit is used to sequentially select and determine whether a target number of sampling points are deployed in multiple unit regions corresponding to the first unit region according to a preset order if a target number of sampling points are deployed in the first unit region; and a determining unit is used to determine the second unit region as a target unit region if it is determined that no target number of sampling points are deployed in the second unit region.
[0013] In one possible implementation, a unit region corresponds to multiple pixels; a processing unit is used to randomly select target pixels from the first region based on location information and image information; a determining unit is used to determine the latitude and longitude information of the target pixels; and a determining unit is used to determine the first unit region corresponding to the target pixels based on the latitude and longitude information of the target pixels.
[0014] In one possible implementation, a determining unit is used to determine the number of times the first unit region is selected. If the first unit region is randomly selected from the first region, the number of times the first unit region is selected is increased by one. Alternatively, if the first unit region is selected sequentially from multiple unit regions corresponding to other unit regions in a preset order, the number of times the first unit region is selected is increased by one. The other unit regions are any unit regions other than the first unit region among the multiple unit regions included in the first region. The determining unit is used to determine that no sampling points of the target number are deployed in the first unit region when the number of times the first unit region is selected is 0. The determining unit is used to determine that a target number of sampling points are deployed in the first unit region when the number of times the first unit region is selected is not 0.
[0015] In one possible implementation, a determining unit is used to determine the number of times each pixel is selected among the multiple pixels included in the first unit region; the determining unit is used to determine the number of times the first unit region is selected based on the sum of the number of times each pixel is selected.
[0016] Thirdly, an electronic device includes: a processor and a memory; wherein the memory is used to store one or more programs, the one or more programs including computer-executable instructions, and when the electronic device is running, the processor executes the computer-executable instructions stored in the memory to cause the electronic device to perform a sampling point deployment method as described in the first aspect.
[0017] Fourthly, a computer-readable storage medium is provided for storing one or more programs, the one or more programs including instructions that, when executed by a computer, cause the computer to perform a sampling point deployment method as described in the first aspect.
[0018] This application provides a sampling point deployment method, apparatus, device, and storage medium, applied to scenarios involving sampling point deployment. When it is necessary to deploy sampling points within a certain geographical scene range within a preset area, location information and image information of the preset area can be obtained. Based on the location information and image information of the preset area, a target unit area is determined from a first area of the preset area with the geographical scene type of the target type through a target operation, and a target number of sampling points are evenly deployed in the target unit area. Further, it is determined whether the total number of sampling points deployed in the first area is less than a preset number. If it is determined that the total number of sampling points deployed in the first area is less than the preset number, another unit area is determined from the first area through a target operation, and so on, multiple unit areas are determined from the first area through multiple target operations, and a target number of sampling points are evenly deployed in each unit area. Finally, if it is determined that the total number of sampling points deployed in the first area is greater than or equal to the preset number, the deployment of the preset number of sampling points in the first area is completed. Through the above method, the number of sampling points deployed in a unit area can be determined according to the geographical scene type corresponding to the area where sampling points need to be deployed, so as to evenly deploy sampling points within the area where sampling points need to be deployed. This allows for the deployment of sampling points at different densities within areas with different geographical scene types, thereby improving the effectiveness and practicality of deploying sampling points within a certain area. Attached Figure Description
[0019] Figure 1 This is a schematic diagram of a sampling point deployment in a related technology;
[0020] Figure 2 This is a schematic diagram of a region rasterization technique in related technologies;
[0021] Figure 3 A schematic diagram illustrating the simulation effect of deploying a sampling point in a related technology;
[0022] Figure 4 A schematic diagram of a sampling point deployment system structure provided for an embodiment of this application;
[0023] Figure 5 A schematic flowchart of a sampling point deployment method provided for embodiments of this application. Figure 1 ;
[0024] Figure 6 A schematic diagram of sampling point deployment provided for an embodiment of this application;
[0025] Figure 7 A schematic flowchart of a sampling point deployment method provided for embodiments of this application. Figure 2 ;
[0026] Figure 8A schematic diagram of a unit region division provided for an embodiment of this application;
[0027] Figure 9 A schematic flowchart of a sampling point deployment method provided for embodiments of this application. Figure 3 ;
[0028] Figure 10 A schematic flowchart of a sampling point deployment method provided for embodiments of this application. Figure 4 ;
[0029] Figure 11 A schematic flowchart of a sampling point deployment method provided for embodiments of this application. Figure 5 ;
[0030] Figure 12 A schematic flowchart of a sampling point deployment method provided for embodiments of this application. Figure 6 ;
[0031] Figure 13 A schematic diagram of a sampling point deployment device provided for an embodiment of this application;
[0032] Figure 14 This is a schematic diagram of an electronic device structure provided for an embodiment of this application. Detailed Implementation
[0033] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.
[0034] In the description of this application, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. "And / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. Furthermore, "at least one" and "multiple" refer to two or more. The terms "first," "second," etc., do not limit the quantity or order of execution, and "first," "second," etc., do not necessarily imply differences.
[0035] Currently, the construction of different platforms, such as coexistence simulation platforms and system simulation platforms, involves topology implementation, which requires the uniform distribution of a certain number of sampling points within a certain range. With the research of multi-domain air-ground operations, the concept of sub-satellite field of view is gradually being introduced. That is, the visible range or measurement area of the Earth as seen from the satellite. Regardless of the area of the visible range or measurement area, it may be millions or even tens of millions of square kilometers in size. Within this range, there are different geographical scenes such as urban areas, suburbs, rural areas, rivers, and forests. When there is a need to deploy sampling points on the land within the visible range, it is necessary to evenly distribute the sampling points in these geographical scenes.
[0036] For example, such as Figure 1 As shown, taking a satellite field of view at 100°W, 35°N, and 514km altitude as an example, the shaded area in the figure represents the region where sampling points are to be placed. In related technical solutions, a grid is typically first created on the Earth's surface, such as... Figure 2 As shown, the grid is divided into small grids according to latitude and longitude with a certain granularity, and then sampling points are evenly deployed within the grid. Figure 3 As shown, this is to illustrate the use of relevant technologies in Figure 1 The shaded area in the image is a simulation result of sampling points deployed using a 5-degree granularity grid. Figure 3 Regardless of the geographical location, such as urban areas, suburbs, rural areas, rivers, or forests, the sampling density is the same.
[0037] from Figure 3 It's easy to see that while the technology can achieve uniform sampling across land, the lack of import and utilization of topographical and administrative information results in a uniform sampling density across all areas within the deployment zone. However, in reality, the construction of ground facilities or sites varies significantly due to population density, municipal infrastructure, and topographical conditions. For example, mobile communication base station deployments have higher density in densely populated urban areas, lower density in remote suburbs, and even lower density in deserts and uninhabited areas. Clearly, uniform sampling within the deployment area is unsuitable for simulating many scenarios, including those involving artificial construction.
[0038] This application proposes a sampling point deployment method that can fully consider geographical topographic information and urban construction information, thereby increasing the density of sampling points deployed in the target area and decreasing the density of sampling points deployed in non-target areas, and enabling the deployment of sampling points with different densities in different geographical scenarios.
[0039] The sampling point deployment method provided in this application embodiment can be applied to a sampling point deployment system. Figure 4 A schematic diagram of one possible structure for this sampling point deployment system is shown. For example... Figure 4 As shown, the sampling point deployment system 20 includes an electronic device 21 and a server 22. The electronic device 21 is connected to the server 22. The electronic device 21 and the server 22 can be connected via a wired connection or a wireless connection; this embodiment of the application does not limit the connection in this way.
[0040] The sampling point deployment system 20 can be used for the Internet of Things. The sampling point deployment system 20 may include hardware such as multiple central processing units (CPUs), multiple memories, and storage devices storing multiple operating systems.
[0041] Electronic device 21 can be used in the Internet of Things to acquire location information and image information of a preset area, and based on the location information and image information, determine the target unit area through target operation, and uniformly deploy the target number of sampling points in the target unit area.
[0042] Server 22 can be used in the Internet of Things to process the data information required by electronic devices 21 during the deployment of sampling points.
[0043] It should be noted that electronic device 21 and server 22 can be independent devices or integrated into the same device; this application does not make specific limitations in this regard.
[0044] When electronic device 21 and server 22 are integrated into the same device, the communication method between electronic device 21 and server 22 is the same as the communication between modules within the device. In this case, the communication process between the two is the same as the communication process between electronic device 21 and server 22 when they are independent of each other.
[0045] In the following embodiments provided in this application, the electronic device 21 and the server 22 are described as being set up independently of each other.
[0046] The following description, in conjunction with the accompanying drawings, describes a sampling point deployment method provided by an embodiment of this application. For example... Figure 5 As shown, an embodiment of this application provides a sampling point deployment method, including steps S201-S204:
[0047] S201. Obtain the location information and image information of the preset area.
[0048] The image information includes: the latitude and longitude information of each pixel and the geographic scene type of each pixel.
[0049] In this embodiment of the application, when it is necessary to deploy sampling points (e.g., deploy base stations) in a preset area, image information of the preset area can be obtained by satellite, and the location information of the preset area can be determined.
[0050] Optionally, for scenarios involving large-scale deployment of sampling points, image information can be obtained using data captured by a Moderate-resolution Imaging Spectroradiometer (MODIS). This image information can provide a resolution of 250 meters and 19 types of landform information (i.e., the aforementioned geographical scene types), specifically including: temperate or subpolar coniferous forest, subpolar coniferous forest, tropical or subtropical broad-leaved plants, evergreen forest, tropical or subtropical broad-leaved plants, deciduous forest, temperate or subpolar broad-leaved plants, deciduous forest, mixed forest, tropical or subtropical shrubland, temperate or subpolar shrubland, tropical or subtropical grassland, temperate or subpolar steppe, subpolar or polar shrub-lichen-moss, subpolar or polar steppe-lichen-moss, subpolar or polar barren-lichen-moss, wetland, farmland, barren land, city, water area, and ice and snow.
[0051] Optionally, the location information of the preset area can be the latitude and longitude information of the preset area. After obtaining the location information and image information of the preset area, the location information and image information of the preset area can be used as input parameters and input into the electronic device.
[0052] Optionally, while determining the preset area where sampling points need to be deployed, it is also necessary to determine the total number of sampling points to be deployed in the preset area (i.e., the preset number below).
[0053] S202. Based on location information and image information, determine the target unit area from the first area through target operation, and uniformly deploy the target number of sampling points in the target unit area.
[0054] The first region is a region in the preset area where the geographical scene type is the target type. The number of targets is related to the target type, and different geographical scene types correspond to different numbers of targets.
[0055] Optionally, it is necessary to determine all regions (i.e., the first region) with the geographic scene type of the target type from the preset regions, and then deploy a preset number of sampling points in the first region.
[0056] For example, if a preset number of base stations need to be deployed in all areas of the preset region where the geographic scene type is city (i.e., the target type), then all areas of the preset region where the geographic scene type is city can be determined based on location information and image information, and designated as the first region.
[0057] Optionally, multiple target operations are required to sequentially determine multiple unit regions from the first region and evenly deploy the target number of sampling points in the unit regions. After each unit region is determined from the first region and the target number of sampling points are deployed, it is necessary to determine whether the total number of sampling points deployed in the first region has reached the preset number.
[0058] Optionally, the first region can be rasterized to divide it into multiple unit regions. This allows sampling points to be deployed evenly in the first region by deploying them in the unit regions.
[0059] It should be noted that the aforementioned unit area can be a square area of 1km*1km, or the aforementioned unit area can be an area of any size determined by the user, and this application does not limit this.
[0060] It is understood that the steps in step 202 above need to be repeated in this embodiment of the application until the total number of sampling points deployed in the first area reaches a preset number.
[0061] S203. If the total number of sampling points deployed in the first region is less than the preset number, multiple unit regions are determined from the first region through multiple target operations, and the target number of sampling points are evenly deployed in each unit region.
[0062] Each time, a unit region is determined from the first region through the target operation.
[0063] Optionally, after each time a unit area is determined from the first region and a target number of sampling points are deployed, it is necessary to count the total number of sampling points deployed in the first region in real time. When it is determined that the total number of sampling points deployed in the first region is less than the preset number, it is necessary to determine a unit area from the first region again through the target operation and deploy the target number of sampling points evenly in the unit area.
[0064] For example, such as Figure 6 As shown, after the target unit area is determined from the first region through target operation, sampling points are randomly deployed within the target unit area according to latitude and longitude. Figure 6 The diagram shows a schematic of randomly deployed sampling points within a 1km*1km target unit area in an orthogonal plane coordinate system.
[0065] S204. If the total number of sampling points deployed in the first area is greater than or equal to the preset number, complete the deployment of the preset number of sampling points in the first area.
[0066] Optionally, after determining multiple unit regions from the first region through multiple target operations and uniformly deploying a target number of sampling points in each unit region, if it is determined that the total number of sampling points deployed in the first region is greater than or equal to a preset number, then the deployment of the preset number of sampling points in the first region is completed, and the step of determining unit regions from the first region through target operations ends.
[0067] This application provides a sampling point deployment method. When sampling points need to be deployed within a certain geographical scene within a preset area, location information and image information of the preset area can be obtained. Based on the location information and image information of the preset area, a target unit area is determined from a first area of the preset area with the geographical scene type of the target type through a target operation. A target number of sampling points are then evenly deployed within the target unit area. Further, it is determined whether the total number of sampling points deployed in the first area is less than a preset number. If it is determined that the total number of sampling points deployed in the first area is less than the preset number, another unit area is determined from the first area through a target operation. This process is repeated multiple times to determine multiple unit areas from the first area, and a target number of sampling points are evenly deployed in each unit area. Finally, if it is determined that the total number of sampling points deployed in the first area is greater than or equal to the preset number, the deployment of the preset number of sampling points in the first area is completed. Through this method, the number of sampling points deployed within a unit area can be determined according to the geographical scene type corresponding to the area where sampling points need to be deployed, so as to evenly deploy sampling points within the area where sampling points need to be deployed. This allows for the deployment of sampling points of different densities in areas with different geographical scene types, thereby improving the effectiveness and practicality of deploying sampling points within a certain area.
[0068] In a design, such as Figure 7 As shown, in the sampling point deployment method provided in this application embodiment, the method in step S202 above may specifically include S301-S304:
[0069] S301. Based on location information and image information, randomly select a first unit area from the first region, and determine whether the target number of sampling points are deployed in the first unit area.
[0070] Optionally, the total number of unit regions included in the first region can be predetermined, each unit region can be numbered, and the number of times each unit region is selected can be initialized to 0.
[0071] It should be noted that the field of view corresponding to the image information captured by the satellite is a circular area centered on the nadir point. The corresponding measurement area is generally a regular area in the north-south / east-west direction determined by latitude and longitude. Combined with a certain landform category (i.e., geographical scene type), the number of unit areas included in the first area where sampling points need to be deployed can be determined by latitude and longitude.
[0072] Optionally, before randomly selecting the first unit area from the first region, the number of deployed sampling points can be initialized to 0. After randomly selecting the first unit area from the first region and deploying the target number (e.g., a) of sampling points in the first unit area, the number of deployed sampling points in the first region can be reset to a. After randomly selecting the second unit area from the first region and deploying the target number of sampling points in the second unit area, the number of deployed sampling points in the first region can be reset to 2a.
[0073] It should be noted that the target quantity mentioned above refers to the number of sampling points deployed per unit area corresponding to the geographic scene type of the target. Different geographic scene types correspond to different numbers of sampling points deployed per unit area. For example, when deploying IMT base stations on the ground, the number can be measured by base station density (number of base stations / km). 2 The determination can be made by combining factors such as the proportion of hot spots, but this application does not impose any restrictions.
[0074] Optionally, after selecting the first unit region from the first region, the latitude and longitude information of the first unit region can be determined to determine the number of the first unit region, thereby increasing the number of times the first unit region is selected by one.
[0075] S302. If it is determined that no sampling points of the target number are deployed in the first unit area, the first unit area is determined as the target unit area.
[0076] Optionally, historical information can be used to determine whether the target number of sampling points has been deployed in the first unit area, in order to determine whether the target number of sampling points needs to be deployed in the first unit area.
[0077] S303. If it is determined that the first unit area has a target number of sampling points deployed, select and determine in a preset order whether multiple unit areas corresponding to the first unit area have a target number of sampling points deployed.
[0078] S304. If it is determined that no sampling points of the target number are deployed in the second unit area, the second unit area shall be determined as the target unit area.
[0079] It is understandable that when it is determined that no sampling points of the target number have been deployed in the first unit area, the target number of sampling points can be deployed in the first unit area; when it is determined that a target number of sampling points have been deployed in the first unit area, it can be determined that no sampling points of the target number need to be deployed in the first unit area.
[0080] Optionally, the multiple unit regions corresponding to the first unit region can be understood as the multiple unit regions surrounding the first unit region.
[0081] Optionally, when it is determined that the first unit area has a target number of sampling points deployed, the target number of sampling points can be deployed in the unit areas surrounding the first unit area in a preset order.
[0082] Optionally, the preset order can be defined as follows: take the first unit area as the center, determine a 3*3 area with the unit area as the unit, and starting from the unit area directly above the first unit area, select and determine whether the target number of sampling points are deployed in the surrounding 8 unit areas clockwise.
[0083] Furthermore, once the target number of sampling points is deployed in all 8 unit regions surrounding the first unit region, a 5*5 region can be determined again with the first unit region as the center. Starting from the second unit region directly above the first unit region (i.e., from the middle unit region on the upper side of the outermost ring of the 5*5 region), the target number of sampling points can be deployed in the 16 surrounding unit regions clockwise; and so on.
[0084] For example, such as Figure 8 As shown, based on location information and image information, a first unit region (i.e., unit region numbered 0) is randomly selected from the first region, and it is determined whether the target number of sampling points are deployed in the first unit region. If it is determined that the target number of sampling points are deployed in the first unit region, it is determined again whether the target number of sampling points are deployed in the unit region numbered 1. If it is determined that the target number of sampling points are deployed in the unit region numbered 1, it is determined again whether the target number of sampling points are deployed in the unit region numbered 2, and so on, until it is determined that no target number of sampling points are deployed in a unit region. This unit region (e.g., the second unit region) is then determined as the target unit region.
[0085] In this embodiment, based on location information and image information, a unit region for which the target number of sampling points needs to be deployed can be determined by randomly selecting a unit region from the first region. After selecting the unit region, it is further determined whether the target number of sampling points has been deployed in that unit region. If it is determined that the target number of sampling points has been deployed in the selected unit region, the unit region is reselected and determined according to a preset order, and it is then determined whether the target number of sampling points has been deployed in the reselected unit region. This achieves the effect of deploying sampling points in the unit region without repetition, thus uniformly deploying sampling points in the first region.
[0086] In one design, a unit area corresponds to multiple pixels; such as Figure 9 As shown, in a sampling point deployment method provided in this application embodiment, the method of "randomly selecting a first unit region from a first region based on location information and image information" in step S301 can specifically include S401-S402:
[0087] S401. Based on location information and image information, randomly select target pixels from the first region and determine the latitude and longitude information of the target pixels.
[0088] Optionally, when selecting a unit region from the first region, the selected unit region can be determined by randomly selecting pixels from the first region.
[0089] Specifically, the number of pixels corresponding to the first region in the image information can be predetermined, and each pixel can be numbered based on its position information. Then, a pixel can be randomly selected from all pixels corresponding to the first region, and the latitude and longitude of the selected pixel can be determined as (longitude, longitude, longitude). x lat x ).
[0090] S402. Based on the latitude and longitude information of the target pixel, determine the first unit region corresponding to the target pixel.
[0091] Optionally, after determining the latitude and longitude information of the target pixel, the unit region to which the latitude and longitude information of the target pixel belongs can be determined based on the latitude and longitude information corresponding to each unit region included in the first region, thereby determining the first unit region corresponding to the target pixel.
[0092] Optional, combined Figure 8 As shown, the latitude and longitude information of the target pixel (long) can be used. x lat x Centered on ) and determine 1km 2The area region is the first unit region, and it expands outward from the first unit region. The first unit region can be understood as the first ring of unit regions, which includes 1 unit region. The second ring of unit regions consists of multiple unit regions adjacent to the first unit region, which includes 8 unit regions. And so on, the third ring of unit regions includes 16 unit regions. The number of unit regions in the kth ring is max{1,8(k-1)}.
[0093] It can be understood that, based on the above rules, the selected unit region is the m-th (m = 0, 1, ..., max{1, 8(k-1)}-1) unit region corresponding to the selected pixel in the n-th ring.
[0094] Optionally, the distance granularity corresponding to the first unit region can also be determined, so that the latitude granularity θ can be determined according to R*θ / 180*π=1. lat And according to R*θ / 180*π*cos(lat x ) = 1 determines the longitude granularity θ long Where R is the equivalent radius of the Earth.
[0095] Furthermore, determine the diffusion distribution of max{1,8(k-1)} unit regions within (long x lat x The surrounding area: that is, the latitude and longitude of the 0th unit region in the nth circle (longitude). x’ lat x’ ) is (long x lat x +(n-1)*θ lat ), the latitude and longitude of the first unit region in the nth circle (long x’ lat x’ ) is (long x +θ long lat x +(n-1)*θ lat ).
[0096] In this embodiment of the application, by randomly selecting pixels to determine the randomly selected unit area, sampling points can be deployed more evenly in the first area.
[0097] In a design, such as Figure 10 As shown, in a sampling point deployment method provided in this application embodiment, the method of "determining whether a target number of sampling points are deployed in the first unit area" in step S301 above may specifically include S501-S503:
[0098] S501. Determine the number of times the first unit region is selected.
[0099] Optionally, if the first unit region is randomly selected from the first region, the selection count of the first unit region is increased by one.
[0100] Optionally, if the first unit region is selected from multiple unit regions corresponding to other unit regions in a preset order, the number of times the first unit region is selected is increased by one, and the other unit regions are any unit regions other than the first unit region among the multiple unit regions included in the first region.
[0101] S502. If the number of times the first unit area is selected is 0, it is determined that no sampling points of the target number have been deployed in the first unit area.
[0102] S503. If the number of times the first unit area is selected is not 0, determine that the first unit area has a target number of sampling points deployed.
[0103] Optionally, if it is determined that the number of times the first unit area is selected is not 0, it is necessary to select and determine whether the target number of sampling points are deployed in multiple unit areas corresponding to the first unit area in turn, based on the above preset order, so as to redetermine the unit areas where sampling points need to be deployed.
[0104] In this embodiment of the application, by determining whether the number of times the first unit region is selected is 0, it is possible to directly determine whether the first unit region has a target number of sampling points deployed, thereby improving the efficiency of determining whether the first unit region has a target number of sampling points deployed.
[0105] In a design, such as Figure 11 As shown, in the sampling point deployment method provided in this application embodiment, the method in step S501 above may specifically include S601-S602:
[0106] S601. Determine the number of times each pixel is selected among the multiple pixels included in the first unit region.
[0107] S602. Determine the number of times the first unit region is selected based on the sum of the number of times each pixel is selected.
[0108] Optionally, after selecting the target pixel from the first region, the number of times the target pixel is selected can be recorded and the number of times the target pixel is selected can be incremented by one. Thus, the number of times the unit region is selected can be determined by the number of times each pixel in the unit region is selected.
[0109] For example, such as Figure 12As shown, when it is necessary to deploy sampling points in the first region of a preset area, firstly, determine the number of sampling points T to be deployed in the first region, the total number of pixels P included in the first region, the number of sampling points n deployed per unit area in the first region, and initialize the selection count S corresponding to each pixel to 0, and initialize the number of deployed sampling points N to 0. Further, randomly select pixel X from the P pixels included in the first region, and determine the selection count S corresponding to pixel X. X And increment the selection count of pixel X by one; based on the selection count S of pixel X X Determine the unit area where sampling points need to be deployed, and evenly deploy n sampling points within the unit area, and update the number of deployed sampling points N. After deploying sampling points within the unit area, it is also necessary to determine the relationship between the number of deployed sampling points N and the number of sampling points T. When it is determined that the number of deployed sampling points N is greater than or equal to the number of sampling points T, the deployment of sampling points ends; when it is determined that the number of deployed sampling points N is less than the number of sampling points T, repeat the operation of randomly selecting pixel X from each pixel point P included in the first area until it is determined that the number of deployed sampling points N is greater than or equal to the number of sampling points T.
[0110] The foregoing mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the units and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0111] This application embodiment can divide a sampling point deployment device into functional modules based on the above method example. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. Optionally, the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0112] Figure 13 This is a schematic diagram of a sampling point deployment device provided in an embodiment of this application. Figure 13As shown, a sampling point deployment device 40 is used to improve the effectiveness and practicality of deploying sampling points within a certain area, for example, for performing... Figure 5 A sampling point deployment method is shown. The sampling point deployment device 40 includes: an acquisition unit 401, a determination unit 402, and a processing unit 403.
[0113] The acquisition unit 401 is used to acquire the location information and image information of a preset area. The image information includes: the latitude and longitude information of each pixel and the geographic scene type of each pixel.
[0114] The determining unit 402 is used to determine the target unit region from the first region based on location information and image information through target operation;
[0115] Processing unit 403 is used to uniformly deploy a target number of sampling points in a target unit area. The first area is a preset area where the geographic scene type is the target type. The number of targets is related to the target type, and different geographic scene types correspond to different number of targets.
[0116] The determining unit 402 is used to determine multiple unit regions from the first region through multiple target operations when the total number of sampling points deployed in the first region is less than a preset number.
[0117] Processing unit 403 is used to uniformly deploy the target number of sampling points in each unit area, and to determine a unit area from the first area each time through target operation;
[0118] The determining unit 402 is used to complete the deployment of a preset number of sampling points in the first area when the total number of sampling points deployed in the first area is greater than or equal to a preset number.
[0119] In one possible implementation, the processing unit 403 is used to randomly select a first unit region from the first region based on location information and image information;
[0120] Determining unit 402 is used to determine whether a target number of sampling points are deployed in the first unit area;
[0121] The determining unit 402 is used to determine the first unit region as the target unit region when it is determined that no sampling points of the target number are deployed in the first unit region;
[0122] The processing unit 403 is used to select and determine whether the target number of sampling points are deployed in multiple unit areas corresponding to the first unit area in a preset order, when it is determined that the first unit area has a target number of sampling points deployed.
[0123] The determining unit 402 is used to determine the second unit region as the target unit region when the target number of sampling points are not deployed in the second unit region.
[0124] In one possible implementation, a unit region corresponds to multiple pixels; in a sampling point deployment device 40 provided in this application embodiment, the processing unit 403 is used to randomly select target pixels from the first region based on location information and image information;
[0125] Determining unit 402 is used to determine the latitude and longitude information of the target pixel;
[0126] The determining unit 402 is used to determine the first unit region corresponding to the target pixel based on the latitude and longitude information of the target pixel.
[0127] In one possible implementation, in a sampling point deployment device 40 provided in this application embodiment, a determining unit 402 is used to determine the number of times a first unit region is selected. When the first unit region is randomly selected from the first region, the number of times the first unit region is selected is increased by one. Alternatively, when the first unit region is selected sequentially from multiple unit regions corresponding to other unit regions in a preset order, the number of times the first unit region is selected is increased by one. The other unit regions are any unit regions other than the first unit region among the multiple unit regions included in the first region.
[0128] The determining unit 402 is used to determine that no sampling points of the target number have been deployed in the first unit area when the number of selections corresponding to the first unit area is 0.
[0129] The determining unit 402 is used to determine that a target number of sampling points are deployed in the first unit area when the number of times the corresponding area is selected is not 0.
[0130] In one possible implementation, in a sampling point deployment device 40 provided in this application embodiment, a determining unit 402 is used to determine the number of times each pixel is selected among the multiple pixels included in the first unit region;
[0131] The determining unit 402 is used to determine the number of times the first unit region is selected based on the sum of the number of times each pixel is selected.
[0132] In the case of implementing the functions of the integrated modules described above in hardware, this application provides another possible structural diagram of the electronic device involved in the above embodiments. For example... Figure 14 As shown, an electronic device 60 is used to improve the effectiveness and practicality of deploying sampling points within a certain area, for example, for performing... Figure 5 The diagram illustrates a sampling point deployment method. The electronic device 60 includes a processor 601, a memory 602, and a bus 603. The processor 601 and the memory 602 are connected via the bus 603.
[0133] Processor 601 is the control center of the communication device. It can be a single processor or a collective term for multiple processing elements. For example, processor 601 can be a general-purpose central processing unit (CPU) or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.
[0134] As one embodiment, processor 601 may include one or more CPUs, for example Figure 14 CPU 0 and CPU 1 are shown in the diagram.
[0135] The memory 602 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.
[0136] As one possible implementation, the memory 602 can exist independently of the processor 601. The memory 602 can be connected to the processor 601 via a bus 603 and is used to store instructions or program code. When the processor 601 calls and executes the instructions or program code stored in the memory 602, it can implement the sampling point deployment method provided in this application embodiment.
[0137] In another possible implementation, the memory 602 can also be integrated with the processor 601.
[0138] Bus 603 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 14 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0139] It should be pointed out that, Figure 14 The structure shown does not constitute a limitation on the electronic device 60. Except... Figure 14 In addition to the components shown, the electronic device 60 may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.
[0140] As an example, combined Figure 13 The functions implemented by the acquisition unit 401, the determination unit 402, and the processing unit 403 in the electronic device are the same as those of the acquisition unit 401, the determination unit 402, and the processing unit 403. Figure 14 The processor 601 in it has the same function.
[0141] Optional, such as Figure 14 As shown, the electronic device 60 provided in this application embodiment may further include a communication interface 604.
[0142] Communication interface 604 is used to connect with other devices via a communication network. This communication network can be Ethernet, a wireless access network, a wireless local area network (WLAN), etc. Communication interface 604 may include a receiving unit for receiving data and a transmitting unit for transmitting data.
[0143] In one design, the communication interface in the electronic device provided in this application embodiment can also be integrated into the processor.
[0144] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, only the division of the above functional units is used as an example. In practical applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the device can be divided into different functional units to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0145] This application also provides a computer-readable storage medium storing instructions. When a computer executes these instructions, the computer performs each step of the method flow shown in the above-described method embodiments.
[0146] Embodiments of this application provide a computer program product containing instructions that, when executed on a computer, cause the computer to perform a sampling point deployment method as described in the above method embodiments.
[0147] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), registers, hard disks, optical fibers, portable compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing, or any other form of computer-readable storage medium in the art.
[0148] An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and storage medium can reside within an application-specific integrated circuit (ASIC).
[0149] In the embodiments of this application, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0150] Since the electronic devices, computer-readable storage media, and computer program products in the embodiments of this application can be applied to the above methods, the technical effects they can achieve can also be referred to the above method embodiments. The embodiments of this application will not be repeated here.
[0151] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be covered within the scope of protection of this application.
Claims
1. A method for deploying sampling points, characterized in that, The method comprises: acquiring position information and image information of a preset area, the image information comprising: longitude and latitude information of each pixel point, and geographical scene type of each pixel point; determining a target unit area from a first area based on the position information and the image information through a target operation, comprising: selecting a first unit area from the first area at random based on the position information and the image information, and determining whether a target number of sampling points are deployed in the first unit area; in a case where it is determined that the target number of sampling points are not deployed in the first unit area, determining the first unit area as the target unit area; in a case where it is determined that the target number of sampling points are deployed in the first unit area, sequentially selecting and determining whether the target number of sampling points are deployed in a plurality of unit areas corresponding to the first unit area according to a preset order; in a case where it is determined that the target number of sampling points are not deployed in a second unit area, determining the second unit area as the target unit area, and uniformly deploying the target number of sampling points in the target unit area, the first area being an area of the preset area with a target type of geographical scene, the target number being related to the target type, different geographical scene types corresponding to different target numbers; the uniform deployment comprising: randomly deploying the target number of sampling points in the target unit area according to longitude and latitude; in a case where it is determined that a total number of sampling points deployed in the first area is less than a preset number, determining a plurality of unit areas from the first area through the target operation multiple times, and uniformly deploying the target number of sampling points in each unit area, one unit area being determined from the first area through the target operation each time; in a case where it is determined that the total number of sampling points deployed in the first area is greater than or equal to the preset number, completing deployment of the preset number of sampling points in the first area.
2. The method of claim 1, wherein, one unit area corresponding to a plurality of pixel points; the selecting of the first unit area from the first area at random based on the position information and the image information comprises: selecting a target pixel point from the first area at random based on the position information and the image information, and determining longitude and latitude information of the target pixel point; determining the first unit area corresponding to the target pixel point based on the longitude and latitude information of the target pixel point.
3. The method of claim 1, wherein, the determining of whether the target number of sampling points are deployed in the first unit area comprises: determining a selected number of times corresponding to the first unit area, the selected number of times corresponding to the first unit area being increased by one in a case where the first unit area is selected from the first area at random, or the selected number of times corresponding to the first unit area being increased by one in a case where the first unit area is sequentially selected from a plurality of unit areas corresponding to other unit areas according to the preset order, the other unit areas being any unit area except the first unit area from the plurality of unit areas included in the first area; If the number of times the first unit area is selected is 0, it is determined that the target number of sampling points are not deployed in the first unit area; If the number of times the first unit region is selected is not 0, it is determined that the first unit region has the target number of sampling points deployed.
4. The method of claim 3, wherein, Determining the number of times the first unit region is selected includes: Determine the number of times each pixel is selected among the multiple pixels included in the first unit region; The number of times the first unit region is selected is determined by summing the number of times each pixel is selected.
5. A sampling point deployment apparatus, characterized by, The sampling point deployment device includes: an acquisition unit, a determination unit, and a processing unit; The acquisition unit is used to acquire location information and image information of a preset area. The image information includes: latitude and longitude information of each pixel and geographic scene type of each pixel. The determining unit is configured to determine a target unit region from the first region based on the location information and the image information through target operation. The processing unit is configured to uniformly deploy a target number of sampling points in the target unit area, wherein the first area is a region in the preset area whose geographical scene type is the target type, and the target number is related to the target type, with different geographical scene types corresponding to different target numbers; the uniform deployment includes: randomly deploying the target number of sampling points in the target unit area according to latitude and longitude. The determining unit is used to determine multiple unit regions from the first region multiple times through the target operation when the total number of sampling points deployed in the first region is less than a preset number. The processing unit is configured to uniformly deploy the target number of sampling points in each unit area, and determine a unit area from the first area each time through the target operation; The determining unit is configured to deploy a preset number of sampling points in the first area when the total number of sampling points deployed in the first area is greater than or equal to the preset number. The processing unit is configured to randomly select a first unit region from the first region based on the location information and the image information; The determining unit is used to determine whether the target number of sampling points are deployed in the first unit area; The determining unit is configured to determine the first unit region as the target unit region when it is determined that no sampling points of the target number are deployed in the first unit region. The processing unit is configured to, in accordance with a preset order, sequentially select and determine whether the target number of sampling points are deployed in multiple unit areas corresponding to the first unit area when it is determined that the first unit area has deployed the target number of sampling points. The determining unit is configured to determine the second unit region as the target unit region when it is determined that no sampling points of the target number are deployed in the second unit region.
6. The sampling point deployment device of claim 5, wherein, One unit area corresponds to multiple pixels; The processing unit is configured to randomly select target pixels from the first region based on the location information and the image information; The determining unit is used to determine the latitude and longitude information of the target pixel. The determining unit is used to determine the first unit region corresponding to the target pixel based on the latitude and longitude information of the target pixel.
7. The sampling point deployment device of claim 5, wherein, The determining unit is used to determine the number of times the first unit region is selected. When the first unit region is randomly selected from the first region, the number of times the first unit region is selected is increased by one. Alternatively, when the first unit region is selected sequentially from multiple unit regions corresponding to other unit regions in a preset order, the number of times the first unit region is selected is increased by one. The other unit regions are any unit regions other than the first unit region among the multiple unit regions included in the first region. The determining unit is configured to determine that the target number of sampling points are not deployed in the first unit area when the number of selections corresponding to the first unit area is 0. The determining unit is used to determine that the target number of sampling points are deployed in the first unit area when the number of times the first unit area is selected is not 0.
8. The sampling point deployment device of claim 7, wherein, The determining unit is used to determine the number of times each pixel is selected among the multiple pixels included in the first unit region; The determining unit is used to determine the number of times the first unit region is selected based on the sum of the number of times each pixel is selected.
9. An electronic device, comprising: include: A processor and a memory; wherein the memory is used to store one or more programs, the one or more programs including computer-executable instructions, wherein when the electronic device is running, the processor executes the computer-executable instructions stored in the memory to cause the electronic device to perform a sampling point deployment method according to any one of claims 1-4.
10. A computer-readable storage medium storing one or more programs, the one or more programs comprising instructions for: The one or more programs include instructions that, when executed by a computer, cause the computer to perform a sampling point deployment method as described in any one of claims 1-4.
Citation Information
Patent Citations
Soil newly-added sampling point supplementary layout method based on farmland landscape zoning
CN111222742A
Sampling point distribution method and device based on landscape heterogeneity and electronic equipment
CN113344105A
