A weather station intelligent site selection method, system, readable storage medium and device

By using drones to capture images of mountainous areas and process them, the construction sites for weather stations can be identified and selected, solving the problem of time-consuming and labor-intensive manual site selection and achieving safe and efficient intelligent site selection.

CN115660381BActive Publication Date: 2026-11-27江西省气象服务中心(江西省专业气象台江西省气象宣传与科普中心) +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211568674.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-08
Publication Date
2026-11-27
Estimated Expiration
2042-12-08

AI Technical Summary

Technical Problem

Current technologies rely on manual methods for selecting meteorological station sites, which is time-consuming and labor-intensive, and there are safety risks associated with exploration in mountainous areas.

Method used

By using drones to take pictures of mountainous areas and identifying open areas through image processing models, and combining this with preset site selection criteria, the construction sites for meteorological stations are intelligently selected.

Benefits of technology

It enables intelligent site selection for weather stations, reducing the time and labor input required for manual site selection and improving safety and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115660381B_ABST
    Figure CN115660381B_ABST
Patent Text Reader

Abstract

The application provides a weather station intelligent site selection method, system, readable storage medium and equipment, the method is through image processing to the mountain area picture shot by the unmanned aerial vehicle, obtains each characteristic area, according to each characteristic area, respectively calculates the area of the corresponding region, determines the target characteristic area corresponding to the maximum area, and according to the target characteristic area, the corresponding preset site selection standard is called, the actual open area and the actual area are calculated, and whether the actual area is greater than the preset area is judged; if yes, the first position coordinate to which the actual open area belongs and the second position coordinate of the weather station closest to the first position coordinate are obtained, and the first straight line distance between the two coordinates is calculated to determine whether the distance between the construction point and other weather stations meets the requirements; if yes, the actual open area is recommended as the construction point of the weather station, so that the intelligent site selection of the weather station can be realized, and the problem of time and labor consumption caused by manual site selection is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the technical field of meteorological station site selection, specifically relating to a method, system, readable storage medium, and device for intelligent meteorological station site selection. Background Technology

[0002] With the development of society, people's lives are becoming increasingly intertwined with meteorology. Weather stations can monitor various meteorological parameters in real time, such as temperature, humidity, wind speed, wind direction, rainfall, air pressure, and ultraviolet radiation. Among these, the accuracy of meteorological data has attracted much attention. In order to address the issue of the accuracy of meteorological data to a certain extent, multiple weather stations are often built for joint monitoring.

[0003] Before constructing a weather station, site selection is required, which has many requirements. For example, the location should be representative of a large area of ​​weather and climate; it should be built in a flat and open area without tall buildings, forests, or large ponds around it; in low mountain and hilly areas with relatively small differences in altitude, the site should be located on a relatively flat mountaintop. If the weather station is not constructed in accordance with these requirements, it will inevitably affect the normal monitoring work of the weather station.

[0004] If a weather station is to be built in a mountainous area, it is necessary to conduct on-site surveys by manpower to determine a suitable location for construction. Relying solely on manual site selection will consume a lot of time. In addition, since the survey location is in a mountainous area with complex road conditions, it also poses a threat to the life safety of the engineering personnel. Summary of the Invention

[0005] Based on this, the present invention provides a method, system, readable storage medium and device for intelligent site selection of weather stations, aiming to solve the problem of time-consuming and labor-intensive site selection relying on manual methods in the prior art.

[0006] A first aspect of this invention provides a method for intelligent site selection of weather stations, the method comprising: The system acquires images of mountainous areas taken by a drone within a preset area, and inputs these images into an image processing model to obtain various feature regions, which include at least an open area. Based on each of the aforementioned feature regions, calculate the corresponding region area, determine the target feature region corresponding to the maximum region area, and call the corresponding preset site selection criteria based on the target feature region; Based on the preset site selection criteria, determine the actual open area and the actual area area used to represent the open area, and determine whether the actual area area is greater than the preset area. If so, obtain the first location coordinates of the actual open area, obtain the second location coordinates of the weather station closest to the first location coordinates based on the first location coordinates, and calculate the first straight-line distance between the first location coordinates and the second location coordinates; Determine whether the first straight-line distance is greater than a preset distance; If so, the actual open area will be recommended as the construction site for the meteorological station.

