A smart environmental protection park modeling method and system
By combining terrain data and satellite images to generate a park model, the time-consuming and labor-intensive problems of existing technologies were solved, and efficient and realistic park modeling effects were achieved.
Patent Information
- Application Number
- CN202510865748.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-26
- Publication Date
- 2025-09-09
- Estimated Expiration
- 2045-06-26
AI Technical Summary
Existing technologies require field measurements and a large amount of manual operations during the park modeling process, which is time-consuming and labor-intensive, and ultimately produces poor results, making it difficult to quickly generate high-quality models of large-scale parks.
By combining the park's terrain data and satellite images, a first model is generated, and roads, buildings and vegetation are drawn in the model. Environmental monitoring data is integrated and finally optimized and rendered to generate the target model.
It enables the rapid generation of a large number of buildings, roads and landscape elements, improves modeling efficiency, and generates models with greater realism and visual effects.
Smart Images

Figure CN120374880B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of park modeling, and in particular relates to a method and system for modeling a smart environmentally friendly park. Background Art
[0002] In order to promote and attract investment for the park, modeling is generally required to produce renderings of the park.
[0003] In the existing technology, in order to build a model, field measurements are required. Specifically, measuring instruments are used to accurately measure the park's terrain, building dimensions, road width, etc., or photos of the park from various angles are taken, including building appearances, landscape features, etc., to provide references for modeling. In addition, the modeling process often relies on a large amount of manual operations and rarely integrates external data. Modeling large-scale parks is time-consuming and labor-intensive, and the final results are poor. Summary of the Invention
[0004] Based on this, an embodiment of the present invention provides a smart environmental park modeling method and system, which aims to quickly generate a large number of buildings, roads and landscape elements to improve modeling efficiency.
[0005] A first aspect of an embodiment of the present invention provides a method for modeling a smart environmental park, the method comprising:
[0006] Acquiring terrain data and satellite images of the park, and combining the terrain data and the satellite images to generate a first model;
[0007] Drawing the main roads, secondary roads, and branch roads of the park in the first model and assigning corresponding materials and textures to different roads to obtain a second model. Specifically, obtaining the satellite image, determining a first contour line segment on one side of any road in the satellite image and a road category corresponding to the first contour line segment, wherein the road category is a main road, a secondary road, or a branch road;
[0008] Extending both ends of the first contour line segment according to the contour in the satellite image, determining the width of the road according to the road type, generating a second contour line segment parallel to the first contour line segment during the extension process, wherein the distance between the first contour line segment and the second contour line segment is the width, and determining whether the second contour line segment matches the contour in the satellite image;
[0009] If it is determined that the second contour line segment matches the contour in the satellite image, marking the contour in the satellite image, and combining the first contour line segment with the contour in the satellite image to obtain a road contour corresponding to the road category;
[0010] If it is determined that the second contour line segment does not match the contour in the satellite image, searching for a target contour within a preset distance based on the generated contour in the satellite image;
[0011] Obtaining a distance between the target contour and the extension line of the first contour line segment, determining a corresponding target road category based on the distance, assigning the target road category to the corresponding target contour and the extension line of the first contour line segment, and marking them;
[0012] Determining whether all extension lines of the first contour segment have been marked;
[0013] If it is determined that all extension lines of the first contour line segment have been marked, then using the contour in the satellite image that matches the second contour line segment and the target contour as the base contour, extending according to the contour in the satellite image until all road contours in the park are drawn;
[0014] Mapping all road contours into the first model and assigning corresponding materials and textures to different roads to obtain a second model;
[0015] Constructing a building in the second model and modifying the appearance of the corresponding building according to its function to obtain a third model;
[0016] According to the regional division of the buildings in the third model, a corresponding type of vegetation model is added to obtain a fourth model;
[0017] 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;
[0018] The fifth model is optimized and rendered to obtain a target model, which is then output.
[0019] Furthermore, the step of obtaining terrain data and satellite images of the park, and combining the terrain data and the satellite images to generate a first model includes:
[0020] generating a basic model according to the terrain data;
[0021] Extracting target features from the satellite image, matching the base model with the satellite image, determining a target area of the target feature on the base model, and transplanting the target feature to the corresponding target area to obtain a processed base model, wherein the target features include rivers, mountains, and vegetation;
[0022] According to the actual terrain of the park, the processed basic model is adjusted to obtain the first model.
[0023] Furthermore, the step of constructing a building in the second model and individually modifying the appearance of the corresponding building according to its function to obtain the third model includes:
[0024] 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;
[0025] According to the office type of the area of the building to be constructed, a corresponding first building model is determined, and a 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.
[0026] Furthermore, the step of adding corresponding types of vegetation models according to the regional division of buildings in the third model to obtain the fourth model includes:
[0027] Determining a corresponding type of vegetation model according to the surface color of the first building model;
[0028] Acquire a vegetation planning area closest to the first building model, and generate a gardening pattern in the vegetation planning area;
[0029] 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.
[0030] Furthermore, the step of optimizing and rendering the fifth model to obtain a target model and outputting the target model includes:
[0031] Acquiring an image of the fifth model according to a camera viewing angle, and dividing the image into a plurality of first regions having similar colors according to an adaptive threshold segmentation method;
[0032] 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;
[0033] Each of the second regions is assigned a corresponding average color, and the second regions assigned colors are combined to obtain a target model.
[0034] Furthermore, 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.
[0035] A second aspect of an embodiment of the present invention provides a smart environmental park modeling system for implementing the smart environmental park modeling method described in the first aspect, the system comprising:
[0036] an acquisition module, configured to acquire terrain data and satellite images of the park, and combine the terrain data and the satellite images to generate a first model;
[0037] A drawing module, configured 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;
[0038] A construction module is used to construct a building in the second model and modify the appearance of the corresponding building according to its function to obtain a third model;
[0039] a division module, configured to add a corresponding type of vegetation model according to the regional division of the buildings in the third model to obtain a fourth model;
[0040] A fusion module, configured 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;
[0041] The optimization module is used to optimize and render the fifth model to obtain a target model and output it.
[0042] A third aspect of an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the smart environmental park modeling method provided in the first aspect.
[0043] The fourth aspect of an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and runnable on the processor, wherein when the processor executes the program, the smart environmental protection park modeling method provided in the first aspect is implemented.
[0044] A smart environmental protection park modeling method and system are provided in an embodiment of the present invention. The method obtains terrain data and satellite images of the park, combines the terrain data and satellite images, and generates a first model; draws the main roads, secondary roads, and branches of 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 personalizes the appearance of the corresponding buildings according to their functions to obtain a third model; according to the regional division of the buildings in the third model, adds corresponding types of vegetation models to obtain a fourth model; obtains environmental monitoring data and integrates it into the fourth model to obtain a fifth model, wherein the environmental monitoring 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, thereby improving modeling efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 This is a flowchart of a method for modeling a smart environmental park according to the first embodiment of the present invention;
[0046] Figure 2 This is a structural block diagram of a smart environmental park modeling system provided in Example 2 of the present invention;
[0047] Figure 3 This is a structural block diagram of an electronic device provided in Example 3 of the present invention. DETAILED DESCRIPTION
[0048] To facilitate understanding of the present invention, the present invention will be described more fully below with reference to the accompanying drawings. The drawings illustrate several embodiments of the present invention. However, the present invention may be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and comprehensive understanding of the present invention.
[0049] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be an intermediate element. When an element is referred to as being "connected to" another element, it may be directly connected to the other element or there may be an intermediate element. The terms "vertical," "horizontal," "left," "right," and similar expressions used herein are for illustrative purposes only.
[0050] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one skilled in the art to which this invention pertains. The terms used in this specification of the present invention are for the purpose of describing specific embodiments only and are not intended to limit the present invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0051] Example 1
[0052] According to an embodiment of the present invention, an embodiment of a method for modeling a smart environmental park is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0053] In this embodiment, a smart environmental park modeling method is provided, which can be used in electronic devices, such as computers. Figure 1 , Figure 1 The flowchart of the implementation of a smart environmental park modeling method provided by the first embodiment of the present invention is shown, which specifically includes steps S01 to S06.
[0054] Step S01: Acquire terrain data and satellite images of the park, combine the terrain data and the satellite images, and generate a first model.
[0055] Specifically, a basic model is generated based on the terrain data. In this embodiment, a high-precision digital elevation model (DEM) and satellite imagery of the area are obtained to accurately present the topography. The DEM data is imported to generate the terrain foundation of the park.
[0056] Extract target features from satellite images, match the base model with the satellite image, determine the target area of the target features on the base model, and transplant the target features to the corresponding target area to obtain the processed base model. The target features include rivers, mountains, and vegetation. It can be understood that the matching of the base model and the satellite image is based on coordinate position matching, that is, aligning the coordinate system of the base model with the satellite image;
[0057] According to the actual terrain of the park, the processed basic model is adjusted to obtain a first model. For example, the direction and width of the river are adjusted according to the actual terrain to make it more consistent with the actual situation.
[0058] Step S02: 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.
[0059] Specifically, a satellite image is acquired, and a first contour line segment on one side of any road in the satellite image and a road category corresponding to the first contour line segment are determined. The road category can be a main road, a secondary road, or a branch road. Each road category has a different width. 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.
[0060] Extend the two ends of the first contour segment according to the contour in the satellite image, and determine the width of the road based on the road type. During the extension process, generate a second contour segment parallel to the first contour segment. The distance between the first contour segment and the second contour segment is the width. Determine whether the second contour segment matches the contour in the satellite image.
[0061] If it is determined that the second contour line segment matches the contour in the satellite image, the contour in the satellite image is marked, and the first contour line segment is combined with the contour in the satellite image to obtain a road contour corresponding to the road category;
[0062] If it is determined that the second contour line segment does not match the contour in the satellite image, searching for the target contour within a preset distance based on the contour in the generated satellite image;
[0063] Obtain the distance between the target contour and the extension line of the first contour segment, determine the corresponding target road category based on the distance, assign the target road category to the corresponding target contour and the extension line of the first contour segment, and mark them. It should be noted that the above operation process can be understood as follows: assuming that the road category of the selected first contour segment is a main road, the main road width is set to 40 meters, the first contour segment and the generated second contour segment parallel to the first contour segment should coincide with the main road contour in the satellite image. When the second contour segment does not coincide, it indicates that the road category has changed. Then, the nearby target contour is searched based on the current second contour segment, and the road category is redefined based on the distance between the first contour segment and the target contour.
[0064] Determine whether all extension lines of the first contour segment have been marked;
[0065] If it is determined that all the extension lines of the first contour line segment have been marked, the contour in the satellite image that matches 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. The operation method is the same as the above. It can be understood that this method only needs to mark the line segments on one side of any road in the satellite image to complete the marking of all roads, effectively reducing the workload of manual marking;
[0066] The second model is generated by mapping all road contours into the first model and assigning corresponding materials and textures to different roads. It should be noted that different materials and textures are assigned to roads using road rules. Main roads use high-quality asphalt with clear traffic markings, while secondary roads and branch roads use more common pavement materials. Furthermore, streetlights and roadside trees are installed on both sides of the roads to enhance their aesthetics and practicality.
[0067] Step S03: 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.
[0068] In this embodiment, in the second model, a preset target building is imported, and then the satellite image is overlapped in the overhead direction. The area of the target building in the satellite image is removed to determine the area of the building to be constructed. It can be understood that for some landmark buildings and important industrial plants, accurate modeling is performed according to detailed design drawings; for ordinary buildings, parametric modeling and rule application can be used to quickly generate;
[0069] Based on the office type of the area to be constructed, a corresponding first building model is determined. This model is then generated on the second model for the area corresponding to the building to be constructed. The first building model is assigned different surface colors based on the office type. For example, industrial plants are primarily gray and blue, reflecting a sense of technology and modernity; office buildings use brighter colors, such as white and silver. Details such as windows, doors, and roofs are added to the buildings to make them more realistic.
[0070] Step S04: adding vegetation models of corresponding types according to the regional division of buildings in the third model to obtain a fourth model.
[0071] Specifically, a corresponding type of vegetation model is determined based on the surface color of the first building model. For example, ornamental flowers and trees are planted around the office area, while pollution-resistant tree species are mainly planted in the industrial area.
[0072] obtaining a vegetation planning area closest to the first building model, and generating a gardening pattern in the vegetation planning area;
[0073] According to the color of the gardening pattern, a matching target vegetation model is determined from the vegetation models of the corresponding type and filled into the gardening pattern to obtain a fourth model. For example, for the area around the office area, the red color in the gardening pattern can adopt a red rose vegetation model, etc., and the yellow color can adopt a marigold vegetation model, etc.
[0074] In addition, public facilities such as trash cans, benches and bicycle lanes can be placed in the park. Fountains, sculptures and other landscape pieces can be set up in the leisure areas of the park to increase the artistic atmosphere of the park.
[0075] Step S05: 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.
[0076] It's important to note that environmental monitoring data is integrated into the model, with color coding used to display air quality in different areas. For example, areas with good air quality are displayed in green, while areas with poor air quality are displayed in red. This allows managers to intuitively understand the environmental status of the park and take appropriate measures to improve it.
[0077] Step S06: Optimize and render the fifth model to obtain a target model, and output it.
[0078] In order to improve the performance and loading speed of the model, specifically, according to the viewing angle of the camera, an image of the fifth model is obtained, and the image is divided into a plurality of first regions with similar colors according to an adaptive threshold segmentation method, which can be implemented by using OpenCV in Python;
[0079] Select discrete points in each first region respectively, and connect the discrete points to form triangles, where the region formed by the triangles is the second region, and the discrete points include vertices and extreme points. Specifically, the discrete points can be connected to form triangles using a Delaunay triangulation algorithm. It should be noted that the circumscribed circles of all the formed triangles do not contain other discrete points, and the minimum interior angle is maximized;
[0080] Each second area is assigned a corresponding average color, and the second areas after being assigned colors are combined to obtain a target model. It can be understood that for each triangular area, the average color of its internal pixels is calculated and the color is assigned to the entire triangle, thereby achieving a low-polygon effect.
[0081] In other embodiments of the present invention, you can also select a realistic rendering style and adjust parameters such as lighting, materials, and camera angle to achieve the best visual effect. For example, you can set the angle and intensity of sunlight to make buildings and landscapes appear different at different times of day.
[0082] In addition, the model will be exported as an interactive 3D scene and published on the website for online browsing and communication among relevant personnel. At the same time, some promotional videos and pictures will be produced for the promotion and investment attraction of the park.
[0083] In summary, the smart environmental protection park modeling method in the above-mentioned embodiment of the present invention obtains the terrain data and satellite images of the park, combines the terrain data and satellite images to generate a first model; draws the main roads, secondary roads and branches of 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 personalizes the appearance of the corresponding buildings according to their functions to obtain a third model; according to the regional division of the buildings in the third model, adds corresponding types of vegetation models to obtain a fourth model; obtains environmental monitoring data and integrates it into the fourth model to obtain a fifth model, wherein the environmental monitoring data includes atmospheric environment data and water quality data; optimizes and renders the fifth model to obtain the target model, and outputs it, which can quickly generate a large number of buildings, roads and landscape elements, thereby improving modeling efficiency.
[0084] Example 2
[0085] See also Figure 2 , Figure 2 This is a block diagram of a smart environmental park modeling system provided in Example 2 of the present invention. The smart environmental park modeling system 200 is used to implement the above-mentioned embodiments and preferred implementation methods. The details that have been explained will not be repeated here. As used below, the term "module" can be a combination of software and / or hardware that implements 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.
[0086] Specifically, the smart environmental 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, wherein:
[0087] An acquisition module 21 is configured to acquire terrain data and satellite images of the park, and combine the terrain data and the satellite images to generate a first model;
[0088] A drawing module 22 is 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;
[0089] A construction module 23 is configured to construct a building in the second model and modify the appearance of the corresponding building according to its function to obtain a third model;
[0090] A division module 24 is configured to add a corresponding type of vegetation model according to the regional division of the buildings in the third model to obtain a fourth model;
[0091] A fusion module 25 is configured 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;
[0092] The optimization module 26 is used to optimize and render the fifth model to obtain a target model and output it.
[0093] Furthermore, in some optional embodiments of the present invention, the acquisition module 21 includes:
[0094] A generating unit, configured to generate a basic model according to the terrain data;
[0095] an extraction unit, configured to extract target features from the satellite image, match the base model with the satellite image, determine a target area of the target features on the base model, and transplant the target features to the corresponding target area to obtain a processed base model, wherein the target features include rivers, mountains, and vegetation;
[0096] The adjustment unit is used to adjust the processed basic model according to the actual terrain of the park to obtain the first model.
[0097] Furthermore, in some optional embodiments of the present invention, the drawing module 22 includes:
[0098] A first determining unit is configured to acquire the satellite image, determine a first contour line segment on one side of any road in the satellite image, and determine a road category corresponding to the first contour line segment, wherein the road category is a main road, a secondary road, or a branch road;
[0099] a first judgment unit, configured to 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 type, generate a second contour line segment parallel to the first contour line segment during the extension process, wherein the distance between the first contour line segment and the second contour line segment is the width, and judge whether the second contour line segment matches the contour in the satellite image;
[0100] an identification unit, configured to identify the contour in the satellite image if it is determined that the second contour line segment matches 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;
[0101] a search unit configured to search for a target contour within a preset distance based on the generated contour in the satellite image if it is determined that the second contour line segment does not match the contour in the satellite image;
[0102] an assigning unit, configured to obtain a distance between the target contour and an extension line of the first contour line segment, determine a corresponding target road category based on the distance, assign the target road category to the corresponding target contour and the extension line of the first contour line segment, and mark the target road category;
[0103] a second judging unit, configured to judge whether all extension lines of the first contour segment have been marked;
[0104] an extending unit, configured to, if it is determined that all extension lines of the first contour line segment have been marked, use the contour in the satellite image that matches the second contour line segment and the target contour as a base contour, and extend the contour in the satellite image until all road contours in the park are drawn;
[0105] The mapping unit is used to map all road contours into the first model and assign corresponding materials and textures to different roads to obtain a second model.
[0106] Furthermore, in some optional embodiments of the present invention, the building module 23 includes:
[0107] an importing unit, configured to import a preset target building into the second model, then overlap the target building with the satellite image in a top-down direction, and remove an area of the target building from the satellite image to determine an area of the building to be constructed;
[0108] The second determination unit is used to 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 of the area corresponding to the building to be constructed on the second model, wherein the first building model is set with different surface colors according to different office types.
[0109] Furthermore, in some optional embodiments of the present invention, the division module 24 includes:
[0110] a third determining unit, configured to determine a corresponding type of vegetation model according to the surface color of the first building model;
[0111] an acquisition unit, configured to acquire a vegetation planning area closest to the first building model and generate a gardening pattern in the vegetation planning area;
[0112] The fourth determining unit is configured to determine a matching target vegetation model from vegetation models of corresponding types according to the color of the gardening pattern, and fill the matching target vegetation model into the gardening pattern to obtain a fourth model.
[0113] Furthermore, in some optional embodiments of the present invention, the optimization module 26 includes:
[0114] a segmentation unit, configured to acquire an image of the fifth model according to a camera viewing angle, and divide the image into a plurality of first regions having similar colors according to an adaptive threshold segmentation method;
[0115] a connecting unit, configured to respectively select discrete points in each of the first regions and connect 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;
[0116] The combining unit is configured to assign a corresponding average color to each of the second regions, and to combine the second regions assigned colors to obtain a target model.
[0117] Example 3
[0118] Another aspect of the present invention provides an electronic device, see Figure 3 , shown is an electronic device in embodiment three 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, the above-mentioned smart environmental park modeling method is implemented.
[0119] In some embodiments, the processor 10 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip, used to run program codes or process data stored in the memory 20, such as executing access restriction programs.
[0120] The memory 20 includes at least one type of readable storage medium, including flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory), 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. Furthermore, the memory 20 may include both an internal storage unit of the electronic device and an external storage 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 is about to be output.
[0121] It should be pointed out that Figure 3The structure shown does not constitute a limitation to the electronic device. In other embodiments, the electronic device may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0122] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned smart environmental park modeling method.
[0123] Those skilled in the art will appreciate that the logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device), or in conjunction with such instruction execution system, apparatus, or device. For purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by an instruction execution system, apparatus, or device, or in conjunction with such instruction execution system, apparatus, or device.
[0124] More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk cartridge (magnetic devices), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disc read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting, or processing it in another suitable manner as necessary, and then storing it in a computer memory.
[0125] It should be understood that various components of the present invention may be implemented using hardware, software, firmware, or a combination thereof. In the aforementioned embodiments, multiple steps or methods may be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one or a combination of the following technologies known in the art may be used: a discrete logic circuit having logic gate circuits for implementing logic functions on data signals, an application-specific integrated circuit having suitable combinational logic gate circuits, a programmable gate array (PGA), a field-programmable gate array (FPGA), etc.
[0126] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "examples," "specific examples," or "some examples" means that a specific feature, structure, material, or characteristic described in conjunction with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations 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 any one or more embodiments or examples.
[0127] The above embodiments merely illustrate several implementations of the present invention, and while their descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art would be able to make numerous modifications and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims.
Claims
1. A smart environmental park modeling method, characterized in that: The method comprises: Acquiring terrain data and satellite images of the park, and combining the terrain data and the satellite images to generate a first model; Drawing the main roads, secondary roads, and branch roads of the park in the first model and assigning corresponding materials and textures to different roads to obtain a second model. Specifically, obtaining the satellite image, determining a first contour line segment on one side of any road in the satellite image and a road category corresponding to the first contour line segment, wherein the road category is a main road, a secondary road, or a branch road; Extending both ends of the first contour line segment according to the contour in the satellite image, determining the width of the road according to the road type, generating a second contour line segment parallel to the first contour line segment during the extension process, wherein the distance between the first contour line segment and the second contour line segment is the width, and determining 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, marking the contour in the satellite image, and combining the first contour line segment with the contour in the satellite image to obtain a 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, searching for a target contour within a preset distance based on the generated contour in the satellite image; Obtaining a distance between the target contour and the extension line of the first contour line segment, determining a corresponding target road category based on the distance, assigning the target road category to the corresponding target contour and the extension line of the first contour line segment, and marking them; Determining whether all extension lines of the first contour segment have been marked; If it is determined that all extension lines of the first contour line segment have been marked, then using the contour in the satellite image that matches the second contour line segment and the target contour as the base contour, extending according to the contour in the satellite image until all 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 the buildings in the third model, a corresponding type of vegetation model is added to obtain a fourth model; Acquiring environmental monitoring data and integrating 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.
2. The smart environmental park modeling method according to claim 1, characterized in that: The step of obtaining the terrain data and satellite images of the park, and combining the terrain data and the satellite images to generate the first model includes: generating a basic model according to the terrain data; Extracting target features from the satellite image, matching the base model with the satellite image, determining a target area of the target feature on the base model, and transplanting the target feature to the corresponding target area to obtain a processed base 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.
3. The smart environmental park modeling method according to claim 2, characterized in that: The step of constructing a building in the second model and individually 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, a corresponding first building model is determined, and a 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 smart environmental park modeling method according to claim 3, characterized in that: The step of adding corresponding types of vegetation models according to the regional division of buildings in the third model to obtain the fourth model includes: 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 smart environmental 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 includes: Acquiring an image of the fifth model according to a camera viewing angle, and dividing the image into a plurality of first regions having 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 smart environmental 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. A smart environmental park modeling system, characterized by: For implementing the smart environmental park modeling method according to any one of claims 1 to 6, the system comprises: an acquisition module, configured 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, configured 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 is used to construct a building in the second model and modify the appearance of the corresponding building according to its function to obtain a third model; a division module, configured to add 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, configured 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, the smart environmental park modeling method as described in any one of claims 1 to 6 is implemented.
9. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method for modeling a smart environmental protection park as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
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