Construction method of water gate information system based on digital twin technology

By acquiring and analyzing the sluice environment data, we build accurate three-dimensional models and scenes, and combine it with the UE5 engine and geographical data to solve the problems of differences between the digital twin scene and the actual environment and high rendering load, and improve the simulation reliability and users of the sluice information system. experience.

CN118332832BActive Publication Date: 2024-08-23GUANGDONG HUANAN HYDROPOWER HIGH-TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410753379.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-08-23
Estimated Expiration
2044-06-12

AI Technical Summary

Technical Problem

The existing technology lacks accurate matching of the real geographical environment and the sluice system in the construction of digital twin scenes, resulting in a large difference between the generated digital twin scene and the actual environment, and the rendering load of the traditional method is too high, resulting in the simulation of the sluice information system Reliability is lower.

Method used

By acquiring sluice environmental data and oblique photography images, we perform image texture analysis and three-dimensional mapping to build accurate oblique photography scenes and 3D terrain models. We combine it with the UE5 engine to build digital twin scenes, perform load-optimized rendering, and conduct spatial analysis based on geographically discrete data. Position matching, combined with water, rainfall and hydrodynamic simulation data, generates a highly realistic sluice information system.

Benefits of technology

It improves the simulation reliability and user experience of the sluice information system, enhances the realism and interactivity of the digital twin scene, ensures the functional perfection and stability of the system, provides more comprehensive information support, and provides more accurate information for sluice management. data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118332832B
    Figure CN118332832B
Patent Text Reader

Abstract

The present invention relates to the field of digital twin technology, and in particular to a method for constructing a sluice information system based on digital twin technology. The method comprises the following steps: obtaining texture data of the surrounding environment of a bridge and a gate; performing three-dimensional mapping of the sluice environment data and the texture data of the surrounding environment of the bridge and a gate based on 3Dmax to obtain an oblique photography scene; constructing a 3D terrain model of the sluice environment data to generate a 3D terrain model of the sluice; extracting the contour features of the sluice structure from the oblique photography image of the surrounding environment of the bridge and a gate to obtain the contour feature data of the sluice structure; constructing a 3D model of the bridge and a gate based on the contour feature data of the sluice structure to obtain a 3D optimized model of the bridge and a gate. The present invention improves the simulation reliability of the sluice information system by adopting digital twin technology and comprehensively utilizing a variety of data and a model hierarchical rendering method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of sluice information data processing, and in particular to a method for constructing a sluice information system based on digital twin technology. Background Art

[0002] With the continuous development of computer technology and numerical calculation methods, mathematical models are increasingly used in the field of water conservancy projects. This lays the foundation for the realization of digital twin technology, so that by establishing a mathematical model of the sluice, real-time simulation and prediction of parameters such as water flow and water level can be achieved. The advancement of sensor technology provides reliable data support for sluice monitoring. Various sensors can monitor parameters such as water flow velocity, water level, and water quality in real time, and transmit the monitoring data to the central processing system, providing real input for the establishment of digital twin models. The development of artificial intelligence and big data technology makes it possible to perform intelligent analysis of massive monitoring data. Through deep learning and data mining of monitoring data, problems in the operation of sluices can be discovered, and corresponding optimization solutions can be proposed, thereby improving the management efficiency and safety of sluices. However, the existing technology lacks accurate matching of the real geographical environment and the sluice system in the construction of digital twin scenes, resulting in large differences between the generated digital twin scenes and the actual environment. At the same time, the traditional method is usually simplistic in rendering the model, resulting in excessive rendering load of the system, which in turn leads to low simulation reliability of the sluice information system. Summary of the invention

[0003] Based on this, it is necessary to provide a method for constructing a sluice information system based on digital twin technology to solve at least one of the above technical problems.

[0004] To achieve the above purpose, a method for constructing a sluice information system based on digital twin technology is provided, and the method comprises the following steps:

[0005] Step S1: Obtaining water gate environment data and oblique photography images of the surrounding environment of the bridge and lock; performing image texture analysis on the oblique photography images of the surrounding environment of the bridge and lock to generate texture data of the surrounding environment of the bridge and lock; performing three-dimensional mapping on the water gate environment data and the texture data of the surrounding environment of the bridge and lock based on 3Dmax to obtain an oblique photography scene;

[0006] Step S2: construct a 3D terrain model for the sluice environment data to generate a 3D terrain model of the sluice; extract the sluice structure contour features from the oblique photography image of the surrounding environment of the bridge and gate to obtain the sluice structure contour feature data; construct a 3D model of the bridge and gate based on the sluice structure contour feature data to obtain a 3D optimized model of the bridge and gate;

[0007] Step S3: Based on the UE5 engine, a digital twin scene is constructed for the bridge and gate 3D optimization model, the sluice gate 3D terrain model, and the oblique photography scene to obtain a sluice gate digital twin scene; load optimization rendering is performed on the sluice gate digital twin scene to generate a sluice gate digital twin optimization scene;

[0008] Step S4: obtaining geographic data of the city where the sluice is located; discretizing the geographic data of the city where the sluice is located in data space to generate geographic discrete data of the city where the sluice is located; performing spatial position matching of the digital twin optimization scene of the sluice according to the geographic discrete data of the city where the sluice is located to generate a digital twin mapping scene of the sluice;

[0009] Step S5: Obtain water and rainfall data; perform hydrodynamic simulation on the water and rainfall data to generate hydrodynamic simulation data; visualize the water and rainfall data and the hydrodynamic simulation data and connect them to the digital twin mapping scene of the sluice to obtain the digital twin scene of the sluice environment; set and test the module functions of the digital twin scene of the sluice environment to generate a sluice information system.

[0010] The present invention can obtain comprehensive data on the surrounding environment of the sluice by acquiring sluice environmental data and oblique photography images and performing texture analysis on the images, which is helpful for a more in-depth analysis and evaluation of the surrounding environment of the sluice. By using 3Dmax to perform three-dimensional mapping of sluice environmental data and oblique photography images, an accurate oblique photography scene can be generated, which is helpful for a more realistic simulation of the environmental conditions around the sluice. By extracting structural contour features from the oblique photography images of the surrounding environment of the sluice and constructing a 3D model of the bridge and gate based on the feature data, a more detailed and accurate 3D optimization model of the sluice can be generated. By using the UE5 engine to build a digital twin scene for the 3D optimization model, the sluice terrain model and the oblique photography scene, and then after load optimization rendering, a highly realistic digital twin optimization scene of the sluice can be generated. According to the geographic discrete data of the city where the sluice is located, the digital twin optimization scene is spatially matched, so that the digital twin scene can be accurately matched with the real environment, thereby improving the accuracy of simulation and analysis. Visualizing water and rainfall data and hydrodynamic simulation data and connecting them to the digital twin mapping scene helps to intuitively display the multi-dimensional data of the sluice environment and provide more comprehensive information support for sluice management. Setting and testing the module functions of the digital twin scene of the sluice environment can ensure the functional perfection and stability of the sluice information system and improve the reliability and practicality of the system. Therefore, the present invention improves the simulation reliability of the sluice information system by adopting digital twin technology and comprehensively utilizing multiple data and model layered rendering methods.

[0011] The beneficial effect of the present invention is that the texture data of the surrounding environment of the bridge and gate is generated by performing image texture analysis on the oblique photography image of the surrounding environment of the bridge and gate. These data can provide the texture features of the real scene and enhance the realism and visualization effect of the digital twin scene. Based on 3Dmax, the water gate environment data and the texture data of the surrounding environment of the bridge and gate are three-dimensionally mapped to obtain the oblique photography scene. This scene can provide the real appearance and details of the surrounding environment of the water gate and enhance the visualization effect of the digital twin scene. The 3D terrain model is constructed for the water gate environment data to generate a three-dimensional terrain model of the water gate. This model can provide geometric information of the terrain around the water gate, including terrain height, terrain features, etc., providing a basis for the subsequent digital twin scene construction. The three-dimensional model of the bridge and gate is constructed based on the contour feature data of the water gate structure to obtain an optimized three-dimensional model of the bridge and gate. This model can provide the geometric shape and details of the bridge and gate structure and enhance the realism of the bridge and gate in the digital twin scene. Based on the UE5 engine, the optimized three-dimensional model of the bridge and gate, the three-dimensional terrain model of the water gate and the oblique photography scene are used to build a digital twin scene. This scene can provide a comprehensive display of the surrounding environment of the water gate, the bridge and gate structure and the terrain, helping users to fully understand the operating environment of the water gate. The digital twin scene of the sluice is rendered in a load-optimized manner to improve rendering efficiency and performance, thereby generating a digital twin optimization scene for the sluice. This scene can provide a smoother and more realistic visualization experience, and improve the interactivity and user experience of the digital twin scene. According to the geographic discrete data of the city where the sluice is located, the digital twin optimization scene of the sluice is spatially matched to generate a digital twin mapping scene for the sluice. This scene combines the sluice optimization scene with actual geographic data to provide a more accurate display of the sluice environment and location information. The digital twin scene of the sluice is combined with water and rainfall data and hydrodynamic simulation data to create a sluice information system for real-time monitoring, prediction, and management of the operation of the sluice. Therefore, the present invention improves the simulation reliability of the sluice information system by adopting digital twin technology and comprehensively utilizing multiple data and model layered rendering methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 A schematic diagram of the steps of a method for building a sluice information system based on digital twin technology;