[0007] Furthermore, the step of acquiring mountainous area images taken by the drone within a preset area and inputting the mountainous area images into an image processing model to obtain various feature regions, wherein the feature regions include at least open areas, includes the following steps before: Historical weather station images and historical mountain area images are acquired, and the historical weather station images are preprocessed to obtain preprocessed images; The preprocessed image is subjected to connected component identification processing to obtain a set of all connected regions in the preprocessed image. A preset connected region screening algorithm is used to screen the connected regions in the set of connected regions to obtain the target connected regions corresponding to the historical weather stations. Obtain a standard connected region, perform similarity matching between the target connected region and the standard connected region to obtain a similarity value, and determine whether the similarity value is greater than a threshold. If so, then based on the target connected region, extend outward by a preset distance to obtain the target image, and restore the RGB of the extended region in the target image to obtain the first color image; The feature points of the extended region in the first color image are obtained, and the inner extension filling of the target connected region is performed based on the feature points to obtain the training image; A number of training images are acquired to form a first training set. Meanwhile, feature regions in the historical mountainous area images are manually labeled to obtain a second training set. The feature regions include exploitable and unexploitable regions. The first and second training sets are used to train the neural network model to establish the image processing model.

[0008] Furthermore, the step of preprocessing the historical weather station images to obtain preprocessed images includes: The historical weather station images are sequentially processed by grayscale and binarization to obtain the preprocessed image. The grayscale processing formula is as follows: Where I(x, y) represents the intensity value of the image at coordinates (x, y), I R(x, y) represents the intensity value of the red channel in the image at coordinates (x, y), I G (x, y) represents the intensity value of the green channel in the image at coordinates (x, y), I B (x, y) represents the intensity value of the blue channel in the image at coordinates (x, y).

[0009] Furthermore, in the step of using a preset connected region screening algorithm to screen the connected regions in the connected region set to obtain the target connected regions corresponding to historical weather stations, the formula of the connected region screening algorithm can be expressed as: in, The area of ​​a connected region is represented by the number of pixels. and These are represented in pixels as the width and height of the connected region, respectively. and This is represented as a threshold for the area of ​​the connected region. This is represented as the aspect ratio threshold of the connected region.

[0010] Furthermore, the step of calculating the corresponding area of ​​each of the aforementioned feature regions, determining the target feature region corresponding to the maximum area, and calling the corresponding preset location selection criteria based on the target feature region includes: Obtain the area of ​​the preset region and the total number of pixels in the mountainous area image, and determine the independent area of ​​a single pixel based on the area and the total number of pixels; The number of pixels corresponding to each feature region in the mountainous area image is obtained, and the area of ​​each region is calculated based on the independent area. When the target feature area corresponding to the maximum area of ​​the region is the developable area, the first preset site selection standard is invoked. When the target feature area corresponding to the maximum area of ​​the region is the undevelopable area, the second preset site selection standard is invoked.

[0011] Furthermore, the step of determining the actual open area and the actual area area to represent the open area according to the preset site selection criteria, and determining whether the actual area area is greater than the preset area, includes: Obtain the open area, which includes at least one open sub-area, and determine the target open sub-area with the largest area among the open sub-areas; Determine whether the area of ​​the target open sub-region is greater than a preset area; If not, obtain the distance between the target empty sub-region and the adjacent empty sub-region, and determine whether the distance is less than the preset distance; If so, determine whether the preset location selection criterion is the first preset location selection criterion; When the preset site selection standard is determined to be the first preset site selection standard, the target open sub-region and the adjacent open sub-region are combined to obtain the actual open region and the actual region area, wherein the actual region area is the sum of the areas of the target open sub-region and the adjacent open sub-region. If it is determined that the preset location selection criterion is not the first preset location selection criterion, then it is determined whether the preset location selection criterion is the second preset location selection criterion. If so, the target open sub-region is marked as the actual open region, and the area of ​​the target open sub-region is marked as the area of ​​the actual region.

[0012] Furthermore, the step of determining whether the first straight-line distance is greater than a preset distance includes: When the first straight-line distance is greater than the preset distance, the target constraint in the mountainous area image and the third position coordinates of the target constraint are determined based on the mountainous area image. Calculate the second straight-line distance between the first position coordinates and the third position coordinates, and determine whether the second straight-line distance is greater than the standard distance; If so, proceed with the step of recommending the actual open area as a construction site for the weather station.

