Intelligent environment-friendly park modeling method and system

By combining park terrain data and satellite image generation models, drawing roads, building buildings and adding vegetation, the time-consuming and labor-intensive problem of park modeling in the existing technology is solved, and the effect of efficiently generating park models is achieved.

CN120374880AActive Publication Date: 2025-07-25JIANGXI ESUN ENVIRONMENTAL PROTECTION
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510865748.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-26
Publication Date
2025-07-25
Estimated Expiration
2045-06-26

AI Technical Summary

Technical Problem

In the prior art, park modeling is time-consuming and labor-intensive, and the effect is not good, making it difficult to quickly generate building, road and landscape elements of large-scale parks.

Method used

By obtaining the terrain data and satellite images of the park, combining it to generate the first model, and drawing roads, building buildings, adding vegetation and environmental monitoring data in the model, and finally optimizing and rendering to generate the target model.

Benefits of technology

It realizes the rapid generation of a large number of building, road and landscape elements, improves modeling efficiency, and enhances the authenticity and visualization of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120374880A_ABST
    Figure CN120374880A_ABST
Patent Text Reader

Abstract

The invention provides an intelligent environmental protection park modeling method and system, and the method comprises the steps: obtaining the topographic data and satellite images of a park, combining the topographic data with the satellite images, and generating a first model; drawing a main trunk road, a secondary trunk road and branches of the park in the first model, and endowing different roads with corresponding materials and textures to obtain a second model; building a building in the second model, and according to the function of the building, individually modifying the appearance of the corresponding building to obtain a third model; according to the area division of the building in the third model, adding a vegetation model of a corresponding type to obtain a fourth model; environment monitoring data are obtained and fused into the fourth model, a fifth model is obtained, and the environment monitoring data comprise atmospheric environment data and water quality data; and optimizing and rendering the fifth model to obtain a target model, and outputting the target model, so that a large number of building, road and landscape elements can be quickly generated, and the modeling efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of park modeling, and particularly relates to a method and system for modeling a smart environmental protection park. Background Art

[0002] In order to promote and attract investment in a park, modeling is generally required to produce the renderings of the park.

[0003] In the prior art, for modeling, on-site measurement is required. Specifically, measuring instruments are used to accurately measure the terrain of the park, the dimensions of buildings, the width of roads, etc., or photos of various angles of the park are taken, including the appearance of buildings, landscape features, etc., to provide references for modeling. In addition, the modeling process often relies on a large number of manual operations and integrates external data less, which is time-consuming and laborious for large-scale park modeling and the final presented effect is not good. Summary of the Invention

[0004] Based on this, the embodiments of the present invention provide a method and system for modeling a smart environmental protection park, aiming to quickly generate a large number of building, road and landscape elements and improve the modeling efficiency.

[0005] The first aspect of the embodiments of the present invention provides a method for modeling a smart environmental protection park, and the method includes: Obtain the terrain data and satellite images of the park, combine the terrain data and the satellite images, and generate a first model; Draw the main roads, secondary roads and branch roads in the first model, and assign corresponding materials and textures to different roads to obtain a second model. Specifically, obtain the satellite images, determine a first contour line segment on one side of any road in the satellite images and the road category corresponding to the first contour line segment, and the road category is the main road, secondary road or branch road; Extend both ends of the first contour line segment according to the contour in the satellite images respectively, and determine the width of the road according to the road category. During the extension process, a second contour line segment parallel to the first contour line segment is generated, and the distance between the first contour line segment and the second contour line segment is the width. Determine whether the second contour line segment matches the contour in the satellite images; If it is determined that the second contour line segment matches the contour in the satellite images, mark the contour in the satellite images, and combine the first contour line segment and the contour in the satellite images to obtain the road contour corresponding to the road category; If it is determined that the second contour line segment does not match the contour in the satellite images, search for the target contour within a preset distance based on the generated contour in the satellite images; Acquire a distance between the target contour and the extension line of the first contour line segment, determine a corresponding target road category according to the distance, assign the target road category to the corresponding target contour and the extension line of the first contour line segment, and mark them; Determining whether all extension lines of the first contour line segment have been marked; If it is determined that all the extension lines of the first contour line segment have been marked, the contour in the satellite image matching the second contour line segment and the target contour are used as the basic contour, and the contour in the satellite image is extended until all the road contours in the park are drawn; Mapping all road contours into the first model, and assigning corresponding materials and textures to different roads, to obtain a second model; Constructing a building in the second model, and modifying the appearance of the corresponding building according to its function, to obtain a third model; According to the regional division of buildings in the third model, a corresponding type of vegetation model is added to obtain a fourth model; Acquire environmental monitoring data and integrate it into the fourth model to obtain a fifth model, wherein the environmental monitoring data includes atmospheric environment data and water quality data; The fifth model is optimized and rendered to obtain a target model, which is then output.