[0013] Figure 2 for Figure 1 Detailed implementation steps of step S2 in the flowchart;

[0014] Figure 3 for Figure 1 Detailed implementation steps of step S3 in FIG.

[0015] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0016] The following is a clear and complete description of the technical method of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by technicians in this field without creative work are within the scope of protection of the present invention.

[0017] In addition, the accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. The functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor methods and / or microcontroller methods.

[0018] It should be understood that, although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are used only to distinguish one unit from another unit. For example, without departing from the scope of the exemplary embodiments, the first unit may be referred to as the second unit, and similarly the second unit may be referred to as the first unit. The term "and / or" used herein includes any and all combinations of one or more of the listed associated items.

[0019] To achieve this, please refer to Figures 1 to 3 A method for constructing a sluice information system based on digital twin technology, the method comprising the following steps:

[0020] Step S1: Obtaining water gate environment data and oblique photography images of the surrounding environment of the bridge and lock; performing image texture analysis on the oblique photography images of the surrounding environment of the bridge and lock to generate texture data of the surrounding environment of the bridge and lock; performing three-dimensional mapping on the water gate environment data and the texture data of the surrounding environment of the bridge and lock based on 3Dmax to obtain an oblique photography scene;

[0021] Step S2: construct a 3D terrain model for the sluice environment data to generate a 3D terrain model of the sluice; extract the sluice structure contour features from the oblique photography image of the surrounding environment of the bridge and gate to obtain the sluice structure contour feature data; construct a 3D model of the bridge and gate based on the sluice structure contour feature data to obtain a 3D optimized model of the bridge and gate;

[0022] Step S3: Based on the UE5 engine, a digital twin scene is constructed for the bridge and gate 3D optimization model, the sluice gate 3D terrain model, and the oblique photography scene to obtain a sluice gate digital twin scene; load optimization rendering is performed on the sluice gate digital twin scene to generate a sluice gate digital twin optimization scene;

[0023] Step S4: obtaining geographic data of the city where the sluice is located; discretizing the geographic data of the city where the sluice is located in data space to generate geographic discrete data of the city where the sluice is located; performing spatial position matching of the digital twin optimization scene of the sluice according to the geographic discrete data of the city where the sluice is located to generate a digital twin mapping scene of the sluice;

[0024] Step S5: Obtain water and rainfall data; perform hydrodynamic simulation on the water and rainfall data to generate hydrodynamic simulation data; visualize the water and rainfall data and the hydrodynamic simulation data and connect them to the digital twin mapping scene of the sluice to obtain the digital twin scene of the sluice environment; set and test the module functions of the digital twin scene of the sluice environment to generate a sluice information system.

[0025] The present invention can obtain comprehensive data on the surrounding environment of the sluice by acquiring sluice environmental data and oblique photography images and performing texture analysis on the images, which is helpful for a more in-depth analysis and evaluation of the surrounding environment of the sluice. By using 3Dmax to perform three-dimensional mapping of sluice environmental data and oblique photography images, an accurate oblique photography scene can be generated, which is helpful for a more realistic simulation of the environmental conditions around the sluice. By extracting structural contour features from the oblique photography images of the surrounding environment of the sluice and constructing a 3D model of the bridge and gate based on the feature data, a more detailed and accurate 3D optimization model of the sluice can be generated. By using the UE5 engine to build a digital twin scene for the 3D optimization model, the sluice terrain model and the oblique photography scene, and then after load optimization rendering, a highly realistic digital twin optimization scene of the sluice can be generated. According to the geographic discrete data of the city where the sluice is located, the digital twin optimization scene is spatially matched, so that the digital twin scene can be accurately matched with the real environment, thereby improving the accuracy of simulation and analysis. Visualizing water and rainfall data and hydrodynamic simulation data and connecting them to the digital twin mapping scene helps to intuitively display the multi-dimensional data of the sluice environment and provide more comprehensive information support for sluice management. Setting and testing the module functions of the digital twin scene of the sluice environment can ensure the functional perfection and stability of the sluice information system and improve the reliability and practicality of the system. Therefore, the present invention improves the simulation reliability of the sluice information system by adopting digital twin technology and comprehensively utilizing multiple data and model layered rendering methods.

[0026] In the embodiment of the present invention, reference Figure 1The above is a schematic diagram of the steps of a method for constructing a sluice information system based on digital twin technology of the present invention. In this example, the method for constructing a sluice information system based on digital twin technology includes the following steps:

[0027] Step S1: Obtaining water gate environment data and oblique photography images of the surrounding environment of the bridge and lock; performing image texture analysis on the oblique photography images of the surrounding environment of the bridge and lock to generate texture data of the surrounding environment of the bridge and lock; performing three-dimensional mapping on the water gate environment data and the texture data of the surrounding environment of the bridge and lock based on 3Dmax to obtain an oblique photography scene;

[0028] In an embodiment of the present invention, environmental data around the sluice gate, including topography, vegetation distribution, etc., are obtained through field investigation or by using satellite remote sensing technology. Oblique photography technology is used to obtain oblique photography images around the bridge gate to ensure that the details of the bridge gate and its surrounding environment can be fully recorded. The acquired oblique photography images are subjected to image processing, including color correction, lens distortion correction, etc., to ensure image quality. The oblique photography images are subjected to texture analysis using image processing algorithms to extract texture information of the surrounding environment of the bridge gate, such as features such as buildings, roads, and waters. The extracted texture information is organized into data for subsequent three-dimensional mapping and scene modeling. Professional three-dimensional modeling software, such as 3Dmax, is used to integrate the sluice gate environmental data and the texture data of the surrounding environment of the bridge gate. In the 3D modeling software, a three-dimensional model of the sluice gate and its surrounding environment is established based on the actual measurement data and texture information. The oblique photography images are used as texture maps to map the texture data to the corresponding three-dimensional model to achieve a true presentation of the oblique photography scene.

[0029] Step S2: construct a 3D terrain model for the sluice environment data to generate a 3D terrain model of the sluice; extract the sluice structure contour features from the oblique photography image of the surrounding environment of the bridge and gate to obtain the sluice structure contour feature data; construct a 3D model of the bridge and gate based on the sluice structure contour feature data to obtain a 3D optimized model of the bridge and gate;

[0030] In the embodiment of the present invention, a three-dimensional terrain model of the area where the sluice is located is established by using the collected sluice environment data, including topographic survey data, geographic information system data, etc. Professional geographic information system (GIS) software or three-dimensional modeling software, such as ArcGIS, AutoCAD, etc., is used to create a digital elevation model (DEM) of the area around the sluice according to the topographic survey data. According to the DEM data, a real terrain model of the sluice environment is generated, including geographical elements such as rivers, mountains, roads, etc., for subsequent scene construction and analysis. For the oblique photography image, the contour features of the sluice structure are extracted by using image processing and computer vision technology. The contour information of the sluice structure in the oblique photography image is identified and extracted by using an edge detection algorithm or a contour extraction algorithm, including key parts such as bridges, gates, and walls. Based on the extracted contour feature data of the sluice structure, a three-dimensional model of the bridge and gate is constructed by using three-dimensional modeling software, such as Blender, SketchUp, etc. According to the contour feature data of the sluice structure, a three-dimensional model of the sluice is accurately established, including gates, bridges, supporting structures, etc., to ensure the accuracy and authenticity of the model. The constructed 3D model of the bridge and lock is optimized, including detail modification, texture mapping and other processing to make it more realistic and visual.