[0013] A second aspect of this invention provides an intelligent site selection system for weather stations, the system comprising: The image processing module is used to acquire mountainous images taken by the drone within a preset area, and input the mountainous images into the image processing model to obtain various feature regions, wherein the feature regions include at least an open area; The target feature region determination module is used to calculate the corresponding region area according to each of the feature regions, determine the target feature region corresponding to the maximum value of the region area, and call the corresponding preset site selection standard according to the target feature region; The first judgment module is used to determine the actual open area and the actual area area representing the open area according to the preset site selection criteria, and to determine whether the actual area area is greater than the preset area. The first straight-line distance calculation module is used to obtain the first location coordinates of the actual open area when it is determined that the actual area is greater than the preset area, obtain the second location coordinates of the meteorological station closest to the first location coordinates based on the first location coordinates, and calculate the first straight-line distance between the first location coordinates and the second location coordinates. The second judgment module is used to determine whether the first straight-line distance is greater than a preset distance; The recommendation module is used to recommend the actual open area as a construction site for a weather station when it is determined that the first straight-line distance is greater than a preset distance.

[0014] A third aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the intelligent meteorological station site selection method provided in the first aspect.

[0015] A fourth aspect of the present invention provides a weather station intelligent site selection device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the weather station intelligent site selection method provided in the first aspect.

[0016] The intelligent site selection method, system, readable storage medium, and device for weather stations provided in the embodiments of the present invention have the following beneficial effects: By acquiring images of mountainous areas taken by drones within a preset area and processing these images to obtain characteristic regions, each of which includes at least an open area, the terrain and landforms of the mountainous area are determined based on these characteristic regions. Specifically, the area of ​​each corresponding region is calculated, and the target characteristic region corresponding to the maximum area is determined. The corresponding preset site selection criteria are then applied based on the target characteristic region. According to the preset site selection criteria, the actual open area and its area are determined to represent the open area, and it is determined whether the actual area is greater than the preset area. If so, the first location coordinates of the actual open area are obtained, and the second location coordinates of the nearest weather station are obtained based on these first location coordinates. The first straight-line distance between the first and second location coordinates is calculated to determine whether the distance between the construction site and other weather stations meets the requirements. If so, the actual open area is recommended as the construction site for the weather station, thus achieving intelligent site selection for the weather station and solving the problem of time-consuming and labor-intensive manual site selection. Attached Figure Description

[0017] Figure 1 This is a flowchart illustrating the implementation of an intelligent site selection method for weather stations provided in the first embodiment of the present invention; Figure 2 This is a structural block diagram of a meteorological station intelligent site selection system provided in the second embodiment of the present invention; Figure 3 This is a structural block diagram of a weather station intelligent site selection device provided in the third embodiment of the present invention. Detailed Implementation

[0018] To facilitate understanding of the present invention, a more complete description will be given below with reference to the accompanying drawings. Several embodiments of the invention are illustrated in the drawings. However, the invention can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.

[0019] It should be noted that when a component is said to be "fixed to" another component, it can be directly on the other component or there may be an intervening component. When a component is said to be "connected to" another component, it can be directly connected to the other component or there may be an intervening component. The terms "vertical," "horizontal," "left," "right," and similar expressions used in this document are for illustrative purposes only.