[0006] Furthermore, the step of acquiring terrain data and satellite images of the park, combining the terrain data and the satellite images, and generating the first model includes: generating a basic model according to the terrain data; Extracting target features from the satellite image, matching the basic model with the satellite image, determining a target area of the target features on the basic model, and transplanting the target features to the corresponding target area to obtain a processed basic model, wherein the target features include rivers, mountains, and vegetation; According to the actual terrain of the park, the processed basic model is adjusted to obtain the first model.

[0007] Furthermore, the step of constructing a building in the second model and modifying the appearance of the corresponding building according to its function to obtain the third model includes: In the second model, a preset target building is imported, and then overlapped with the satellite image in a top-down direction, and the area of the target building in the satellite image is removed to determine the area of the building to be constructed; Determine the corresponding first building model according to the office type of the area of the building to be constructed, and generate the first building model in the area of the building to be constructed corresponding on the second model, wherein the first building model is provided with different surface colors according to different office types.

[0008] Further, the step of adding vegetation models of corresponding types according to the area division of the buildings in the third model to obtain the fourth model includes: Determine the vegetation models of corresponding types according to the surface colors of the first building model; Obtain the vegetation planning area closest to the first building model, and generate a gardening pattern in the vegetation planning area; Determine the matching target vegetation model from the vegetation models of corresponding types according to the color of the gardening pattern, and fill it into the gardening pattern to obtain the fourth model.

[0009] Further, the step of optimizing and rendering the fifth model to obtain the target model and outputting it includes: Obtain an image of the fifth model according to the perspective of the camera, and divide the image into multiple first regions with similar colors according to the adaptive threshold segmentation method; Select discrete points in each of the first regions respectively, and connect the discrete points to form triangles, wherein the area formed by the triangles is the second region, and the discrete points include vertex points and extreme points; Assign the corresponding average color to each of the second regions, and combine the second regions after the color is assigned to obtain the target model.

[0010] Further, in the step of selecting discrete points in each of the first regions respectively and connecting the discrete points to form triangles, no other discrete points are included in the circumscribed circles of all the formed triangles, and the minimum interior angle is maximized.

[0011] A second aspect of the embodiments of the present invention provides an intelligent environmental protection park modeling system for implementing the intelligent environmental protection park modeling method described in the first aspect, and the system includes: An acquisition module, configured to acquire the terrain data and satellite images of the park, and combine the terrain data and the satellite images to generate a first model; A drawing module, configured to draw the main roads, secondary roads and branch roads in the first model, and assign corresponding materials and textures to different roads to obtain a second model; A construction module, configured to construct buildings in the second model, and modify the appearance of the corresponding buildings personalized according to the functions of the buildings to obtain a third model; A partitioning module, configured to add vegetation models of corresponding types according to the area partitioning of the buildings in the third model to obtain a fourth model; A fusion module, configured to obtain environmental monitoring data and fuse it into the fourth model to obtain a fifth model, where the environmental detection data includes atmospheric environment data and water quality data; An optimization module, configured to optimize and render the fifth model to obtain a target model and output it.

[0012] A third aspect of the embodiments of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the intelligent environmental protection park modeling method provided in the first aspect.

[0013] A fourth aspect of the embodiments of the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the program, it implements the intelligent environmental protection park modeling method provided in the first aspect.

[0014] An intelligent environmental protection park modeling method and system provided in the embodiments of the present invention. The method combines terrain data and satellite images of the park to generate a first model; draws the main roads, secondary roads, and branch roads in the first model and assigns corresponding materials and textures to different roads to obtain a second model; constructs buildings in the second model and modifies the appearance of the corresponding buildings according to the functions of the buildings to obtain a third model; adds vegetation models of corresponding types according to the area partitioning of the buildings in the third model to obtain a fourth model; obtains environmental monitoring data and fuses it into the fourth model to obtain a fifth model, where the environmental detection data includes atmospheric environment data and water quality data; optimizes and renders the fifth model to obtain a target model and outputs it, which can quickly generate a large number of buildings, roads, and landscape elements and improve the modeling efficiency. Description of the Drawings