[0031] Step S3: Based on the UE5 engine, a digital twin scene is constructed for the bridge and gate 3D optimization model, the sluice gate 3D terrain model, and the oblique photography scene to obtain a sluice gate digital twin scene; load optimization rendering is performed on the sluice gate digital twin scene to generate a sluice gate digital twin optimization scene;

[0032] In the embodiment of the present invention, a three-dimensional terrain model of the area where the sluice is located is established by using the collected sluice environment data, including topographic survey data, geographic information system data, etc. Professional geographic information system (GIS) software or three-dimensional modeling software, such as ArcGIS, AutoCAD, etc., is used to create a digital elevation model (DEM) of the area around the sluice according to the topographic survey data. According to the DEM data, a real terrain model of the sluice environment is generated, including geographical elements such as rivers, mountains, roads, etc., for subsequent scene construction and analysis. For the oblique photography image, the contour features of the sluice structure are extracted by using image processing and computer vision technology. The contour information of the sluice structure in the oblique photography image is identified and extracted by using an edge detection algorithm or a contour extraction algorithm, including key parts such as bridges, gates, and walls. Based on the extracted contour feature data of the sluice structure, a three-dimensional model of the bridge and gate is constructed by using three-dimensional modeling software, such as Blender, SketchUp, etc. According to the contour feature data of the sluice structure, a three-dimensional model of the sluice is accurately established, including gates, bridges, supporting structures, etc., to ensure the accuracy and authenticity of the model. The constructed 3D model of the bridge and lock is optimized, including detail modification, texture mapping and other processing to make it more realistic and visual.

[0033] Step S4: obtaining geographic data of the city where the sluice is located; discretizing the geographic data of the city where the sluice is located in data space to generate geographic discrete data of the city where the sluice is located; performing spatial position matching of the digital twin optimization scene of the sluice according to the geographic discrete data of the city where the sluice is located to generate a digital twin mapping scene of the sluice;

[0034] In an embodiment of the present invention, the geographic data of the city where the sluice is located is obtained through the geographic data service provided by the geographic information system (GIS) platform or other relevant channels. These geographic data include, but are not limited to, information such as the city's road network, building distribution, topography, and water system distribution, so as to fully understand the environment of the city where the sluice is located. The acquired geographic data is spatially discretized to convert continuous geographic information into discrete data points or areas for subsequent matching and mapping. Grid processing, spatial segmentation algorithms, and other methods can be used to divide the city's geographic data into spatial units of a certain size or granularity. According to the geographic coordinates of the location of the sluice and the discretized geographic data, the location of the sluice is matched with the geographical environment of the city. Using the matching results, the digital twin optimization scene of the sluice is spatially mapped with the geographical environment of the city to ensure the consistency and correlation between the sluice scene and the actual urban environment. In the digital twin scene, the sluice model is combined with the discretized geographic data of its location to simulate the operation and impact of the sluice in the real urban environment.

[0035] Step S5: Obtain water and rainfall data; perform hydrodynamic simulation on the water and rainfall data to generate hydrodynamic simulation data; visualize the water and rainfall data and the hydrodynamic simulation data and connect them to the digital twin mapping scene of the sluice to obtain the digital twin scene of the sluice environment; set and test the module functions of the digital twin scene of the sluice environment to generate a sluice information system.

[0036] In the embodiment of the present invention, water and rainfall data, including information such as rainfall, rain type, and rainfall distribution, are obtained from relevant institutions such as the Meteorological Bureau. Ensure the accuracy and timeliness of water and rainfall data for subsequent hydrodynamic simulation and scene generation. Use hydrodynamic models, such as water flow models and water level models, to perform hydrodynamic simulation on water and rainfall data. Consider factors such as flow velocity, flow direction, and water level changes during the simulation process to simulate the hydraulic behavior of the sluice under different rainfall conditions. Visualize the water and rainfall data and hydrodynamic simulation data to display the changes in water flow and the response of the sluice in the form of charts, animations, etc. Connect the visualized water and rainfall data and hydrodynamic simulation data to the digital twin mapping scene of the sluice, and combine them with the existing digital twin scene to fully reflect the actual situation and dynamic changes of the sluice environment. Set the module functions of the digital twin scene of the sluice environment, including functions such as water level monitoring, water flow velocity analysis, and sluice operation simulation. Test and verify the functional modules to ensure that the sluice information system can accurately and stably simulate the operation of the sluice and its ability to cope with different situations.

[0037] Preferably, step S1 comprises the following steps:

[0038] Step S11: Acquire the water gate environment data and the oblique photography image of the surrounding environment of the bridge and gate;

[0039] Step S12: performing image preprocessing on the oblique photography image of the surrounding environment of the bridge and lock to generate an oblique photography image of the surrounding environment of the standard bridge and lock, wherein the image preprocessing includes image denoising, color correction and image stitching;

[0040] Step S13: performing image texture analysis on the oblique photography image of the standard bridge and lock surrounding environment to generate texture data of the bridge and lock surrounding environment;

[0041] Step S14: Perform three-dimensional mapping on the sluice environment data and the surrounding environment texture data of the bridge and sluice based on 3Dmax to obtain an oblique photography scene.

[0042] The present invention obtains the environmental data of the sluice gate and the texture data of the surrounding environment of the bridge and the gate, and the data can be used for environmental monitoring and analysis to help understand the characteristics and changes of the environment. The image preprocessing process includes denoising, color correction and image stitching, which helps to improve the quality and clarity of the oblique photography images, making subsequent analysis and application more accurate and reliable. Analysis of the texture data of the surrounding environment of the bridge and the gate can provide information about the surface texture and structure. These data are of great significance to the fields of land use, urban planning and environmental management. Three-dimensional mapping is performed based on the environmental data and texture data of the sluice gate to generate an oblique photography scene. This three-dimensional simulation can be used to visualize environmental scenes, conduct engineering design and planning, and simulate environmental changes under different conditions, which helps to improve the scientificity and accuracy of decision-making.

[0043] In the embodiment of the present invention, the environmental data and oblique photography images around the sluice are obtained by using a drone or other aerial equipment for aerial photography. Ensure that the height and angle of the aerial photography equipment can cover the required area and ensure the clarity and resolution of the image. Perform image denoising on the acquired oblique photography images, specifically using common denoising algorithms such as mean filtering, median filtering or wavelet denoising. Perform color correction to ensure that the color and tone in the image accurately reflect the actual environment, specifically through methods such as histogram equalization. Image stitching is the process of stitching multiple images into a panoramic image, specifically using image stitching software or algorithms, such as SIFT (scale-invariant feature transform) algorithm, etc. Computer vision technology is used to perform texture analysis on standard oblique photography images. Common methods include texture feature extraction and texture classification. Texture feature extraction can use various filters and texture descriptors, such as LBP (local binary pattern), GLCM (gray level co-occurrence matrix), etc. Texture classification specifically uses machine learning algorithms, such as support vector machine (SVM), convolutional neural network (CNN), etc., to classify and identify different types of textures. Use 3Dmax or other 3D modeling software to import the sluice environment data and the texture data of the surrounding environment of the bridge and sluice. Perform 3D modeling and texture mapping based on the imported data to create an oblique photography scene. Adjust parameters such as viewing angle, lighting, and material to obtain a 3D oblique photography scene that conforms to the actual situation.

[0044] Preferably, step S2 comprises the following steps:

[0045] Step S21: Performing sluice terrain analysis on the sluice environment data to obtain sluice terrain data;

[0046] Step S22: constructing a 3D terrain model according to the sluice terrain model to generate a 3D terrain model of the sluice;

[0047] Step S23: extracting the sluice structure contour features from the oblique photography image of the standard bridge and sluice surrounding environment to obtain sluice structure contour feature data, wherein the sluice structure contour feature data includes bridge structure feature data, gate feature data and lock chamber feature data;

[0048] Step S24: construct a 3D model of the bridge and lock according to the bridge structure characteristic data, the gate characteristic data and the lock chamber characteristic data to obtain a 3D model of the bridge and lock; add material mapping to the 3D model of the bridge and lock to generate a 3D optimized model of the bridge and lock.

[0049] The present invention obtains sluice terrain data by performing terrain analysis on sluice environmental data, which helps to understand hydrological and geographical conditions, including water level changes, water flow conditions, etc. Constructing a 3D terrain model based on the sluice terrain data can provide an intuitive terrain display, which is helpful for engineering design, hydrological simulation, and other work. The sluice structure contour features are extracted from oblique photography images to obtain feature data of important structures such as bridges, gates, and lock chambers. Constructing a 3D model of a bridge and lock based on the extracted structural feature data helps to simulate the structure, layout, and function of the sluice, and provide a reference for engineering planning and design. Adding material mapping to the 3D model of the bridge and lock to generate an optimized 3D model can enhance the realism and visual effects of the model and improve the fidelity of the simulation.