[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.

[0021] Example 1 Please see Figure 1 , Figure 1 The present invention illustrates a method for intelligent site selection of a weather station according to a first embodiment of the present invention, the method specifically including steps S01 to S06.

[0022] Step S01: Obtain mountain images taken by the drone within a preset area, and input the mountain images into an image processing model to obtain various feature regions, wherein the feature regions include at least an open area.

[0023] Specifically, the first step should be to establish an image processing model. This process involves acquiring historical weather station images and historical mountain area images, and then preprocessing the historical weather station images to obtain a preprocessed image. Specifically, the historical weather station images are sequentially converted to grayscale and then binarized to obtain the preprocessed image. The formula for grayscale conversion is as follows: Where I(x, y) represents the intensity value of the image at coordinates (x, y), I R (x, y) represents the intensity value of the red channel in the image at coordinates (x, y), I G (x, y) represents the intensity value of the green channel in the image at coordinates (x, y), I B (x, y) represents the intensity value of the blue channel in the image at coordinates (x, y).

[0024] Furthermore, the preprocessed image undergoes connected component identification processing to obtain a set of all connected regions in the preprocessed image. A preset connected region screening algorithm is then used to screen the connected regions in this set to obtain the target connected regions corresponding to historical weather stations. The formula for the connected region screening algorithm can be expressed as: in, The area of ​​a connected region is represented by the number of pixels. and These are represented in pixels as the width and height of the connected region, respectively. and This is represented as a threshold for the area of ​​the connected region. This is expressed as the aspect ratio threshold of the connected region; Obtain the standard connected region, perform similarity matching between the target connected region and the standard connected region to obtain the similarity value, and determine whether the similarity value is greater than the threshold. If so, then based on the target connected region, extend outward by a preset distance to obtain the target image, and restore the RGB of the extended region in the target image to obtain the first color image. It can be understood that the extended region in the first color image is in color, and the rest is a grayscale image. The feature points of the extended region are obtained, and the inner extension of the target connected region is filled according to the feature points to obtain the training image. That is, the area established by the weather station is restored by the image of the extended region. Several training images are acquired to form the first training set. Meanwhile, the feature regions in the historical mountainous images are manually labeled to obtain the second training set. The feature regions include both exploitable and unexploitable areas. The first and second training sets are then used to train the neural network model to establish an image processing model.

[0025] It should be noted that the feature regions can include developable areas, undevelopable areas, open areas, and road areas, etc. These areas can be manually labeled to form a training set, which is used to train the image processing model, thus completing the model's establishment. Once the image processing model is established, inputting mountainous images taken by a drone within a preset area into the model will produce images containing each feature region.

[0026] Step S02: Calculate the area of ​​each region according to the feature regions, determine the target feature region corresponding to the maximum area, and call the corresponding preset location selection standard according to the target feature region.

[0027] It should be noted that since the mountain images are obtained by taking pictures and mapping within a preset area using drones, the drones can obtain latitude and longitude location information in real time through GPS positioning. After performing the shooting task within the preset area, the drones can obtain the corresponding area based on the latitude and longitude location information, and then obtain the total number of pixels in the mountain image. Based on the area and the total number of pixels, the independent area of ​​a single pixel can be calculated. The area can then be divided by the total number of pixels to obtain the independent area of ​​a single pixel.

[0028] Because mountain images, through image processing, have revealed multiple characteristic regions, different regions can be represented by different colors for easy differentiation. For example, developable areas can be represented by green, undevelopable areas by yellow, open areas by white, and road areas by gray. By obtaining the number of pixels in green, yellow, white, and gray respectively, and multiplying each by the independent area of ​​a single pixel, the corresponding area of ​​developable, undevelopable, open, and road areas is obtained. The target characteristic region is determined based on the maximum area of ​​each region. Understandably, when the area of ​​the developable region is the largest, the first preset site selection criterion is applied; when the area of ​​the undevelopable region is the largest, the second preset site selection criterion is applied; and when the area of ​​the open region is the largest, the site selection restrictions are greatly reduced, and the distance threshold between adjacent weather stations can be used as a requirement for site selection.

[0029] Step S03: Based on the preset site selection criteria, determine the actual open area and the actual area area used to represent the open area, and determine whether the actual area area is greater than the preset area. If so, proceed to step S04.

[0030] Understandably, mountainous area images typically contain several open sub-regions, which together constitute the open area. These open sub-regions are distributed throughout the mountainous area images. First, the area of ​​each open sub-region is calculated, and the largest target open sub-region is identified. Then, it is determined whether the area of ​​the target open sub-region is greater than a preset area, which is the area required for site construction. If it is, then a weather station can be directly built on the target open sub-region; otherwise, the construction requirements are not met. Next, the distance between the target open sub-region and its adjacent open sub-regions is obtained. This distance is the minimum distance between the two regions and can be calculated using the latitude and longitude information of the edges of the two regions. Finally, it is determined whether this distance is less than a preset distance. If so, it means that the target open sub-region is relatively close to the adjacent open sub-regions. It is then determined whether the preset site selection standard is the first preset site selection standard. If so, it means that the characteristic area in the mountainous area image is mainly a developable area. Conditions that meet the requirements can be set according to the first preset site selection standard, such as the distance requirement between the nearby water body and the construction point. Since the target open sub-region is relatively close to the adjacent open sub-regions, if both the target open sub-region and the adjacent open sub-regions are developable areas, some vegetation can be sacrificed to connect the target open sub-region and the adjacent open sub-regions, that is, combine them together to obtain the actual open area and the actual area. The actual area is the sum of the areas of the target open sub-region and the adjacent open sub-regions.

[0031] When the preset site selection standard is determined to be the second preset site selection standard, it means that the characteristic areas in the mountainous area image are mainly undevelopable areas. Even if the target open sub-area is close to the adjacent open sub-area, development is difficult because the rocks between the two areas are not conducive to destruction. Therefore, the target open sub-area is not combined with the adjacent open sub-area. The target open sub-area is marked as the actual open area, and the area of ​​the target open sub-area is marked as the actual area area. Then, the actual area area is compared with the preset area.

[0032] In step S04, the first location coordinates of the actual open area are obtained, and the second location coordinates of the weather station closest to the first location coordinates are obtained based on the first location coordinates. The first straight-line distance between the first location coordinates and the second location coordinates is calculated.

[0033] Specifically, the actual open area is obtained by combining the target open sub-region with adjacent open sub-regions. First, the centroids of the target open sub-region and adjacent open sub-regions are calculated separately. Then, the average value of each centroid is calculated to obtain the first position coordinates. The formula for calculating the centroid coordinates G(x, y) of each region can be expressed as: Each region can be divided into n finite regular shapes X1, X2, ..., X n The centroid of the regular shape is G. i G ia Let G be the x-coordinate of the centroid of the i-th figure. ib Let G be the ordinate of the centroid of the i-th figure. i The area of ​​the corresponding figure is S i .

[0034] In addition, since the second location coordinates of the weather station are known and can be obtained via GPS, the first straight-line distance between the first and second location coordinates can be calculated.

[0035] Step S05: Determine whether the first straight-line distance is greater than the preset distance. If so, proceed to step S06.

[0036] In step S06, the actual open area is recommended as the construction site for the meteorological station.

[0037] In this embodiment, when the first straight-line distance is greater than a preset distance, the target obstacle and its third location coordinates are determined based on the mountain area image. Specifically, the target obstacle can be an obstacle of a certain height. The determination of the target obstacle can be confirmed manually. Simultaneously, to ensure that there are no obstacles near the construction site that could affect the weather, the second straight-line distance between the first and third location coordinates is calculated, and it is determined whether the second straight-line distance is greater than the standard distance. If so, it means that the actual open area can be used as a site for the construction of a weather station.

[0038] In addition, during the image processing stage, road areas are also marked in the mountain images. When multiple actual open areas are available as construction sites, considering the convenience of workers going up the mountain to carry out construction, the actual open area closest to the road area can be determined as the final construction site.

[0039] In summary, the intelligent meteorological station site selection method in the above embodiments of the present invention acquires mountainous area images taken by a drone within a preset area, processes the mountainous area images to obtain various feature regions, each of which includes at least an open area; based on each feature region, the topography of the mountainous area is determined, specifically, the area of ​​the corresponding region is calculated, the target feature region corresponding to the maximum area is determined, and the corresponding preset site selection standard is invoked based on the target feature region; based on the preset site selection standard, the actual open area and actual area representing the open area are determined, and it is determined whether the actual area is greater than the preset area; if so, the first location coordinates of the actual open area are obtained, and based on the first location coordinates, the second location coordinates of the meteorological station closest to the first location coordinates are obtained, and the first straight-line distance between the first location coordinates and the second location coordinates is calculated to determine whether the distance between the construction point and other meteorological stations meets the requirements; if so, the actual open area is recommended as the construction point of the meteorological station, thereby realizing intelligent site selection of meteorological stations and solving the problem of relying on manual site selection, which is time-consuming and labor-intensive.

[0040] Example 2 Please see Figure 2 , Figure 2 This is a structural block diagram of a weather station intelligent site selection system 200 provided in an embodiment of the present invention. The weather station intelligent site selection system 200 includes: an image processing module 21, a target feature region determination module 22, a first judgment module 23, a first straight-line distance calculation module 24, a second judgment module 25, and a recommendation module 26, wherein: Image processing module 21 is used to acquire mountainous images taken by the drone within a preset area, and input the mountainous images into an image processing model to obtain various feature regions, wherein the feature regions include at least an open area; The target feature region determination module 22 is used to calculate the corresponding region area according to each of the feature regions, determine the target feature region corresponding to the maximum value of the region area, and call the corresponding preset site selection standard according to the target feature region; The first judgment module 23 is used to determine the actual open area and the actual area area representing the open area according to the preset site selection criteria, and to determine whether the actual area area is greater than the preset area. The first straight-line distance calculation module 24 is used to obtain the first location coordinates of the actual open area when it is determined that the actual area is greater than the preset area, obtain the second location coordinates of the meteorological station closest to the first location coordinates based on the first location coordinates, and calculate the first straight-line distance between the first location coordinates and the second location coordinates, wherein the first location coordinates are the centroid coordinates of the actual open area. The second judgment module 25 is used to determine whether the first straight-line distance is greater than a preset distance; The recommendation module 26 is used to recommend the actual open area as a construction site for a meteorological station when it is determined that the first straight-line distance is greater than a preset distance.

[0041] Furthermore, in some optional embodiments of the present invention, the intelligent meteorological station site selection system 200 further includes: The preprocessing module is used to acquire historical weather station images and historical mountain images, and to preprocess the historical weather station images to obtain preprocessed images; The target connected component determination module is used to perform connected component identification processing on the preprocessed image to obtain a set of all connected components in the preprocessed image. A preset connected component screening algorithm is then used to screen the connected components in the set to obtain the target connected components corresponding to historical weather stations. The formula for the connected component screening algorithm can be expressed as: in, The area of ​​a connected region is represented by the number of pixels. and These are represented in pixels as the width and height of the connected region, respectively. and This is represented as a threshold for the area of ​​the connected region. This is expressed as the aspect ratio threshold of the connected region; The third judgment module is used to obtain a standard connected region, perform similarity matching between the target connected region and the standard connected region to obtain a similarity value, and determine whether the similarity value is greater than a threshold. The RGB restoration module is used to, when the similarity value is greater than a threshold, expand outward by a preset distance based on the target connected region to obtain the target image, and restore the RGB of the expanded region in the target image to obtain the first color image; The filling module is used to obtain feature points of the extended region in the first color image, and fill the inner extension of the target connected region according to the feature points to obtain the training image; The training module is used to acquire several training images to form a first training set, and to manually label the feature regions in the historical mountainous area images to obtain a second training set. The feature regions include exploitable and unexploitable regions. The first and second training sets are used to train the neural network model to establish the image processing model.

[0042] Furthermore, in some optional embodiments of the present invention, the preprocessing module includes: The preprocessing unit is used to sequentially perform grayscale and binarization processing on the historical weather station images to obtain the preprocessed image, wherein the formula for grayscale processing is: Where I(x, y) represents the intensity value of the image at coordinates (x, y), I R (x, y) represents the intensity value of the red channel in the image at coordinates (x, y), I G (x, y) represents the intensity value of the green channel in the image at coordinates (x, y), I B (x, y) represents the intensity value of the blue channel in the image at coordinates (x, y).

[0043] Furthermore, in some optional embodiments of the present invention, the first determining module 23 includes: An acquisition unit is configured to acquire the open area, the open area including at least one open sub-area, and to determine the target open sub-area with the largest area among the open sub-areas. The first judgment subunit is used to determine whether the area of ​​the target open sub-region is greater than a preset area; The second judgment subunit is used to obtain the distance between the target open sub-region and the adjacent open sub-region when it is determined that the area of ​​the target open sub-region is not greater than the preset area, and to determine whether the distance is less than the preset distance. The third judgment subunit is used to determine whether the preset addressing standard is the first preset addressing standard when the distance is determined to be less than the preset distance. The combination unit is used to combine the target open sub-region and the adjacent open sub-region when the preset location standard is determined to be the first preset location standard, to obtain the actual open region and the actual region area, wherein the actual region area is the sum of the areas of the target open sub-region and the adjacent open sub-region. The fourth judgment subunit is used to determine whether the preset location standard is the second preset location standard when it is determined that the preset location standard is not the first preset location standard. The marking unit is used to mark the target open sub-region as the actual open region when the preset site selection standard is determined to be the second preset site selection standard, and the area of ​​the target open sub-region is marked as the area of ​​the actual region.

[0044] Furthermore, in some optional embodiments of the present invention, the intelligent meteorological station site selection system 200 further includes: The target constraint determination module is used to determine the target constraint in the mountainous area image and the third position coordinates of the target constraint based on the mountainous area image when the first straight-line distance is greater than a preset distance. The fourth judgment module is used to calculate the second straight-line distance between the first position coordinates and the third position coordinates, and to determine whether the second straight-line distance is greater than the standard distance.

[0045] Example 3 In another aspect, this invention also proposes an intelligent site selection device for weather stations; please refer to [link / reference]. Figure 3 The image shows a weather station intelligent site selection device according to the third embodiment of the present invention, including a memory 20, a processor 10, and a computer program 30 stored in the memory and executable on the processor. When the processor 10 executes the computer program 30, it implements the weather station intelligent site selection method as described above.

[0046] In some embodiments, the processor 10 may be a central processing unit (CPU), controller, microcontroller, microprocessor or other data processing chip, used to run program code stored in memory 20 or process data, such as executing access restriction programs.

[0047] The memory 20 includes at least one type of readable storage medium, such as flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 20 can be an internal storage unit of the weather station intelligent location device, such as the hard disk of the weather station intelligent location device. In other embodiments, the memory 20 can also be an external storage device of the weather station intelligent location device, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the weather station intelligent location device. Furthermore, the memory 20 can include both internal storage units and external storage devices of the weather station intelligent location device. The memory 20 can be used not only to store the application software and various data of the weather station intelligent location device, but also to temporarily store data that has been output or will be output.

[0048] It should be pointed out that, Figure 3 The structure shown does not constitute a limitation on the intelligent site selection device for weather stations. In other embodiments, the intelligent site selection device for weather stations may include fewer or more components than shown, or combine certain components, or have different component arrangements.

[0049] This invention also proposes a computer-readable storage medium storing a computer program that, when executed by a processor, implements the intelligent meteorological station site selection method described above.

[0050] Those skilled in the art will understand that the logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can mean any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.

[0051] More specific examples of computer-readable media (a non-exhaustive list) include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which the program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.

[0052] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0053] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0054] The above embodiments merely illustrate several implementation methods of the present invention, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these all fall within the protection scope of the present invention. Therefore, the protection scope of this patent should be determined by the appended claims.