[0015] Figure 1 It is a flowchart of the implementation of an intelligent environmental protection park modeling method provided in Embodiment 1 of the present invention; Figure 2 It is a structural block diagram of an intelligent environmental protection park modeling system provided in Embodiment 2 of the present invention; Figure 3 It is a structural block diagram of an electronic device provided in Embodiment 3 of the present invention. Detailed Embodiments

[0016] To facilitate the understanding of the present invention, the present invention will be described more comprehensively below with reference to the relevant drawings. Several embodiments of the present invention are shown in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, these embodiments are provided to make the disclosure of the present invention more thorough and comprehensive.

[0017] It should be noted that when an element is referred to as "fixedly provided on" another element, it can be directly on the other element or there may also be an intermediate element. When an element is considered to be "connected" to another element, it can be directly connected to the other element or there may be an intermediate element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are only for illustrative purposes.

[0018] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0019] Embodiment 1 According to an embodiment of the present invention, an embodiment of a method for modeling a smart environmental protection park is provided. It should be noted that the steps shown in the flowchart of the drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0020] In the first embodiment, a method for modeling a smart environmental protection park is provided, which can be used in an electronic device, such as a computer. Please refer to Figure 1 , Figure 1 shows an implementation flowchart of a method for modeling a smart environmental protection park provided by the first embodiment of the present invention, which specifically includes steps S01 to S06.

[0021] Step S01, obtain the terrain data and satellite images of the park, combine the terrain data and the satellite images, and generate a first model.

[0022] Specifically, according to the terrain data, a basic model is generated. In this embodiment, a high-precision digital elevation model (DEM) and satellite images of the area are obtained to accurately present the terrain and landforms. Among them, the DEM data is imported to generate the terrain basis of the park; Extract the target features in the satellite image, match the basic model with the satellite image, determine the target area of the target features on the basic model, and transplant the target features onto the corresponding target area to obtain the processed basic model. Among them, the target features include rivers, mountains, and vegetation. It can be understood that the matching of the basic model and the satellite image is based on the matching of coordinate positions, that is, aligning the coordinate systems of the basic model and the satellite image; Adjust the processed basic model according to the actual terrain of the park to obtain the first model. Exemplarily, adjust the flow direction and width of the river according to the actual terrain to make it more in line with the actual situation.

[0023] Step S02: Draw the main roads, secondary roads, and branch roads in the first model, and assign corresponding materials and textures to different roads to obtain the second model.

[0024] Specifically, obtain the satellite image, determine the first contour line segment on one side of any road in the satellite image and the road category corresponding to the first contour line segment. The road categories are main roads, secondary roads, or branch roads, and the widths of each road category are different. In this embodiment, the width of the main road is set to 40 meters, the width of the secondary road is 30 meters, and the width of the branch road is 20 meters; Extend both ends of the first contour line segment according to the contour in the satellite image, and determine the width of the road according to the road category. During the extension process, generate a second contour line segment parallel to the first contour line segment. The distance between the first contour line segment and the second contour line segment is the width, and determine whether the second contour line segment matches the contour in the satellite image; If it is determined that the second contour line segment matches the contour in the satellite image, mark the contour in the satellite image, and combine the first contour line segment with the contour in the satellite image to obtain the road contour corresponding to the road category; If it is determined that the second contour line segment does not match the contour in the satellite image, search for the target contour within the preset distance based on the generated contour in the satellite image; Obtain the distance between the target contour and the extension line of the first contour line segment. According to the distance, determine the corresponding target road category, and assign the target road category to the corresponding target contour and the extension line of the first contour line segment and mark it. It should be noted that the above operation process can be understood as follows: assuming that the road category of the selected first contour line segment is the main road, the width of the main road is set to 40 meters, the first contour line segment and the generated second contour line segment parallel to the first contour line segment should coincide with the main road contour in the satellite image. When the second contour line segment does not coincide, it means that the road category has changed. Then, based on the current second contour line segment, search for the nearby target contour, and redefine the road category according to the distance between the first contour line segment and the target contour; Determine whether all the extension lines of the first contour line segment have been marked; If it is determined that all the extension lines of the first contour line segment are completely marked, then, based on the contour in the satellite image that matches the second contour line segment and the target contour as the basic contour, extend along the contour in the satellite image until all the road contours in the park are drawn. The operation method is the same as above. It can be understood that this method only needs to mark the line segments on any side of the road in the satellite image to complete the marking of all roads, effectively reducing the workload of manual marking; Map all the road contours into the first model, and assign corresponding materials and textures to different roads to obtain the second model. It should be noted that road rules are applied to assign different materials and textures to the roads. The main roads use high-quality asphalt materials with clear traffic markings; the secondary roads and branch roads use relatively ordinary road surface materials. At the same time, street lights and roadside trees are set on both sides of the road to enhance the beauty and practicality of the road.