[0050] As an example of the present invention, refer to Figure 2 As shown, in this example, step S2 includes:

[0051] Step S21: Performing sluice terrain analysis on the sluice environment data to obtain sluice terrain data;

[0052] In the embodiment of the present invention, environmental data around the sluice are collected, including data on topography, water level, water flow velocity, etc. These data are obtained in various ways, including field measurement, satellite remote sensing, laser radar scanning, etc. The collected data are preprocessed, including data format conversion, coordinate system one, noise removal, etc., to ensure the accuracy and consistency of the data. Geographic Information System (GIS) software or professional terrain analysis software is used to analyze and process the environmental data around the sluice, and extract the sluice terrain data, including drawing the water surface contour according to the water level data, extracting the surface elevation data, identifying the terrain features such as the river channel, river bank, and dam, etc. The extracted terrain data is analyzed, including terrain profile analysis, terrain feature extraction, etc. This helps to understand the characteristics and changing trends of the terrain around the sluice, and provides basic data for subsequent hydrological simulation and engineering design. According to the extracted terrain data, terrain modeling software or GIS software is used to construct a 3D terrain model of the sluice, and a continuous grid model of the terrain surface is generated by an interpolation algorithm, and rendered in combination with map texture to generate a realistic terrain model.

[0053] Step S22: constructing a 3D terrain model according to the sluice terrain model to generate a 3D terrain model of the sluice;

[0054] In the embodiment of the present invention, the sluice terrain data that has been extracted and processed is obtained, including surface elevation data, water level data, etc. Suitable three-dimensional modeling software or terrain modeling tools, such as Blender, Autodesk Maya, SketchUp, etc., and professional terrain modeling software such as GIS software (such as ArcGIS, QGIS) or professional terrain modeling software (such as Terragen) are selected. The sluice terrain data is imported into the selected modeling software to ensure the correctness and integrity of the data. The imported terrain data is gridded and converted into the grid form required for the 3D model. Specifically, a continuous grid model of the terrain surface is generated by an interpolation algorithm, and gridding is performed according to the terrain features. According to the terrain data after gridding, the modeling tools in the modeling software are used to construct a terrain model. This includes modeling of terrain features such as river channels, river banks, and dams, and adjusting the shape of the terrain model according to the terrain data. On the basis of the terrain model, details such as water waves, rivers, vegetation, etc. are added to increase the realism and visual effects of the model. Add appropriate material maps to the terrain model, and map according to the surface materials and features, such as water surface, river bank, grass, land, etc. Adjust the lighting settings and rendering parameters to make the terrain model present realistic light and shadow effects and generate high-quality rendered images or animations.

[0055] Step S23: extracting the sluice structure contour features from the oblique photography image of the standard bridge and sluice surrounding environment to obtain sluice structure contour feature data, wherein the sluice structure contour feature data includes bridge structure feature data, gate feature data and lock chamber feature data;

[0056] In the embodiment of the present invention, the oblique photography image data of the surrounding environment of the standard bridge and lock are obtained to ensure the quality and clarity of the image for subsequent feature extraction and analysis. The oblique photography image is preprocessed, including image denoising, color correction and image enhancement, to improve the quality and clarity of the image, which is conducive to the subsequent feature extraction work. The preprocessed oblique photography image is used to detect and extract the outline of the sluice structure. Specifically, edge detection algorithms such as the Canny edge detection algorithm and the Sobel operator are used to detect the edge outline of the sluice structure in the image. In the detected sluice structure outline, the features of the bridge structure are identified and extracted, including the position, shape and size information of the piers, bridge decks, bridge railings and other parts. The features of the gate structure are identified and extracted, including the position, shape, size, opening state and other information of the gate. The features of the sluice chamber are extracted, including the position, size, shape and other information of the chamber. The extracted feature data of the bridge structure, gate and chamber are analyzed and integrated to establish a database or data structure of the sluice structure outline feature data.

[0057] Step S24: construct a 3D model of the bridge and lock according to the bridge structure characteristic data, the gate characteristic data and the lock chamber characteristic data to obtain a 3D model of the bridge and lock; add material mapping to the 3D model of the bridge and lock to generate a 3D optimized model of the bridge and lock.

[0058] In the embodiment of the present invention, by selecting appropriate three-dimensional modeling software, such as Blender, Autodesk Maya, SketchUp, etc., for the construction of the 3D model of the bridge and lock. The basic model of the bridge is constructed according to the bridge structure characteristic data, including the modeling of the piers, bridge deck, bridge railings and other parts. The basic geometric tools in the modeling software, such as cubes, cylinders, spheres, etc., can be used to construct the basic model. The gate model is constructed according to the gate characteristic data, including the gate position, shape, size, opening state and other information. According to the actual situation, a suitable modeling technology, such as polygon modeling, surface modeling, etc., is selected to construct the gate model. According to the gate chamber characteristic data, the gate chamber model is constructed, including the gate chamber position, size, shape and other information. Specifically, the Boolean operation, surface modeling and other functions in the modeling software are used to construct the gate chamber model. The constructed bridge and lock 3D model is optimized, including the adjustment and optimization of the model details to ensure the accuracy and realism of the model. Add appropriate material mapping to the bridge and lock 3D model, and map it according to the actual material and surface characteristics. Specifically use the material editor in the modeling software, or use professional texture mapping software, such as Adobe Photoshop, to add textures.

[0059] Preferably, step S3 comprises the following steps:

[0060] Step S31: constructing a digital twin scene for the bridge and gate 3D optimization model, the sluice 3D terrain model, and the oblique photography scene based on the UE5 engine to obtain a sluice digital twin scene;

[0061] Step S32: adding scene lighting to the digital twin scene of the sluice gate to obtain scene lighting data of the digital twin scene of the sluice gate;

[0062] Step S33: Use the sluice digital twin scene lighting data to perform load optimization rendering on the sluice digital twin scene, thereby generating a sluice digital twin optimized scene.

[0063] The present invention can achieve highly realistic and lifelike scene simulation by using the UE5 engine to build a digital twin scene of a sluice gate, including a combination of elements such as a 3D optimized model of a bridge gate, a 3D terrain model of a sluice gate, and an oblique photography scene, so that the shape of the sluice gate and the surrounding environment can be intuitively presented. The digital twin scene not only includes the structure and terrain of the sluice gate, but also simulates the environmental conditions around it, such as water level changes, vegetation distribution, etc., providing a comprehensive simulation platform for water conservancy project planning and management. The addition of scene lighting can increase the realism of the digital twin scene, so that the objects in the scene present realistic light and shadow effects under different lighting conditions, which helps to improve the visualization quality of the scene. Load-optimized rendering can improve the rendering efficiency and performance of the scene, ensure that the scene can run smoothly on different platforms, while reducing resource usage and improving the practicality and operability of the scene.

[0064] As an example of the present invention, refer to Figure 3 As shown, in this example, step S3 includes:

[0065] Step S31: constructing a digital twin scene for the bridge and gate 3D optimization model, the sluice 3D terrain model, and the oblique photography scene based on the UE5 engine to obtain a sluice digital twin scene;

[0066] In the embodiment of the present invention, by ensuring that the modeling work of the bridge and lock 3D optimization model, the sluice 3D terrain model and the oblique photography scene has been completed, and the relevant models are exported to a file format suitable for the UE5 engine, such as OBJ, FBX, etc. A new scene project is created in the UE5 engine, and then the model files of the bridge and lock 3D optimization model, the sluice 3D terrain model and the oblique photography scene are imported into the project. Specifically, the UE5 import tool is used to drag and drop the model file directly into the scene. According to the actual situation, the bridge and lock, the sluice terrain and the oblique photography scene are arranged to ensure that their relative positions and proportional relationships conform to the actual scene. The imported model is material edited to add appropriate materials and textures to the bridge and lock, the sluice terrain and the oblique photography scene. Specifically, the UE5 material editor is used for editing, and external texture maps can also be imported for map setting. The lighting environment of the scene is set, including the adjustment of parameters such as sunlight, ambient light, and shadows. Specifically, it is set through the UE5 lighting system, and the HDRi map can also be used to simulate the real lighting environment. According to needs, special effects are added to the scene, such as water surface ripples, fog effects, etc., to enhance the realism and visual effects of the scene. Set the observation camera in the scene, adjust the viewing angle and lens parameters to show the best scene view. Adjust and optimize the scene, including adjusting the position, rotation and scaling of the model, and optimizing the scene performance and smoothness. Preview the scene in the UE5 engine to check the effect and performance of the scene to ensure that the performance of each model and element meets expectations.