Claims

1. A method for intelligent site selection of weather stations, characterized in that, The method includes: The system acquires images of mountainous areas taken by a drone within a preset area, and inputs these images into an image processing model to obtain various feature regions, which include at least an open area. Based on each of the aforementioned feature regions, calculate the corresponding region area, determine the target feature region corresponding to the maximum region area, and call the corresponding preset site selection criteria based on the target feature region; Based on the preset site selection criteria, determine the actual open area and the actual area area used to represent the open area, and determine whether the actual area area is greater than the preset area. If so, obtain the first location coordinates of the actual open area, obtain the second location coordinates of the weather station closest to the first location coordinates based on the first location coordinates, and calculate the first straight-line distance between the first location coordinates and the second location coordinates; Determine whether the first straight-line distance is greater than a preset distance; If so, the actual open area will be recommended as the construction site for the weather station; The step of acquiring mountainous area images taken by a drone within a preset area and inputting the mountainous area images into an image processing model to obtain various feature regions, wherein the feature regions include at least open areas, includes the following steps before: Historical weather station images and historical mountain area images are acquired, and the historical weather station images are preprocessed to obtain preprocessed images; The preprocessed image is subjected to connected component identification processing to obtain a set of all connected regions in the preprocessed image. A preset connected region screening algorithm is used to screen the connected regions in the set of connected regions to obtain the target connected regions corresponding to the historical weather stations. Obtain a standard connected region, perform similarity matching between the target connected region and the standard connected region to obtain a similarity value, and determine whether the similarity value is greater than a threshold. If so, then based on the target connected region, extend outward by a preset distance to obtain the target image, and restore the RGB of the extended region in the target image to obtain the first color image; The feature points of the extended region in the first color image are obtained, and the inner extension filling of the target connected region is performed based on the feature points to obtain the training image; A number of training images are acquired to form a first training set. Meanwhile, the feature regions in the historical mountainous area images are labeled by manual annotation to obtain a second training set. The feature regions include exploitable and unexploitable regions. The first training set and the second training set are used to train the neural network model to establish the image processing model. The steps of calculating the corresponding area of ​​each of the aforementioned feature regions, determining the target feature region corresponding to the maximum area of ​​the region, and calling the corresponding preset location selection criteria based on the target feature region include: Obtain the area of ​​the preset region and the total number of pixels in the mountainous area image, and determine the independent area of ​​a single pixel based on the area and the total number of pixels; The number of pixels corresponding to each feature region in the mountainous area image is obtained, and the area of ​​each region is calculated based on the independent area. When the target feature area corresponding to the maximum area of ​​the region is the developable area, the first preset site selection standard is invoked. When the target feature area corresponding to the maximum area of ​​the region is the undevelopable area, the second preset site selection criterion is invoked; The step of determining the actual open area and actual area area to represent the open area according to the preset site selection criteria, and determining whether the actual area area is greater than the preset area, includes: Obtain the open area, which includes at least one open sub-area, and determine the target open sub-area with the largest area among the open sub-areas; Determine whether the area of ​​the target open sub-region is greater than a preset area; If not, obtain the distance between the target empty sub-region and the adjacent empty sub-region, and determine whether the distance is less than the preset distance; If so, determine whether the preset location selection criterion is the first preset location selection criterion; When the preset site selection standard is determined to be the first preset site selection standard, the target open sub-region and the adjacent open sub-region are combined to obtain the actual open region and the actual region area, wherein the actual region area is the sum of the areas of the target open sub-region and the adjacent open sub-region. If it is determined that the preset location selection criterion is not the first preset location selection criterion, then it is determined whether the preset location selection criterion is the second preset location selection criterion. If so, the target open sub-region is marked as the actual open region, and the area of ​​the target open sub-region is marked as the area of ​​the actual region.