[0025] Step S03, construct buildings in the second model, and modify the appearance of the corresponding buildings according to their functions to obtain the third model.

[0026] In this embodiment, in the second model, import the preset target buildings. Subsequently, in the top-down direction, overlap with the satellite image, and remove the areas of the target buildings in the satellite image to determine the areas of the buildings to be constructed. It can be understood that for some landmark buildings and important industrial plants, precise modeling is carried out according to detailed design drawings; for ordinary buildings, parametric modeling and rule application can be used to quickly generate them; According to the office types of the areas of the buildings to be constructed, determine the corresponding first building models, and generate the first building models in the corresponding areas of the buildings to be constructed on the second model. Among them, the first building models are set with different surface colors according to different office types. Exemplarily, industrial plants are mainly in gray and blue tones, reflecting a sense of technology and modernity; office buildings use brighter colors, such as white and silver. At the same time, add details such as windows, doors, and roofs to the buildings to make them more realistic.

[0027] Step S04, according to the area division of the buildings in the third model, add vegetation models of corresponding types to obtain the fourth model.

[0028] Specifically, determine the vegetation models of corresponding types according to the surface colors of the first building models. Exemplarily, plant some highly ornamental flowers and trees around the office areas, while in the industrial areas, mainly plant pollution-resistant tree species; Obtain the vegetation planning area closest to the first building model, and generate a gardening pattern in the vegetation planning area; Determine a matching target vegetation model from the corresponding type of vegetation model according to the color of the horticultural pattern, and fill it into the horticultural pattern to obtain the fourth model. Exemplarily, for the area around the office area, red in the horticultural pattern can adopt a red rose vegetation model, etc., and yellow can adopt a marigold vegetation model, etc.

[0029] In addition, public facilities such as trash cans, benches, and bike lanes can also be placed in the park. Landscape features such as fountains and sculptures are set up in the leisure areas of the park to enhance the artistic atmosphere of the park.

[0030] Step S05: Obtain environmental monitoring data and integrate it into the fourth model to obtain the fifth model, where the environmental detection data includes atmospheric environment data and water quality data.

[0031] It should be noted that the environmental monitoring data is integrated into the model, and the air quality of different regions is displayed through color coding. For example, areas with good air quality are displayed in green, while areas with poor air quality are displayed in red. In this way, managers can intuitively understand the environmental conditions of the park and take corresponding measures for improvement.

[0032] Step S06: Optimize and render the fifth model to obtain the target model and output it.

[0033] To improve the performance and loading speed of the model, specifically, according to the perspective of the camera, obtain an image of the fifth model, and divide the image into multiple first regions with similar colors according to the adaptive threshold segmentation method, which can be implemented by using OpenCV in Python; Respectively select the discrete points in each first region and connect the discrete points to form triangles, where the region formed by the triangles is the second region. The discrete points include vertex points and extreme points. Specifically, the discrete points can be connected to form triangles through the Delaunay triangulation algorithm. It should be noted that no other discrete points are included in the circumcircle of all the formed triangles, and the minimum interior angle is maximized; Assign the corresponding average color to each second region, and combine the second regions after assigning colors to obtain the target model. It can be understood that for each triangular region, calculate the average color of the internal pixels and assign this color to the entire triangle, thereby achieving a low-polygon effect.

[0034] In other embodiments of the present invention, a realistic rendering style can also be selected, and parameters such as lighting, materials, and camera perspective can be adjusted to obtain the best visual effect. For example, set the angle and intensity of sunlight so that the buildings and landscapes present different light and shadow effects at different times.

[0035] In addition, the model is output as an interactive 3D scene and published on the web for relevant personnel to view and communicate online. Meanwhile, some promotional videos and pictures are produced for the promotion and investment attraction of the park.