[0067] Step S32: adding scene lighting to the digital twin scene of the sluice gate to obtain scene lighting data of the digital twin scene of the sluice gate;

[0068] In an embodiment of the present invention, ambient light is added by scene setting or lighting system setting. Ambient light can simulate natural light in the scene to make the entire scene brighter and more realistic. If the scene is affected by sunlight, the direction, intensity and color of the sunlight can be set. According to the time setting of the scene, the position of the sun and the light intensity are adjusted so that the direction and angle of the light are consistent with the actual situation. The shadow parameters are adjusted so that the objects in the scene can cast shadows correctly. Parameters such as the hardness and projection distance of the shadow can be set, and whether to enable real-time shadow rendering can be selected. If you need to simulate the global illumination effect, you can use global illumination technology, such as global illumination maps (Global Illumination Maps), ambient occlusion (Ambient Occlusion), etc. These technologies can enhance the lighting interaction between objects in the scene and make the scene more realistic. Use high dynamic range images (HDRi) as the lighting environment of the scene. HDRi maps can capture lighting information in the real world, including changes in the sky, clouds and natural light. Applying HDRi maps to the scene can make the lighting more realistic and natural. If there are dynamic light sources in the scene, such as vehicle lights, light and shadows on water waves, etc., you can add dynamic light sources and set their properties to make the lighting effect more vivid and dynamic. Perform real-time preview in the UE5 engine, adjust lighting parameters, observe the lighting effect of the scene, and adjust and optimize as needed until a satisfactory effect is achieved.

[0069] Step S33: Use the sluice digital twin scene lighting data to perform load optimization rendering on the sluice digital twin scene, thereby generating a sluice digital twin optimized scene.

[0070] In the embodiment of the present invention, the scene is optimized by targeting the complexity and data volume of the digital twin scene of the sluice gate. This includes model merging, face reduction, LOD (Level of Detail) setting, etc., to reduce the complexity of the scene and improve rendering efficiency. According to the lighting data of the digital twin scene of the sluice gate, the lighting settings are adjusted to optimize the lighting load. Specifically, the lighting calculation overhead is reduced by reducing the number of light sources and reducing the lighting quality, and the rendering performance is improved. The material maps in the digital twin scene of the sluice gate are optimized, including compressing maps, reducing resolution, using simplified materials, etc., to reduce GPU load and improve rendering efficiency. Adjust the rendering settings, including parameters such as anti-aliasing level, rendering resolution, and shadow quality, to balance the picture quality and performance requirements. Optimize the batch processing operations in the scene, reduce state switching and resource loading in the rendering pipeline, and improve rendering efficiency. Utilize the hardware acceleration functions of modern GPUs, such as CUDA, OpenCL, etc., to accelerate the lighting calculation and rendering process, improve rendering performance, and thus generate an optimized digital twin scene of the sluice gate.

[0071] Preferably, step S33 includes the following steps:

[0072] Step S331: Calculate the shadow area of ​​the sluice scene on the sluice digital twin scene using the sluice digital twin scene illumination data to obtain the sluice scene shadow area data;

[0073] Step S332: performing shadow structure analysis on the digital twin scene of the sluice according to the shadow area data of the sluice scene, and generating sluice non-shadow structure data and sluice shadow structure data;

[0074] Step S333: performing layered rendering on the non-shadow structure data of the sluice to generate layered rendering data of the non-shadow of the sluice; performing ordinary rendering on the shadow structure data of the sluice to generate rendering data of the shadow structure of the sluice;

[0075] Step S334: Perform rendering load analysis on the non-shadow layered rendering data of the sluice and the shadow structure rendering data of the sluice to generate rendering load data; perform priority rendering sorting on the non-shadow layered rendering data of the sluice and the shadow structure rendering data of the sluice based on the rendering load data, thereby generating a digital twin optimization scene of the sluice.

[0076] The present invention can reduce unnecessary rendering load and improve rendering efficiency by giving priority to rendering non-shadow parts. By combining layered rendering and ordinary rendering, resources can be reasonably allocated and resource consumption can be reduced. By analyzing the shadow structure and sorting the rendering priority, the performance of the digital twin scene of the sluice gate can be optimized to improve the realism and fidelity of the scene.

[0077] In an embodiment of the present invention, by using the illumination data in the digital twin scene of the sluice, the shadow area in the sluice scene is calculated, which is specifically achieved by detecting the number of pixels of the shadow in the illumination data, or estimating the shadow area based on the occlusion relationship between objects. According to the shadow area data of the sluice scene, the shadow structure analysis of the digital twin scene of the sluice is performed. This includes identifying and extracting shadow structures in the sluice scene, such as gates, bridges, water surfaces, etc., which are covered by shadows. The sluice scene is divided into two parts: non-shadow structures and shadow structures according to the shadow structure. The non-shadow structure data is layered and rendered, that is, the non-shadow parts are rendered first to ensure the visibility and realism of these parts. The shadow structure data is rendered normally, that is, it is rendered in a conventional manner, but no excessive details are required in the shadow part, and a lower rendering quality can be used to save resources. The rendering load of the layered rendering data and the normal rendering data is analyzed, including calculating the resource consumption required for rendering, rendering time and other indicators. According to the rendering load data, the non-shadow layered rendering data of the sluice and the shadow structure rendering data of the sluice are prioritized. Generally, the rendering priority of the non-shadow part is higher, while the rendering priority of the shadow part is lower. According to the priority-sorted rendering data, the non-shadow layered rendering data of the sluice and the shadow structure rendering data of the sluice are combined to generate the optimized scene of the sluice digital twin. During the rendering process, each part is rendered in sequence according to the priority to ensure the visibility and realism of the scene.

[0078] Preferably, step S333 includes the following steps:

[0079] Step S3331: Performing structural depth analysis on the non-shadow structure data of the sluice to generate non-shadow structure depth data of the sluice; hierarchically dividing the non-shadow structure data of the sluice based on the non-shadow structure depth data of the sluice to generate a non-shadow foreground layer of the sluice, a non-shadow middle ground layer of the sluice and a non-shadow background layer of the sluice;

[0080] Step S3332: Calculate the illumination intensity of the non-shadow foreground layer of the sluice based on the preset physical illumination model to generate illumination intensity data of the foreground layer; perform high-resolution rendering processing on the non-shadow foreground layer of the sluice based on the illumination intensity data of the foreground layer to generate high-quality rendering data of the non-shadow foreground layer of the sluice;

[0081] Step S3333: reducing the detail of illumination calculation for the preset physical illumination model to generate a physical illumination adjustment model; calculating the illumination intensity of the non-shadow middle ground layer of the sluice according to the physical illumination adjustment model to generate illumination intensity data of the middle ground layer; performing medium-resolution rendering processing on the non-shadow middle ground layer of the sluice according to the illumination intensity data of the middle ground layer to generate medium-quality rendering data of the non-shadow middle ground layer of the sluice;

[0082] Step S3334: performing a simple lighting calculation on the non-shadow background layer of the sluice based on a preset light map to obtain background layer lighting intensity data; performing low-resolution rendering processing on the non-shadow background layer of the sluice based on the background layer lighting intensity data to generate low-quality rendering data of the non-shadow background layer of the sluice;

[0083] Step S3335: Integrate the high-quality rendering data of the non-shadow foreground layer of the sluice, the medium-quality rendering data of the non-shadow middle layer of the sluice, and the low-quality rendering data of the non-shadow background layer of the sluice to generate the non-shadow layered rendering data of the sluice; perform soft shadow rendering processing on the shadow structure data of the sluice to generate the shadow structure rendering data of the sluice.

[0084] The present invention can better understand the structure and composition of the scene by performing in-depth analysis and hierarchical division of the non-shadow structure data of the sluice. This helps the subsequent rendering and processing process. The preset physical illumination model is used to calculate the illumination intensity of the foreground layer, the middle ground layer and the background layer, and the corresponding high-resolution or low-resolution rendering processing is performed according to the calculation results. In this way, the scene under different lighting conditions can be effectively simulated while maintaining the image quality. The detail of the illumination model is reduced to generate a physical illumination adjustment model for the illumination calculation of the middle ground layer. This adjustment model can better balance the rendering quality and computing efficiency. The rendering data of different qualities and resolutions are integrated together to generate layered rendering data. This layered structure can provide more flexible control and management, making subsequent processing more convenient. The sluice shadow structure data is subjected to soft shadow rendering processing to generate sluice shadow structure rendering data. The application of soft shadows can enhance the realism and stereoscopic sense of the scene.