2. The intelligent site selection method for weather stations according to claim 1, characterized in that, The step of preprocessing the historical weather station images to obtain preprocessed images includes: The historical weather station images are sequentially processed by grayscale and binarization to obtain the preprocessed image. The grayscale processing formula is as follows: Where I(x, y) represents the intensity value of the image at coordinates (x, y), I R (x, y) represents the intensity value of the red channel in the image at coordinates (x, y), I G (x, y) represents the intensity value of the green channel in the image at coordinates (x, y), I B (x, y) represents the intensity value of the blue channel in the image at coordinates (x, y).

3. The intelligent site selection method for weather stations according to claim 2, characterized in that, In the step of using a preset connected region screening algorithm to screen the connected regions in the set of connected regions to obtain the target connected regions corresponding to historical weather stations, the formula of the connected region screening algorithm can be expressed as: in, The area of ​​a connected region is represented by the number of pixels. and These are represented in pixels as the width and height of the connected region, respectively. and This is represented as a threshold for the area of ​​the connected region. This is represented as the aspect ratio threshold of the connected region.

4. The intelligent site selection method for weather stations according to claim 3, characterized in that, The step of determining whether the first straight-line distance is greater than the preset distance includes: When the first straight-line distance is greater than the preset distance, the target constraint in the mountainous area image and the third position coordinates of the target constraint are determined based on the mountainous area image. Calculate the second straight-line distance between the first position coordinates and the third position coordinates, and determine whether the second straight-line distance is greater than the standard distance; If so, proceed with the step of recommending the actual open area as a construction site for the weather station.