[0036] In summary, for the intelligent environmental protection park modeling method in the above embodiments of the present invention, the method generates a first model by obtaining the terrain data and satellite images of the park and combining the terrain data and satellite images; draws the main roads, secondary roads and branch roads in the park in the first model, and assigns corresponding materials and textures to different roads to obtain a second model; constructs buildings in the second model and modifies the appearance of the corresponding buildings according to the functions of the buildings to obtain a third model; adds corresponding types of vegetation models according to the regional division of the buildings in the third model to obtain a fourth model; obtains environmental monitoring data and integrates it into the fourth model to obtain a fifth model, where the environmental detection data includes atmospheric environment data and water quality data; optimizes and renders the fifth model to obtain a target model and outputs it, which can quickly generate a large number of building, road and landscape elements and improve the modeling efficiency.

[0037] Embodiment 2 Please refer to Figure 2 , Figure 2 FIG. is a structural block diagram of an intelligent environmental protection park modeling system provided by Embodiment 2 of the present invention. The intelligent environmental protection park modeling system 200 is used to implement the above embodiments and preferred implementation manners, and those that have been described will not be repeated. As used hereinafter, the term "module" can be a combination of software and / or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0038] Specifically, the intelligent environmental protection park modeling system 200 includes: an acquisition module 21, a drawing module 22, a construction module 23, a division module 24, a fusion module 25, and an optimization module 26, where: The acquisition module 21 is configured to obtain the terrain data and satellite images of the park, and combine the terrain data and the satellite images to generate a first model; The drawing module 22 is configured to draw the main roads, secondary roads and branch roads in the park in the first model, and assign corresponding materials and textures to different roads to obtain a second model; The construction module 23 is configured to construct buildings in the second model, and modify the appearance of the corresponding buildings according to the functions of the buildings to obtain a third model; The division module 24 is configured to add corresponding types of vegetation models according to the regional division of the buildings in the third model to obtain a fourth model; The fusion module 25 is configured to obtain environmental monitoring data and fuse it into the fourth model to obtain a fifth model, where the environmental detection data includes atmospheric environment data and water quality data; The optimization module 26 is configured to optimize and render the fifth model to obtain a target model and output it.

[0039] Further, in some alternative embodiments of the present invention, the acquisition module 21 includes: A generation unit configured to generate a basic model according to the terrain data; An extraction unit configured to extract target features in the satellite image, match the basic model with the satellite image, determine a target area of the target features on the basic model, and transplant the target features to the corresponding target area to obtain a processed basic model, where the target features include rivers, mountains, and vegetation; An adjustment unit configured to adjust the processed basic model according to the actual terrain of the park to obtain the first model.

[0040] Further, in some alternative embodiments of the present invention, the drawing module 22 includes: A first determination unit configured to obtain the satellite image, determine a first contour line segment on one side of any road in the satellite image and the road category corresponding to the first contour line segment, where the road category is a main road, a secondary road, or a branch road; A first judgment unit configured to extend both ends of the first contour line segment along the contour in the satellite image respectively, determine the width of the road according to the road category, generate a second contour line segment parallel to the first contour line segment during the extension, the distance between the first contour line segment and the second contour line segment being the width, and judge whether the second contour line segment matches the contour in the satellite image; An identification unit configured to, if it is determined that the second contour line segment matches the contour in the satellite image, identify the contour in the satellite image and combine the first contour line segment with the contour in the satellite image to obtain a road contour corresponding to the road category; A search unit configured to, if it is determined that the second contour line segment does not match the contour in the satellite image, search for a target contour within a preset distance based on the generated contour in the satellite image; An assignment unit configured to obtain the distance between the target contour and the extension line of the first contour line segment, determine the corresponding target road category according to the distance, and assign the target road category to the corresponding target contour and the extension line of the first contour line segment and identify it; A second judgment unit, configured to judge whether the extension lines of the first contour line segments are all marked; An extension unit, configured to, if it is judged that the extension lines of the first contour line segments are all marked, use the contours in the satellite image that match the second contour line segments and the target contour as the base contours, and extend according to the contours in the satellite image until all road contours in the park are drawn; A mapping unit, configured to map all road contours into the first model, and assign corresponding materials and textures to different roads to obtain a second model.