[0085] In an embodiment of the present invention, by performing depth analysis on the non-shadow structure data of the sluice, the depth information of each pixel is obtained, and the non-shadow structure depth data of the sluice is generated. According to the non-shadow structure depth data of the sluice, hierarchical division is performed, and the non-shadow structure data of the sluice is divided into a foreground layer, a middle ground layer and a background layer. According to a preset physical illumination model, the illumination intensity of the non-shadow foreground layer of the sluice is calculated to obtain the illumination intensity data of the foreground layer. Using the illumination intensity data of the foreground layer, the non-shadow foreground layer of the sluice is subjected to high-resolution rendering processing to generate high-quality rendering data of the non-shadow foreground layer of the sluice. The preset physical illumination model is subjected to detail reduction processing to generate a physical illumination adjustment model. According to the physical illumination adjustment model, the illumination intensity of the non-shadow middle ground layer of the sluice is calculated to obtain the illumination intensity data of the middle ground layer. Using the illumination intensity data of the middle ground layer, the non-shadow middle ground layer of the sluice is subjected to medium-resolution rendering processing to generate medium-quality rendering data of the non-shadow middle ground layer of the sluice. Based on the preset illumination map, a simple illumination calculation is performed on the non-shadow background layer of the sluice to obtain the illumination intensity data of the background layer. Using the background layer illumination intensity data, the non-shadow background layer of the sluice is rendered at low resolution to generate low-quality rendering data of the non-shadow background layer of the sluice. The rendering data of the foreground layer, the mid-ground layer, and the background layer are integrated to generate the non-shadow layered rendering data of the sluice. The shadow structure data of the sluice is rendered with soft shadows to generate the shadow structure rendering data of the sluice.

[0086] Preferably, step S4 comprises the following steps:

[0087] Step S41: acquiring geographic data of the city where the sluice is located, wherein the geographic data of the city where the sluice is located includes satellite image data and city elevation data;

[0088] Step S42: discretizing the geographic data of the city where the sluice is located to generate geographic discrete data of the city where the sluice is located;

[0089] Step S43: Perform spatial position matching on the digital twin optimization scene of the sluice gate according to the geographic discrete data of the city where the sluice gate is located, and generate a digital twin mapping scene of the sluice gate.

[0090] The present invention ensures that the digital twin scene is consistent with the actual geographical environment through spatial position matching, thereby improving the realism and fidelity of the scene. Combining geographic data and digital twin technology, it is possible to conduct a comprehensive analysis of the geographical characteristics of the city where the sluice is located, providing support for sluice management and planning. The generated digital twin mapping scene can be used for visual display, helping relevant personnel to more intuitively understand the geographical environment of the city where the sluice is located and the location relationship of the sluice.

[0091] In an embodiment of the present invention, high-resolution satellite image data of the city where the sluice is located is downloaded by using the service of a satellite image provider or accessing a geographic information system (GIS) platform. Digital elevation model (DEM) data or topographic map data of the city where the sluice is located is obtained through the geographic information system platform to obtain the elevation information of the urban terrain. The acquired satellite image data and urban elevation data are rasterized, and the continuous geographic data is discretized into rasters or pixels. The satellite image data and urban elevation data are converted into vector elements, or processed according to the existing vector data to obtain discretized vector geographic data. According to the geographic coordinate information of the sluice, the location of the sluice is identified in the geographic discrete data for subsequent matching operations. The digital twin optimization scene of the sluice is matched with the geographic discrete data of the city where the sluice is located to ensure that the digital twin scene is consistent with the actual geographical environment. This includes matching the location of the sluice, the surrounding environment, and the characteristics of the urban terrain with the digital twin scene, and adjusting them to adapt to the geographic data.

[0092] Preferably, step S43 includes the following steps:

[0093] Step S431: confirm the center coordinates of the sluice according to the geographical discrete data of the city where the sluice is located, and obtain the center point coordinate data of the city sluice;

[0094] Step S432: performing local buffer area clipping on the geographic discrete data of the city where the water gate is located according to the coordinate data of the center point of the city water gate to obtain local area data; performing local area feature extraction on the local area data to generate local area feature data, wherein the local area features include local area terrain features and local area infrastructure features;

[0095] Step S433: Initially match the local area data with the sluice digital twin optimization scene to generate a sluice digital twin initial matching model; perform matching accuracy analysis on the sluice digital twin initial matching model through the local area feature data to generate matching accuracy data;

[0096] Step S434: Accurately match the initial matching model of the sluice digital twin according to the matching accuracy data to generate a sluice digital twin mapping scene.

[0097] The present invention confirms the center coordinate data of the sluice by analyzing and processing the geographic discrete data of the city where the sluice is located. This can ensure that the data processing and matching in the subsequent steps are based on accurate sluice location information. According to the coordinate data of the center point of the sluice, the geographic discrete data of the city is clipped in a local area to obtain the local area data where the sluice is located. Then, the local area data is subjected to feature extraction, including terrain features and infrastructure features. These feature extractions can provide detailed information about the surrounding environment and related facilities of the sluice. The local area data is initially matched with the digital twin optimization scene of the sluice to generate a digital twin initial matching model of the sluice. This initial matching model can be used as the basis for subsequent matching to establish a corresponding relationship between the digital twin model and the actual situation. The matching accuracy analysis of the digital twin initial matching model of the sluice is performed on the local area feature data to generate matching accuracy data. These data can be used to evaluate the accuracy and matching precision of the initial matching model and provide guidance for subsequent accurate matching. According to the matching accuracy data, the digital twin initial matching model of the sluice is accurately matched to generate a digital twin mapping scene of the sluice. This mapping scenario can show the correspondence between the digital twin model of the sluice and the actual sluice, providing accurate digital twin simulation results.

[0098] In an embodiment of the present invention, by using a geographic information system (GIS) tool or related software, the geographic discrete data of the city where the sluice is located is processed, the center coordinates of the sluice are confirmed, and the coordinate data of the center point of the city sluice is obtained. According to the coordinate data of the center point of the sluice, the local buffer area is clipped in the geographic discrete data of the city to obtain the local area data around the sluice. The local area features are extracted from the local area data, including extracting the terrain features (such as terrain height, terrain undulation) and infrastructure features (such as roads, buildings, waters, etc.) of the local area. The local area data is preliminarily matched with the digital twin optimization scene of the sluice to generate the initial matching model of the digital twin of the sluice. The matching accuracy of the initial matching model is analyzed using the local area feature data, the matching accuracy is evaluated, and the matching accuracy data is generated. According to the matching accuracy data, the initial matching model is accurately matched, and the model is adjusted to improve the matching accuracy. According to the result of the accurate matching, the digital twin mapping scene of the sluice is generated to ensure that the digital twin scene perfectly matches the actual geographical environment, thereby providing a more accurate and realistic digital twin mapping scene of the sluice.

[0099] Preferably, step S5 comprises the following steps:

[0100] Step S51: obtaining water and rainfall data;

[0101] Step S52: Performing hydrodynamic simulation on the water and rainfall data to generate hydrodynamic simulation data;

[0102] Step S53: visualize the water and rainfall data and the hydrodynamic simulation data and connect them to the digital twin mapping scene of the sluice gate, so as to obtain the digital twin scene of the sluice gate environment;

[0103] Step S53: performing functional interaction settings on the digital twin scene of the sluice environment, thereby generating functional data of the digital twin scene of the sluice environment, wherein the functional interaction settings include water level query and rainfall query;

[0104] Step S54: Use the sluice environment digital twin scene function data to integrate the functional modules of the sluice environment digital twin scene to generate a sluice informationized digital twin three-dimensional scene; perform module function testing on the sluice informationized digital twin three-dimensional scene to generate a sluice informationized system.