5. A weather station intelligent site selection system, characterized in that, For implementing the intelligent site selection method for weather stations as described in any one of claims 1-4, the system comprises: The image processing module is used to acquire mountainous images taken by the drone within a preset area, and input the mountainous images into the image processing model to obtain various feature regions, wherein the feature regions include at least an open area; The target feature region determination module is used to calculate the corresponding region area according to each of the feature regions, determine the target feature region corresponding to the maximum value of the region area, and call the corresponding preset site selection standard according to the target feature region; The first judgment module is used to determine the actual open area and the actual area area representing the open area according to the preset site selection criteria, and to determine whether the actual area area is greater than the preset area. The first straight-line distance calculation module is used to obtain the first location coordinates of the actual open area when it is determined that the actual area is greater than the preset area, obtain the second location coordinates of the meteorological station closest to the first location coordinates based on the first location coordinates, and calculate the first straight-line distance between the first location coordinates and the second location coordinates. The second judgment module is used to determine whether the first straight-line distance is greater than a preset distance; The recommendation module is used to recommend the actual open area as a construction site for a weather station when it is determined that the first straight-line distance is greater than a preset distance.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the intelligent site selection method for weather stations as described in any one of claims 1-4.

7. A weather station intelligent site selection device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the intelligent site selection method for weather stations as described in any one of claims 1-4.