[0041] Further, in some optional embodiments of the present invention, the construction module 23 includes: An import unit, configured to import a preset target building into the second model, then overlap it with the satellite image in the top view direction, and remove the area of the target building in the satellite image to determine the area of the building to be constructed; A second determination unit, configured to determine a corresponding first building model according to the office type of the area of the building to be constructed, and generate the first building model in the area of the building to be constructed corresponding on the second model, wherein the first building model is provided with different surface colors according to different office types.

[0042] Further, in some optional embodiments of the present invention, the division module 24 includes: A third determination unit, configured to determine a corresponding type of vegetation model according to the surface color of the first building model; An acquisition unit, configured to acquire the vegetation planning area closest to the first building model, and generate a gardening pattern in the vegetation planning area; A fourth determination unit, configured to determine a matching target vegetation model from the corresponding type of vegetation models according to the color of the gardening pattern, and fill it into the gardening pattern to obtain a fourth model.

[0043] Further, in some optional embodiments of the present invention, the optimization module 26 includes: A division unit, configured to acquire an image of the fifth model according to the perspective of the camera, and divide the image into a plurality of first regions with similar colors according to the adaptive threshold segmentation method; A connection unit, configured to respectively select discrete points in each of the first regions, and connect the discrete points to form triangles, wherein the area formed by the triangles is the second region, and the discrete points include vertex points and extreme points; A combination unit, configured to assign a corresponding average color to each of the second regions, and combine the second regions after the color is assigned to obtain a target model.

[0044] Embodiment 3 On the other hand, the present invention also provides an electronic device. Please refer to Figure 3 , which shows the electronic device in Embodiment 3 of the present invention, including a memory 20, a processor 10, and a computer program 30 stored on the memory and executable on the processor. When the processor 10 executes the computer program 30, the intelligent environmental protection park modeling method as described above is implemented.

[0045] Among them, in some embodiments, the processor 10 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips, and is used to run the program code stored in the memory 20 or process data, such as executing an access restriction program, etc.

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

[0047] It should be noted that Figure 3 the structure shown does not limit the electronic device. In other embodiments, the electronic device may include fewer or more components than shown in the figure, or combine some components, or have a different component layout.

[0048] The present invention embodiment also provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the intelligent environmental protection park modeling method as described above is implemented.

[0049] Those skilled in the art will understand that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a definite sequence list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device), or used in combination with these instruction execution systems, apparatus, or devices. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