[0105] The present invention obtains water and rainfall data related to the sluice. These data include information such as water level and rainfall, which are of great significance for sluice management and decision-making. Hydrodynamic simulation is performed on the water and rainfall data to generate hydrodynamic simulation data. These data can provide simulation results on water flow, water level changes, etc., to help understand the hydrodynamic characteristics of the environment in which the sluice is located. The water and rainfall data and the hydrodynamic simulation data are visualized and connected to the sluice digital twin mapping scene to generate a sluice environment digital twin scene. This scene can intuitively display the situation of the environment around the sluice, including information such as water level and water flow, and provide a comprehensive understanding of the sluice environment. Functional interaction settings are performed in the sluice environment digital twin scene, such as water level query and rainfall query functions. Through step S53, the sluice environment digital twin scene functional data is generated, so that users can obtain specific information in an interactive manner, thereby improving the efficiency of sluice management and decision-making. Using the sluice environment digital twin scene functional data, the sluice environment digital twin scene is integrated with functional modules to generate a sluice information digital twin three-dimensional scene. This scenario combines the simulated data and interactive functions of the sluice environment, providing a comprehensive information view to facilitate users to manage and make decisions about the sluice. The module function test of the sluice informatization digital twin 3D scenario is carried out to finally generate the sluice informatization system. This system can be used to monitor, predict and manage the operation of the sluice in real time, provide decision support and emergency response capabilities, and thus improve the safety and efficiency of the sluice.

[0106] In an embodiment of the present invention, water and rainfall data including rainfall, water level, flow and other related data are obtained from a hydrological monitoring station. Hydrodynamic simulation of water and rainfall data is performed using hydrological and water resources simulation software (such as HEC-RAS, MIKE, etc.), simulating the flow velocity, flow direction, water level and other parameters of the water flow, and generating hydrodynamic simulation data. The water and rainfall data and hydrodynamic simulation data are visualized, such as drawing a rainfall distribution map, a water level change map, etc. The visualization results are integrated with the digital twin mapping scene of the sluice, and the water and rainfall data and hydrodynamic simulation data are connected to the digital twin scene to display the hydrological and water resources situation of the sluice environment in real time or simulated form. Functional interaction modules such as water level query and rainfall query are set in the digital twin scene of the sluice environment, so that users can query real-time or simulated water level and rainfall data. Corresponding functional data are generated according to user interactive operations, including the results of user query of water level, rainfall and other data. Functional modules such as water level query and rainfall query are integrated into the three-dimensional scene of the digital twin of the sluice informationization to form a complete digital twin system of the sluice informationization. Functional module testing is carried out on the sluice information digital twin three-dimensional scene to verify the correctness and stability of functions such as water level query and rainfall query, and to ensure the reliability and effectiveness of the system.

[0107] Preferably, step S52 includes the following steps:

[0108] Step S521: preprocessing the water and rainfall data to generate standard water and rainfall data, wherein the data preprocessing includes data cleaning, data missing value filling and data standardization;

[0109] Step S522: converting the standard water and rainfall regime data into a time series format to generate water and rainfall regime time series format data;

[0110] Step S523: constructing a hydrodynamic model based on the water and rainfall data and the sluice terrain data to obtain a hydrodynamic model;

[0111] Step S524: using the hydrodynamic model to perform hydrodynamic simulation calculations on the water-rainfall time series format data to obtain hydrodynamic simulation data.

[0112] The present invention performs data preprocessing on water-rainfall data, including data cleaning, data missing value filling and data standardization. These preprocessing steps can improve the quality and consistency of the data and ensure the accuracy of subsequent hydrodynamic simulation calculations. The standard water-rainfall data is converted into water-rainfall time series format data. This format conversion can better reflect the time series characteristics of the water-rainfall data, which is convenient for subsequent hydrodynamic simulation calculations and analysis. Based on the water-rainfall data and the sluice terrain data, a hydrodynamic model is constructed through step S523. The hydrodynamic model can simulate hydraulic processes such as water flow and water level changes, and help understand the hydrodynamic characteristics of the environment in which the sluice is located. Using the constructed hydrodynamic model, the water-rainfall time series format data is subjected to hydrodynamic simulation calculations to obtain hydrodynamic simulation data. These data can provide simulation results on aspects such as water flow velocity and water level changes, which are used to analyze the hydraulic characteristics of the sluice and evaluate its regulating effect on the water flow.

[0113] In an embodiment of the present invention, abnormal values, erroneous values ​​or duplicate values ​​in water and rainfall data are checked and deleted or corrected. Appropriate methods are used to fill missing values ​​in water and rainfall data, such as mean, median, interpolation, etc. The water and rainfall data are standardized to ensure that the data have similar scales and distributions. The standard water and rainfall data are arranged in chronological order to form time series data. According to the needs, a suitable time series format is selected, such as hourly, daily, etc., to meet the needs of subsequent hydrodynamic models. Collect and organize water and rainfall data and sluice terrain data, including water flow velocity, water level, water flow direction, etc. Select a suitable hydrodynamic model, such as a numerical model or a physical model, and construct it according to the data characteristics. Input the water and rainfall time series format data into the hydrodynamic model. Run the hydrodynamic model for simulation calculation to obtain hydrodynamic simulation data, including water flow velocity, water level change, flow rate and other information.

[0114] The beneficial effect of the present invention is that the texture data of the surrounding environment of the bridge and gate is generated by performing image texture analysis on the oblique photography image of the surrounding environment of the bridge and gate. These data can provide the texture features of the real scene and enhance the realism and visualization effect of the digital twin scene. Based on 3Dmax, the water gate environment data and the texture data of the surrounding environment of the bridge and gate are three-dimensionally mapped to obtain the oblique photography scene. This scene can provide the real appearance and details of the surrounding environment of the water gate and enhance the visualization effect of the digital twin scene. The 3D terrain model is constructed for the water gate environment data to generate a three-dimensional terrain model of the water gate. This model can provide geometric information of the terrain around the water gate, including terrain height, terrain features, etc., providing a basis for the subsequent digital twin scene construction. The three-dimensional model of the bridge and gate is constructed based on the contour feature data of the water gate structure to obtain an optimized three-dimensional model of the bridge and gate. This model can provide the geometric shape and details of the bridge and gate structure and enhance the realism of the bridge and gate in the digital twin scene. Based on the UE5 engine, the optimized three-dimensional model of the bridge and gate, the three-dimensional terrain model of the water gate and the oblique photography scene are used to build a digital twin scene. This scene can provide a comprehensive display of the surrounding environment of the water gate, the bridge and gate structure and the terrain, helping users to fully understand the operating environment of the water gate. The digital twin scene of the sluice is rendered in a load-optimized manner to improve rendering efficiency and performance, thereby generating a digital twin optimization scene for the sluice. This scene can provide a smoother and more realistic visualization experience, and improve the interactivity and user experience of the digital twin scene. According to the geographic discrete data of the city where the sluice is located, the digital twin optimization scene of the sluice is spatially matched to generate a digital twin mapping scene for the sluice. This scene combines the sluice optimization scene with actual geographic data to provide a more accurate display of the sluice environment and location information. The digital twin scene of the sluice is combined with water and rainfall data and hydrodynamic simulation data to create a sluice information system for real-time monitoring, prediction, and management of the operation of the sluice. Therefore, the present invention improves the simulation reliability of the sluice information system by adopting digital twin technology and comprehensively utilizing multiple data and model layered rendering methods.

[0115] Therefore, the embodiments should be regarded as illustrative and non-restrictive from all points, and the scope of the present invention is limited by the appended claims rather than the above description, and it is therefore intended that all changes falling within the meaning and range of equivalent elements of the application documents are included in the present invention.

[0116] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.

Claims

1. A method for constructing a sluice information system based on digital twin technology, characterized in that: The following steps are involved: Step S1: Obtaining water gate environment data and oblique photography images of the surrounding environment of the bridge and lock; performing image texture analysis on the oblique photography images of the surrounding environment of the bridge and lock to generate texture data of the surrounding environment of the bridge and lock; performing three-dimensional mapping on the water gate environment data and the texture data of the surrounding environment of the bridge and lock based on 3Dmax to obtain an oblique photography scene; Step S2: construct a 3D terrain model for the sluice environment data to generate a 3D terrain model of the sluice; extract the sluice structure contour features from the oblique photography image of the bridge and sluice surrounding environment to obtain the sluice structure contour feature data; The 3D model of the bridge and lock is constructed based on the contour feature data of the sluice structure to obtain the 3D optimization model of the bridge and lock; Step S3: Based on the UE5 engine, a digital twin scene is constructed for the bridge and gate 3D optimization model, the sluice gate 3D terrain model, and the oblique photography scene to obtain a sluice gate digital twin scene; load optimization rendering is performed on the sluice gate digital twin scene to generate a sluice gate digital twin optimization scene; Step S3 includes the following steps: Step S31: constructing a digital twin scene for the bridge and gate 3D optimization model, the sluice 3D terrain model, and the oblique photography scene based on the UE5 engine to obtain a sluice digital twin scene; Step S32: adding scene lighting to the digital twin scene of the sluice gate to obtain scene lighting data of the digital twin scene of the sluice gate; Step S33: using the illumination data of the digital twin scene of the sluice gate to load-optimize the rendering of the digital twin scene of the sluice gate, thereby generating an optimized digital twin scene of the sluice gate; Step S33 includes the following steps: Step S331: Calculate the shadow area of ​​the sluice scene on the sluice digital twin scene using the sluice digital twin scene illumination data to obtain the sluice scene shadow area data; Step S332: performing shadow structure analysis on the digital twin scene of the sluice according to the shadow area data of the sluice scene, and generating sluice non-shadow structure data and sluice shadow structure data; Step S333: performing layered rendering on the non-shadow structure data of the sluice to generate layered rendering data of the non-shadow of the sluice; performing ordinary rendering on the shadow structure data of the sluice to generate rendering data of the shadow structure of the sluice; Step S333 includes the following steps: Step S3331: Performing structural depth analysis on the non-shadow structure data of the sluice to generate non-shadow structure depth data of the sluice; hierarchically dividing the non-shadow structure data of the sluice based on the non-shadow structure depth data of the sluice to generate a non-shadow foreground layer of the sluice, a non-shadow middle ground layer of the sluice and a non-shadow background layer of the sluice; Step S3332: Calculate the illumination intensity of the non-shadow foreground layer of the sluice based on the preset physical illumination model to generate illumination intensity data of the foreground layer; perform high-resolution rendering processing on the non-shadow foreground layer of the sluice based on the illumination intensity data of the foreground layer to generate high-quality rendering data of the non-shadow foreground layer of the sluice; Step S3333: reducing the detail of illumination calculation for the preset physical illumination model to generate a physical illumination adjustment model; calculating the illumination intensity of the non-shadow middle ground layer of the sluice according to the physical illumination adjustment model to generate illumination intensity data of the middle ground layer; performing medium-resolution rendering processing on the non-shadow middle ground layer of the sluice according to the illumination intensity data of the middle ground layer to generate medium-quality rendering data of the non-shadow middle ground layer of the sluice; Step S3334: performing a simple lighting calculation on the non-shadow background layer of the sluice based on a preset light map to obtain background layer lighting intensity data; performing low-resolution rendering processing on the non-shadow background layer of the sluice based on the background layer lighting intensity data to generate low-quality rendering data of the non-shadow background layer of the sluice; Step S3335: Integrate the high-quality rendering data of the non-shadow foreground layer of the sluice, the medium-quality rendering data of the non-shadow middle layer of the sluice, and the low-quality rendering data of the non-shadow background layer of the sluice to generate the non-shadow layered rendering data of the sluice; perform soft shadow rendering processing on the shadow structure data of the sluice to generate the shadow structure rendering data of the sluice; Step S334: performing rendering load analysis on the non-shadow layered rendering data of the sluice and the shadow structure rendering data of the sluice to generate rendering load data; performing priority rendering sorting on the non-shadow layered rendering data of the sluice and the shadow structure rendering data of the sluice based on the rendering load data, thereby generating a digital twin optimization scene of the sluice; Step S4: obtaining geographic data of the city where the sluice is located; discretizing the geographic data of the city where the sluice is located in data space to generate geographic discrete data of the city where the sluice is located; performing spatial position matching of the digital twin optimization scene of the sluice according to the geographic discrete data of the city where the sluice is located to generate a digital twin mapping scene of the sluice; Step S5: Obtain water and rainfall data; perform hydrodynamic simulation on the water and rainfall data to generate hydrodynamic simulation data; visualize the water and rainfall data and the hydrodynamic simulation data and connect them to the digital twin mapping scene of the sluice to obtain the digital twin scene of the sluice environment; set and test the module functions of the digital twin scene of the sluice environment to generate a sluice information system.

2. The method for constructing a sluice information system based on digital twin technology according to claim 1 is characterized in that: Step S1 includes the following steps: Step S11: Acquire the water gate environment data and the oblique photography image of the surrounding environment of the bridge and gate; Step S12: performing image preprocessing on the oblique photography image of the surrounding environment of the bridge and lock to generate an oblique photography image of the surrounding environment of the standard bridge and lock, wherein the image preprocessing includes image denoising, color correction and image stitching; Step S13: performing image texture analysis on the oblique photography image of the standard bridge and lock surrounding environment to generate texture data of the bridge and lock surrounding environment; Step S14: Perform three-dimensional mapping on the sluice environment data and the surrounding environment texture data of the bridge and sluice based on 3Dmax to obtain an oblique photography scene.

3. The method for constructing a sluice information system based on digital twin technology according to claim 1 is characterized in that: Step S2 includes the following steps: Step S21: Performing a sluice topography analysis on the sluice environment data to obtain sluice topography data; Step S22: constructing a 3D terrain model according to the sluice terrain model to generate a 3D terrain model of the sluice; Step S23: extracting the sluice structure contour features from the oblique photography image of the standard bridge and sluice surrounding environment to obtain sluice structure contour feature data, wherein the sluice structure contour feature data includes bridge structure feature data, gate feature data and lock chamber feature data; Step S24: construct a 3D model of the bridge and lock according to the bridge structure characteristic data, the gate characteristic data and the lock chamber characteristic data to obtain a 3D model of the bridge and lock; add material mapping to the 3D model of the bridge and lock to generate a 3D optimized model of the bridge and lock.

4. The method for constructing a sluice information system based on digital twin technology according to claim 1 is characterized in that: Step S4 includes the following steps: Step S41: acquiring geographic data of the city where the sluice is located, wherein the geographic data of the city where the sluice is located includes satellite image data and city elevation data; Step S42: discretizing the geographic data of the city where the sluice is located to generate geographic discrete data of the city where the sluice is located; Step S43: Perform spatial position matching on the digital twin optimization scene of the sluice gate according to the geographic discrete data of the city where the sluice gate is located, and generate a digital twin mapping scene of the sluice gate.

5. The method for constructing a sluice information system based on digital twin technology according to claim 4 is characterized in that: Step S43 includes the following steps: Step S431: confirm the center coordinates of the sluice according to the geographical discrete data of the city where the sluice is located, and obtain the center point coordinate data of the city sluice; Step S432: performing local buffer area clipping on the geographic discrete data of the city where the water gate is located according to the coordinate data of the center point of the city water gate to obtain local area data; performing local area feature extraction on the local area data to generate local area feature data, wherein the local area features include local area terrain features and local area infrastructure features; Step S433: Initially match the local area data with the sluice digital twin optimization scene to generate a sluice digital twin initial matching model; perform matching accuracy analysis on the sluice digital twin initial matching model through the local area feature data to generate matching accuracy data; Step S434: Accurately match the initial matching model of the sluice digital twin according to the matching accuracy data to generate a sluice digital twin mapping scene.

6. The method for constructing a sluice information system based on digital twin technology according to claim 1 is characterized in that: Step S5 includes the following steps: Step S51: obtaining water and rainfall data; Step S52: Performing hydrodynamic simulation on the water and rainfall data to generate hydrodynamic simulation data; Step S53: visualize the water and rainfall data and the hydrodynamic simulation data and connect them to the digital twin mapping scene of the sluice gate, so as to obtain the digital twin scene of the sluice gate environment; Step S53: performing functional interaction settings on the digital twin scene of the sluice environment, thereby generating functional data of the digital twin scene of the sluice environment, wherein the functional interaction settings include water level query and rainfall query; Step S54: Use the sluice environment digital twin scene function data to integrate the functional modules of the sluice environment digital twin scene to generate a sluice informationized digital twin three-dimensional scene; perform module function testing on the sluice informationized digital twin three-dimensional scene to generate a sluice informationized system.

7. The method for constructing a sluice information system based on digital twin technology according to claim 6 is characterized in that: Step S52 includes the following steps: Step S521: preprocessing the water and rainfall data to generate standard water and rainfall data, wherein the data preprocessing includes data cleaning, data missing value filling and data standardization; Step S522: converting the standard water and rainfall regime data into a time series format to generate water and rainfall regime time series format data; Step S523: constructing a hydrodynamic model based on the water and rainfall data and the sluice terrain data to obtain a hydrodynamic model; Step S524: using the hydrodynamic model to perform hydrodynamic simulation calculations on the water-rainfall time series format data to obtain hydrodynamic simulation data.