[0050] More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection portion (electronic device) having one or more wirings, a portable computer diskette (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium 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 media, followed by editing, interpretation, or otherwise processing as appropriate, and then stored in a computer memory.

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

[0052] In the description of this specification, the description with reference to terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples.

[0053] The above embodiments merely represent several implementation manners of the present invention. The description thereof is relatively specific and detailed, but it should not be construed as a limitation to the scope of the patent for the present invention. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can still be made, and these all fall within the protection scope of the present invention. Therefore, the protection scope of the patent for the present invention shall be subject to the appended claims.

Claims

1. A modeling method for an intelligent environmental protection park, characterized in that, The method includes: Obtain the terrain data and satellite images of the park, combine the terrain data and the satellite images, and generate a first model; Draw the main roads, secondary roads, and branch roads of the park in the first model, and assign corresponding materials and textures to different roads to obtain a second model. Specifically, obtain the satellite image, determine the first contour line segment on one side of any road in the satellite image and the road category corresponding to the first contour line segment, and the road category is the main road, secondary road, or branch road; Extend both ends of the first contour line segment according to the contour in the satellite image, determine the width of the road according to the road category, generate a second contour line segment parallel to the first contour line segment during the extension, and the distance between the first contour line segment and the second contour line segment is the width, and determine whether the second contour line segment matches the contour in the satellite image; If it is determined that the second contour line segment matches the contour in the satellite image, mark the contour in the satellite image, and combine the first contour line segment with the contour in the satellite image to obtain the road contour corresponding to the road category; If it is determined that the second contour line segment does not match the contour in the satellite image, search for the target contour within a preset distance based on the generated contour in the satellite image; Obtain the distance between the target contour and the extension line of the first contour line segment, determine the corresponding target road category according to the distance, and assign the target road category to the corresponding target contour and the extension line of the first contour line segment, and mark it; Determine whether all the extension lines of the first contour line segment are completely marked; If it is determined that all the extension lines of the first contour line segment are completely marked, use the contour in the satellite image that matches the second contour line segment and the target contour as the base contour, and extend according to the contour in the satellite image until all the road contours in the park are drawn; Map all the road contours to the first model, and assign corresponding materials and textures to different roads to obtain a second model; Construct buildings in the second model, and modify the appearance of the corresponding buildings according to the functions of the buildings to obtain a third model; Add vegetation models of corresponding types according to the area division of the buildings in the third model to obtain a fourth model; Obtain environmental monitoring data and fuse it into the fourth model to obtain a fifth model, where the environmental detection data includes atmospheric environment data and water quality data; Optimize and render the fifth model to obtain a target model and output it.

2. The intelligent environmental protection park modeling method according to claim 1, characterized in that, The step of obtaining the terrain data and satellite images of the park, combining the terrain data and the satellite images, and generating a first model includes: Generate a basic model according to the terrain data; Extract the target features in the satellite image, match the basic model with the satellite image, determine the target area of the target features on the basic model, and transplant the target features to the corresponding target areas to obtain a processed basic model, where the target features include rivers, mountains, and vegetation; According to the actual terrain of the park, the processed basic model is adjusted to obtain the first model.

3. The intelligent environmental protection park modeling method according to claim 2, characterized in that, The step of constructing a building in the second model and modifying the appearance of the corresponding building according to the function of the building to obtain the third model includes: In the second model, a preset target building is imported, and then overlapped with the satellite image in a top-down direction, and the area of the target building in the satellite image is removed to determine the area of the building to be constructed; According to the office type of the area of the building to be constructed, the corresponding first building model is determined, and the first building model is generated on the second model corresponding to the area of the building to be constructed, wherein the first building model is set with different surface colors according to different office types.

4. The intelligent environmental protection park modeling method according to claim 3, characterized in that The step of adding a vegetation model of a corresponding type according to the regional division of the buildings in the third model to obtain the fourth model comprises: Determining a corresponding type of vegetation model according to the surface color of the first building model; Acquire a vegetation planning area closest to the first building model, and generate a gardening pattern in the vegetation planning area; According to the color of the gardening pattern, a matching target vegetation model is determined from vegetation models of corresponding types and filled into the gardening pattern to obtain a fourth model.

5. The intelligent environmental protection park modeling method according to claim 4, characterized in that, The step of optimizing and rendering the fifth model to obtain a target model and outputting the target model comprises: Acquire the image of the fifth model according to the viewing angle of the camera, and divide the image into a plurality of first regions with similar colors according to an adaptive threshold segmentation method; Selecting discrete points in each of the first regions respectively, and connecting the discrete points to form a triangle, wherein the region formed by the triangle is the second region, and the discrete points include vertices and extreme points; Each of the second regions is assigned a corresponding average color, and the second regions assigned colors are combined to obtain a target model.

6. The intelligent environmental protection park modeling method according to claim 5, characterized in that In the step of respectively selecting discrete points in each of the first areas and connecting the discrete points to form triangles, the circumscribed circles of all the formed triangles do not contain other discrete points, and the minimum internal angle is maximized.

7. An intelligent environmental protection park modeling system, characterized in that, Used to implement the smart environmental protection park modeling method according to any one of claims 1 to 6, the system includes: An acquisition module, used to acquire terrain data and satellite images of the park, and combine the terrain data and the satellite images to generate a first model; A drawing module, used to draw the main roads, secondary roads and branch roads of the park in the first model, and assign corresponding materials and textures to different roads to obtain a second model; A construction module, used to construct a building in the second model, and modify the appearance of the corresponding building according to the function of the building to obtain a third model; A division module, used for adding a corresponding type of vegetation model according to the regional division of the buildings in the third model to obtain a fourth model; A fusion module, used to obtain environmental monitoring data and fuse it into the fourth model to obtain a fifth model, wherein the environmental monitoring data includes atmospheric environment data and water quality data; The optimization module is used to optimize and render the fifth model to obtain a target model and output it.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by a processor, it implements the intelligent environmental protection park modeling method described in any one of claims 1-6.

9. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements the intelligent environmental protection park modeling method described in any one of claims 1-6.

Citation Information

Patent Citations

  • Building point cloud model and base map aligned method based on outline

    CN104809689A

  • Method and device for generating three-dimensional scene based on satellite image, equipment and medium

    CN115641415A

  • Three-dimensional building model construction method, system and equipment

    CN117132737A

  • Urban building model generation method based on satellite map

    CN117372637A

  • Method for generating satellite vision map

    JP1993046077A