A three-dimensional scene simulation method along a marching road
By processing two-dimensional landform images and training neural networks, a fast and accurate three-dimensional scene is generated, which solves the problem of constructing three-dimensional simulation scenes along the marching road in the existing technology, and improves the accuracy and efficiency of pre-march assessment and prediction.
Patent Information
- Application Number
- CN202310244752.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-14
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2043-03-14
AI Technical Summary
Existing technology lacks the ability to quickly construct a three-dimensional simulation scene along the marching road, making it difficult to accurately assess and predict road conditions before marching, increasing marching risks.
By performing specification consistency processing and annotation on two-dimensional landscape overhead images, the landform recognition neural network model is trained, the landform feature data is extracted and input into the three-dimensional simulation environment, and a fast and accurate three-dimensional landform scene is generated.
It realizes the rapid construction of three-dimensional scenes along the marching road, reduces the difficulty of implementation and improves efficiency. It is suitable for two-dimensional landform images of various specifications, ensuring accurate recognition and simulation effects.
Smart Images

Figure CN116843843B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer simulation, and in particular to a method for simulating three-dimensional scenes along a marching road. Background Art
[0002] In the fields of military, counter-terrorism, emergency rescue, etc., it is usually necessary to send professional teams to unfamiliar areas to perform tasks. During this period, they need to use mobile marching methods, such as driving special equipment vehicles, rescue vehicles, etc. along planned roads.
[0003] In order to accurately evaluate the route before the march, which is conducive to improving the marching speed, strengthening prediction, avoiding accidents, and making various preparations in advance, it is usually necessary to be familiar with the natural and cultural conditions along the marching route as much as possible in advance. To this end, it is necessary to be able to quickly build a simulation environment along the marching route to facilitate early prediction and evaluation of marching effectiveness, and to make full preparations for the actual road march. Summary of the invention
[0004] The main technical problem solved by the present invention is to provide a method for simulating three-dimensional scenes along a marching road, thereby solving the technical problem in the prior art of lacking the ability to quickly construct corresponding three-dimensional simulation scenes along a marching road.
[0005] In order to solve the above technical problems, a technical solution adopted by the present invention is to provide a three-dimensional scene simulation method along a marching road, comprising the steps of:
[0006] The beneficial effects of the present invention are as follows: the present invention discloses a method for simulating three-dimensional scenes along a marching road, including the steps of: performing specification consistency processing on two-dimensional topographic overhead image samples to obtain standardized patterns, annotating and cropping the two-dimensional topography therein, and obtaining multiple two-dimensional topographic training samples; extracting image features of the two-dimensional topographic training samples, training to obtain a two-dimensional topographic recognition neural network model, using the model to perform target recognition on application images containing overhead two-dimensional topography, extracting two-dimensional topographic feature data and inputting it into a three-dimensional topographic simulation environment, performing three-dimensional topographic height and exterior decoration simulation layout, and quickly generating corresponding three-dimensional topographic scenes. The method is suitable for standardized processing of two-dimensional topographic overhead images of various specifications, can accurately identify the two-dimensional topographic objects therein, and thereby quickly generate corresponding three-dimensional topographic scenes, and has the advantages of a wide range of applications, reduced implementation difficulty, and high efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] Figure 1 is a flow chart of an embodiment of a method for simulating three-dimensional scenes along a marching road according to the present invention;
[0008] Figure 2 is a schematic diagram of a pixel coordinate system in another embodiment of the method for simulating a three-dimensional scene along a marching road according to the present invention;
[0009] Figure 3 In another embodiment of the method for simulating three-dimensional scenes along a marching road according to the present invention, the application image is identified as a plurality of geomorphic feature data schematic diagrams;
[0010] Figure 4 It is a schematic diagram of displaying elevation data in a three-dimensional geographic coordinate system according to another embodiment of the three-dimensional scene simulation method along a marching road of the present invention;
[0011] Figure 5 It is a schematic diagram of rendering the terrain background with a single color for elevation data in another embodiment of the three-dimensional scene simulation method along a marching road according to the present invention;
[0012] Figure 6 It is a schematic diagram of forest landform simulation according to another embodiment of the three-dimensional scene simulation method along a marching road of the present invention;
[0013] Figure 7 It is a schematic diagram of grassland landform simulation according to another embodiment of the three-dimensional scene simulation method along a marching road of the present invention;
[0014] Figure 8 is a schematic diagram of a three-dimensional landform scene according to another embodiment of the three-dimensional scene simulation method along a marching road of the present invention;
[0015] Fig. 9 It is a schematic diagram of road data display in another embodiment of the three-dimensional scene simulation method along a marching road according to the present invention;
[0016] Fig.10 is an illustrative diagram of a three-dimensional scene along a marching road according to another embodiment of the three-dimensional scene simulation method along a marching road of the present invention;
[0017] Fig.11 It is a schematic diagram of performing standardized segmentation of an image according to another embodiment of the method for simulating a three-dimensional scene along a marching road of the present invention;
[0018] Fig.12 This is an illustrative diagram of two-dimensional landform annotation and cutting of a standardized pattern according to another embodiment of the three-dimensional scene simulation method along a marching road of the present invention;
[0019] Fig.13 It is a composition diagram of an initial neural network recognition model in another embodiment of the method for simulating three-dimensional scenes along a marching road according to the present invention;
[0020] Fig.14 It is a schematic diagram of two-dimensional landform objects recognized by standardized patterns in another embodiment of the three-dimensional scene simulation method along a marching road according to the present invention. DETAILED DESCRIPTION
[0021] In order to facilitate the understanding of the present invention, the present invention is described in more detail below in conjunction with the accompanying drawings and specific embodiments. Preferred embodiments of the present invention are provided in the accompanying drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described in this specification. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present invention more thorough and comprehensive.
[0022] It should be noted that, unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used in this specification includes any and all combinations of one or more related listed items.
[0023] Figure 1 A flowchart showing an embodiment of a method for simulating a three-dimensional scene along a marching road is shown, comprising the steps of:
[0024] Step S1: Obtaining road data corresponding to the marching road between the departure point and the destination, as well as elevation data along the road and a two-dimensional overhead image along the road;
[0025] Step S2: performing target recognition on the two-dimensional overhead image along the road to obtain geomorphic feature data along the road, inputting the road data and elevation data along the road into a three-dimensional geographic coordinate system, and performing spatial coordinate matching with the geomorphic feature data along the road;
[0026] Step S3: Generate simulated landforms according to the landform feature data along the road, generate simulated roads according to the road data, and generate three-dimensional simulated terrain according to the elevation data; render the three-dimensional simulated terrain with the simulated landforms and simulated roads according to the spatial information features of the landform feature data along the road and the road data in the three-dimensional geographic coordinate system to generate a three-dimensional scene along the marching road.
[0027] pass Figure 1The three-dimensional scene simulation method along the marching road shown in the figure, on the one hand, can obtain the actual landform characteristics of a spatial region by using the two-dimensional overhead images along the road (such as two-dimensional images taken by remote sensing and telemetry, or two-dimensional aerial images), and this landform characteristic has dynamic changes, such as the impact of rain and snow on the landform, the impact of seasonal changes on the landform, and the impact of natural disasters and human behavior on the landform; on the other hand, the road data corresponding to the marching road is used to determine the road passed by the march, and the elevation data along the road is used to reflect the terrain undulations of a spatial region, which are usually stable unless there are terrain changes caused by filling mountains and seas, earthquake collapse, etc., and this change is usually stable for a long time before or after it occurs.
[0028] Therefore, through the above-mentioned embodiments of the present invention, when constructing and presenting a three-dimensional scene along a marching road corresponding to an actual spatial area in a simulation environment, it can be achieved relatively quickly and accurately while meeting the requirements for efficiency and accuracy.
[0029] Preferably, in step S1, the two-dimensional overhead image along the road is represented by a pixel coordinate system, such as Figure 2 As shown, the lower left corner of the image is the origin pixel coordinate (0,0), the horizontal coordinate increases to the right by one pixel, such as the maximum value Xmax-1 is 1023, indicating that there are Xmax=1024 pixels in the horizontal direction, and the vertical coordinate increases upward by one pixel, such as the maximum value Ymax-1 is 767, indicating that there are Ymax=768 pixels in the vertical direction. Therefore, for each pixel coordinate in an image with a total number of pixels of 1024×768, its pixel coordinate and pixel value in the image can be determined by a corresponding pixel value. Then, based on the coordinate, the pixel value corresponding to each pixel coordinate is represented by the three primary colors (R, G, B).
[0030] Preferably, in step S2, the method for obtaining the geomorphic feature data along the road includes: using a trained geomorphic recognition neural network model to perform target recognition on the two-dimensional overhead image along the road, and extracting first to Nth geomorphic feature data corresponding to multiple different geomorphic types, where N represents the number of geomorphic type categories, and N is greater than or equal to 2; the spatial coordinate matching of the geomorphic feature data along the road includes: matching the spatial coordinates of the first to Nth geomorphic feature data with the road data and the elevation data along the road.
[0031] Preferably, based on Figure 2 The pixel coordinate system shown is used to represent the first landform feature data to the Nth landform feature data, wherein the first landform feature data is represented as:
[0032]
[0033] The Nth geomorphic feature data is expressed as:
[0034]
[0035] Among them, A 1 represents a set of pixel values of the pixel points included in the first landform feature data in the pixel coordinate system, represents the pixel value of the origin pixel coordinate (0,0) of the first landform feature data in the pixel coordinate system, Represents the pixel value of the pixel coordinate (0,1) of the first geomorphic feature data in the pixel coordinate system, and so on. A represents the pixel value of the maximum pixel coordinate (Xmax-1, Ymax-1) of the first landform feature data in the pixel coordinate system; N represents the set of pixel values of the pixel points included in the Nth landform feature data in the pixel coordinate system, Represents the pixel value of the origin pixel coordinate (0,0) of the Nth landform feature data in the pixel coordinate system, Represents the pixel value of the pixel coordinate (0,1) of the Nth landform feature data in the pixel coordinate system, and so on. Represents the pixel value of the maximum pixel coordinate (Xmax-1, Ymax-1) of the Nth landform feature data in the pixel coordinate system.
[0036] Preferably, it can be seen that the first geomorphic feature data to the Nth geomorphic feature data are data sets established based on the same pixel coordinate system, so these data can be superimposed to obtain various geomorphic feature data of the two-dimensional overhead image along the road. Therefore, in turn, step S2 is to use the trained geomorphic recognition neural network model (described in detail later) to decompose the different geomorphic features in the two-dimensional overhead image along the road, so as to obtain the first geomorphic feature data to the Nth geomorphic feature data, and the first geomorphic feature data to the Nth geomorphic feature data here are established based on the same pixel coordinate system of the two-dimensional overhead image along the road.
[0037] For example, Figure 3 As shown, the two-dimensional overhead image A11 is the first landform feature data A generated after the landform feature recognition is performed by the trained landform recognition neural network model. 1 Corresponding rocky landform, the second landform feature data A 2 Corresponding forest landform, the third landform feature data A 3 Corresponding cultivated landform, the fourth landform feature data A 4 Corresponding water body landform, fifth landform feature data A 5 Corresponding grassland landform.
[0038] Preferably, when the geographical scope corresponding to the two-dimensional overhead image A11 is small, it corresponds to the actual geographic space, and the influence of the radius of curvature of the earth's surface can be ignored. The actual area corresponding to the two-dimensional overhead image A11 along the road can be regarded as a plane area rather than a curved area (but the difference in elevation is maintained). Therefore, the distance between any two points on the image can correspond to the actual spatial distance according to the scale, and the pixel coordinates of any point on the image can also be converted into a surface area centered on a position point on the plane geographic space. Therefore, the higher the pixel resolution corresponding to the two-dimensional overhead image A11, the smaller the spatial geographical scope corresponding to a single pixel, which indicates that the spatial scope corresponding to the image is smaller. For example, two two-dimensional overhead images of the same pixel size, one represents 5 square kilometers and the other represents 8 square kilometers. Obviously, the actual spatial scope corresponding to each pixel of the former is smaller, but the displayed fineness or clarity is higher.
[0039] Preferably, in step S2, the first geomorphic feature data to the Nth geomorphic feature data are mapped to the three-dimensional geographic coordinate system in the simulation environment by mapping the horizontal coordinate and the vertical coordinate of each pixel coordinate of the first geomorphic feature data to the Nth geomorphic feature data to the three-dimensional geographic coordinate system X 1 Y 1 Z 1 In X 1 Y 1 The coordinate point (x 1 ,y 1 ). Since the size of the spatial area occupied by the pixel corresponding to each pixel coordinate in the geomorphic feature data is different, the corresponding coordinate point refers to the geometric center of the spatial area. Therefore, the spatial information features of the first geomorphic feature data to the Nth geomorphic feature data in the three-dimensional geographic coordinate system include the coordinate point of the geometric center of the spatial area occupied by each pixel coordinate in the three-dimensional geographic coordinate system, and the spatial area range corresponding to each pixel.
[0040] Preferably, for the elevation data along the road, when the elevation data along the road are input into the three-dimensional geographic coordinate system, the method for matching the spatial coordinates of the first to Nth landform feature data with the elevation data is as follows: let each three-dimensional coordinate point (x 2 ,y 2 ,z 2 ) corresponds to the plane coordinate point (x 2 ,y 2 ), and the plane coordinate point (x 1 ,y 1 ) to obtain the elevation value of each coordinate point in the three-dimensional geographic coordinate system. Figure 4 As shown, the elevation data is displayed in a three-dimensional geographic coordinate system. Obviously, the display results of these elevation data only show the ups and downs of the terrain and cannot accurately obtain the corresponding landform features.
[0041] Preferably, the three-dimensional elevation data is used to generate a three-dimensional simulated terrain, that is, the three-dimensional elevation data is rendered and displayed as a terrain background using a single color, such as Figure 5 shown.
[0042] Preferably, in order to quickly form a visual display image in a simulation environment, it is necessary to convert different types of landform feature data into simulated landform scenes, such as Figure 6 The corresponding is the forest landform, which can simulate the construction of pine forests, shrub forests, birch forests and other forests, such as Figure 7 The corresponding one is the grassland landform, which can simulate and construct grass of different types and colors to cover the ground. Therefore, according to the spatial information characteristics of the first landform feature data to the Nth landform feature data in the three-dimensional geographic coordinate system, the geographical range occupied by pixels with the same landform feature type in the three-dimensional geographic coordinate system can be spatially covered and rendered with the corresponding simulated landform sceneries.
[0043] In this way, based on the same 3D simulation environment and the same geographic coordinate system, the 3D simulated terrain and landforms can be overlaid and rendered to quickly generate a 3D landform scene. Figure 8 shown.
[0044] For road data, it can come from open source road data information, such as Open Street Map (OSM). Fig. 9 As shown, these road data usually have two-dimensional spatial coordinate information, which can be combined with each three-dimensional coordinate point (x 2 ,y 2 ,z 2 ) corresponds to the plane coordinate point (x 2 ,y 2 ), and the plane coordinate point (x 1 ,y 1 ) is consistent with the corresponding. Correspondingly, when displaying, the road data also needs to be converted into simulated roads, and then superimposed and rendered with the three-dimensional simulated terrain in the same geographic coordinate system to generate a three-dimensional scene with roads and landforms, such as Fig.10 shown.
[0045] Furthermore, the following is a further explanation of the construction and training of the landform recognition neural network model, including:
[0046] Step S01: inputting a two-dimensional topographic overhead image sample, performing specification consistency processing on the two-dimensional topographic overhead image sample, and obtaining one or more standardized patterns;
[0047] Step S02: marking and cutting the two-dimensional landforms in the standardized pattern to obtain a plurality of two-dimensional landform training samples;
[0048] Step S03: extracting the image features of the two-dimensional landform training samples, inputting them into the initial neural network recognition model to perform recognition training on the two-dimensional landform targets in the standardized pattern, and finally obtaining a landform recognition neural network model.
[0049] In step S01, for a two-dimensional topographic overhead image sample T 1 , which includes at least two parameters, namely the pixel quantity p 1 and space value k 1 , where the pixel quantity represents the number of image pixels of the sample, and the spatial value represents the area of the actual space presented by the sample, which is represented by T 1 (p 1 ,k 1 ). Usually the desired pixel quantity p 1 As large as possible and space value k 1 As small as possible, so that the pixel value per unit area of the image sample is larger, that is, the pixel value p 1 and space value k 1 The ratio p 1 / k 1 The larger it is, the higher the image resolution of the image sample.
[0050] Preferably, the acquired two-dimensional topographic overhead image sample T 1 There are many sources, such as remote sensing images taken by remote sensing satellites, aerial images taken by aircraft, and drone-based close-up images taken by commercial drones. When there are two-dimensional topographical overhead image samples from multiple sources, it is necessary to perform specification consistency processing on these samples from different sources.
[0051] Preferably, in step S01, the specification consistency processing of the two-dimensional topographic overhead image samples is to make the pixel quantity p of different samples 1 and space value k 1 The ratio p 1 / k 1 Equal or nearly equal. Therefore, in applications, it is usually necessary to classify images according to their sources to ensure the requirements of specification consistency. Images can also be compressed or interpolated to reduce or increase the pixel values of image samples.
[0052] In addition, there is the pixel quantity p1 and space value k 1 The ratio p 1 / k 1 There is a minimum threshold requirement because if the ratio is too small, the resolution and recognition of the two-dimensional landform will be reduced, making it difficult to accurately identify the contour, color, type and other features of the two-dimensional landform, and it will be impossible to accurately distinguish the types of two-dimensional landforms, making it impossible to accurately mark and identify the two-dimensional landforms.
[0053] Preferably, in step S01, the two-dimensional topographic overhead image samples are processed for uniform specifications, and the image samples are processed for uniform pixel size, such as dividing the image with larger pixel values into multiple standardized patterns with the same pixel size, while ensuring that the corresponding spatial values are the same or close. The standardized pattern thus obtained not only has the pixel value p 1 and space value k 1 The ratio p 1 / k 1 The same or close, and the pixel quantity p 1 are the same or close to each other, and the corresponding spatial value k 1 The same or close in nature.
[0054] Preferably, Fig.11 As shown in the figure, the standardized segmentation of an image with a large number of pixels is schematically illustrated. Fig.11 In the example, the two-dimensional topographical overhead image sample T 1 The number of pixels p 1 is the number of horizontal pixels x 1 and the number of vertical pixels y 1 Multiply them together to get p 1 =x 1 y 1 Then, for the two-dimensional topographical overhead image sample T 1 The lateral split ratio is n 1 ,For example Fig.11 Medium 1 =7, the longitudinal division ratio is m 1 ,For example Fig.11 Medium 1 =3, corresponding to the number of horizontal pixels x of the standardized pattern with the same pixel size 2 =x 1 / n 1 and the number of vertical pixels y 2 =y 1 / m 1 Therefore, the two-dimensional topographical image sample T 1 The segmentation is divided into a set of multiple standardized patterns, namely: Where T1,1 , T 1,2 , …, They respectively represent normalized patterns with the same number of pixels after segmentation.
[0055] Since these patterns are presented based on pixels, they can be represented by the pixel coordinate system, that is, the pixel coordinates and pixel values corresponding to the pixels. Figure 2 Description.
[0056] Preferably, when the two-dimensional topographic overhead image sample is divided into multiple standardized patterns, this pixel coordinate system is also used for pixel representation of each standardized pattern. This is conducive to unified standardization processing and is also conducive to processing each standardized pattern and then recombining them, thereby realizing the processing of the two-dimensional topographic overhead image sample.
[0057] Combined with step S02, Fig.12 An example of two-dimensional landform annotation and cropping of the standardized pattern is shown, and it can be seen that there are multiple two-dimensional landform training samples 11 to 15. The pixel features of these two-dimensional landform training samples include white pixels, dark green pixels, light green pixels and other features. There are also spatial orientation features of the layout of these two-dimensional landform training samples, which can be determined based on the spatial orientation of the captured image in the map, such as determining the azimuth of each edge of the training sample with the true north pointing as the 0 angle reference.
[0058] Therefore, when the two-dimensional landform training sample is represented by J i , where i represents the serial number, indicating that there are multiple different two-dimensional landform training samples. Furthermore, there are also corresponding image features representing the two-dimensional landform training samples in The corresponding pixel features include the number of pixels (or pixel percentage, that is, the percentage of the number of pixels of the sample to the total number of pixels of the standardized pattern), the color value of the pixel, the actual space size corresponding to a single pixel, etc. The correspondence is a spatial orientation feature, including the orientation angles of each edge; The corresponding image format is jpg, tiff and other different image storage formats.
[0059] In step S02, as many two-dimensional landform training samples as possible are obtained, and then in step S3, the image features of these two-dimensional landform training samples are extracted, that is, the image features of each two-dimensional landform training sample are obtained. Then, these two-dimensional landform training samples are used to train the initial neural network recognition model, so that the setting parameters of the initial neural network recognition model are continuously adjusted, and finally the two-dimensional landform targets can be accurately identified from the standardized patterns, thereby obtaining the corresponding two-dimensional landform recognition neural network model.
[0060] Preferably, the initial neural network recognition model is as follows Fig.13 As shown, the image recognition network is mainly constructed with convolutional neural network as the main body, including a first-level feature extraction network N1, which is used to extract image features from the input image to obtain a feature map N2. The output result of the first-level feature extraction network N1 also enters the second-level region proposal network N3 for region selection, and then the divided different regions are applied to the feature map N2, that is, the feature map N2 is divided into regions, and then the third-level pooling layer N4 is pooled. The processing results are input in parallel to three recognition networks, namely, a classification recognition network N5, a border recognition network N6, and a pixel recognition network N7, which are respectively used to perform type recognition on the two-dimensional landforms in the image, recognize and annotate the borders of each two-dimensional landform, and recognize and divide the pixels in the two-dimensional landforms, and then output the recognized and annotated recognition image.
[0061] Preferably, the first-level feature extraction network N1 may be a RestNet convolutional neural network, which is used to extract two-dimensional landform features in the image and obtain a segmentation result of the two-dimensional landform, such as ResNet18, ResNet34, ResNet50, ResNet101 and ResNet152 networks.
[0062] Preferably, the second-level region proposal network N3 corresponds to RPN (Region proposal network), which is used to perform a two-dimensional landform target frame regression operation on each candidate region, generate a two-dimensional landform target regression frame and obtain the category possibility size. Specifically, the second-level region proposal network N3 is used to scan the feature map N2 and try to determine the area containing the two-dimensional landform target. For example, the RPN network convolves feature maps of different scales and generates 3 anchors at each position, where 3×4 convolution kernels are generated for the two-dimensional landform (3 types of landform color and background). Two fully connected layers are connected after the convolution kernel to complete the discrimination of the foreground (target) and background (background) of each pixel, as well as the regression correction of the two-dimensional landform target frame.
[0063] Preferably, the corresponding third-level pooling layer N4 may be a target region pooling network (Region Of Interest Pooling) or a ROI Align network. The pooling process corresponding to the ROIPooling network includes quantizing and rounding the boundary coordinates of the target region; then dividing the region into m*m units, and quantizing and rounding the boundaries of these units again. These quantization operations will cause a certain deviation between the boundary values and the initial boundary values, which may not affect the classification, but it will affect the accuracy of the segmentation.
[0064] The pooling process corresponding to ROI Align cancels the quantization and rounding operation of the boundary coordinates, and uses bilinear interpolation to calculate the precise feature values corresponding to the boundaries in m*m units, thereby converting the target area pooling process into a continuous operation. The specific operations are: 1. Traverse each target area without quantizing the boundaries. 2. Divide each target area into m*m units, and the boundaries of each unit are not quantized. 3. Calculate the values of the four coordinate positions in each unit through bilinear interpolation. 4. Perform the maximum value pooling operation on each unit to obtain a feature map of size m*m.
[0065] Preferably, for the classification recognition network N5, the corresponding one may be a Fully-Convolutional Network (FCN) for predicting the two-dimensional landform category.
[0066] Preferably, for the border recognition network N6, the corresponding one may be a fully convolutional network (FCN), which is used to generate regression frames corresponding to the two-dimensional terrain shapes.
[0067] Preferably, the pixel recognition network N7 may correspond to a fully convolutional network (FCN), for example, it may include 4 consecutive convolutional layers and one deconvolution layer. Each convolution layer has a kernel size of 3×3 and 256 channels, followed by a deconvolution layer with a 2-fold upsampling, which is used to predict the binary pixel value of each two-dimensional landform target.
[0068] Therefore, the final recognition image outputs three recognition results: the category of the target, the regression box coordinates of the target, and the pixel value of the target.
[0069] In step S03, the initial neural network recognition model is trained using the two-dimensional landform training samples, mainly including setting network parameters and adjusting network configuration, such as initializing learning rate, number of epochs (a complete data set passes through the neural network model once and returns once, and this process is called an epoch), etc.; loading pre-trained weights to start training the network, and saving the weight results obtained from the training. Finally, the required two-dimensional landform recognition neural network model is obtained.
[0070] During the training process, by continuously optimizing and adjusting the network configuration and parameters, the two-dimensional landform training samples must first be accurately identified, and then the image samples used for verification are input for detection and verification to evaluate the accuracy and reliability of the two-dimensional landform recognition neural network model in detecting two-dimensional landforms.
[0071] Preferably, combined Figure 1 , it is also necessary to segment the two-dimensional overhead images along the road into multiple standardized patterns, and then input them into the two-dimensional terrain recognition neural network model for two-dimensional terrain target recognition.
[0072] Preferably, you can refer to Fig.11 In the embodiment, the two-dimensional overhead image along the road is represented by Q 1 , divided into a set of multiple standardized patterns, namely: Where Q 1,1 , Q 1,2 , …, They respectively represent the standardized patterns with the same number of pixels after the two-dimensional overhead image along the road is segmented, and have the same number of pixels as the standardized patterns corresponding to the samples in the training process. 2 Represents the horizontal segmentation ratio of the 2D overhead image along the road, m 2 Indicates the longitudinal division ratio of the 2D overhead image along the road.
[0073] Furthermore, the obtained two-dimensional landform feature data is based on each segmented standardized pattern, corresponding to a two-dimensional landform data set, namely Q 1,1 , Q 1,2 , …, Corresponding to the two-dimensional landform data set For any landform data subset q in the set e,r ,e∈(1,m 2 ), r∈(1,n 2 ), both use the pixel coordinate system as a reference to represent the extracted two-dimensional landform features.
[0074] Preferably, continue with Fig.12For example, if the figure represents a landform data subset q extracted and identified by a standardized pattern after segmentation of a two-dimensional overhead image along the road e,r , the landform data subset q e,r Includes multiple identified two-dimensional landform objects l j , where j represents the sequence number, such as Fig.14 The identified l is shown in 1 To 9 For any two-dimensional landform object l j All of them use pixel coordinate system as reference to represent their data features. in It corresponds to a set of multiple pixel coordinates of the two-dimensional landform object. The combination of these pixel coordinates together constitutes the outline of the two-dimensional landform object and the pixel composition inside the outline. For example It can be expressed as Where (x 1 ',y 1 ') represents the coordinate value corresponding to a pixel in the two-dimensional landform object, and the other coordinates have the same meaning. There are a total of g 1 The coordinates correspond to g 1 pixels. It corresponds to the set of pixel values of multiple pixels of the two-dimensional landform object, and each pixel value represents the color value of the pixel, for example It can be expressed as in Indicates the pixel value corresponding to a pixel in the two-dimensional landform object, which can include three values of the three primary colors of red, green and blue, so it is represented by a vector here. Other pixel values have the same meaning. Here it corresponds to g 1 The pixel value of pixels. Correspondence is a spatial orientation feature, which can be defined by the clockwise angle between the direction of the line connecting two pixel coordinates relative to the north direction, for example Represents the coordinates (x 1 ',y 1 ') to (x 2 ',y 2 The clockwise angle between the line connecting the two directions and the true north is α.
[0075] Preferably, the obtained two-dimensional landform feature data is composed of segmented standardized patterns, and the corresponding landform data subset contains a plurality of identified two-dimensional landform objects which are data features established with reference to a pixel coordinate system, and the data features can be combined with specific orientations for geographic spatial layout. Therefore, the two-dimensional landform feature data can be input into a three-dimensional space simulation environment for spatial simulation processing.
[0076] It can be seen that the present invention discloses a method for simulating three-dimensional scenes along a marching road, including the steps of: performing specification consistency processing on two-dimensional topographic overhead image samples to obtain standardized patterns, annotating and cropping the two-dimensional topography therein, and obtaining multiple two-dimensional topographic training samples; extracting image features of the two-dimensional topographic training samples, training to obtain a two-dimensional topographic recognition neural network model, using the model to perform target recognition on application images containing overhead two-dimensional topography, extracting two-dimensional topographic feature data and inputting it into a three-dimensional topography simulation environment, performing three-dimensional topographic height and exterior decoration simulation layout, and quickly generating corresponding three-dimensional topographic scenes. This method is suitable for standardized processing of two-dimensional topographic overhead images of various specifications, can accurately identify the two-dimensional topographic objects therein, and thereby quickly generate corresponding three-dimensional topographic scenes, and has the advantages of a wide range of applications, reduced implementation difficulty, and high efficiency.
[0077] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structural transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for simulating three-dimensional scenes along a marching road, characterized in that: Includes steps: Obtain the road data corresponding to the marching road between the departure point and the destination, as well as the elevation data along the road and the two-dimensional aerial image along the road; Performing target recognition on the two-dimensional overhead image along the road to obtain geomorphic feature data along the road, inputting the road data and elevation data along the road into a three-dimensional geographic coordinate system, and performing spatial coordinate matching with the geomorphic feature data along the road; Generate simulated landforms and scenes corresponding to the landform feature data along the road, generate simulated roads according to the road data, and generate three-dimensional simulated terrain according to the elevation data; render the three-dimensional simulated terrain with the simulated landforms and the simulated roads according to the spatial information features of the landform feature data along the road and the road data in the three-dimensional geographic coordinate system, and generate a three-dimensional scene along the marching road; The method for obtaining geomorphic feature data along the road comprises: Using the trained landform recognition neural network model, target recognition is performed on the two-dimensional overhead image along the road, and first to Nth landform feature data corresponding to multiple different landform types are extracted, where N represents the number of landform types, and N is greater than or equal to 2; The spatial coordinate matching of the landform feature data along the road includes: matching the spatial coordinates of the first landform feature data to the Nth landform feature data with the road data and the elevation data along the road; The method for obtaining the landform recognition neural network model includes: Inputting a two-dimensional topographic overhead image sample, performing specification consistency processing on the two-dimensional topographic overhead image sample, and obtaining one or more standardized patterns; Annotating and cutting the two-dimensional landforms in the standardized pattern to obtain a plurality of two-dimensional landform training samples; The image features of the two-dimensional landform training samples are extracted and input into an initial neural network recognition model to perform recognition training on the two-dimensional landform targets in the standardized pattern, and finally a landform recognition neural network model is obtained.
2. The method for simulating three-dimensional scenes along a marching road according to claim 1, characterized in that: The two-dimensional overhead image along the road is represented by a pixel coordinate system, and the first landform feature data to the Nth landform feature data are represented based on the pixel coordinate system, wherein the first landform feature data is represented as: The Nth geomorphic feature data is expressed as: Among them, A 1 represents a set of pixel values of the pixel points included in the first landform feature data in the pixel coordinate system, represents the pixel value of the origin pixel coordinate (0,0) of the first landform feature data in the pixel coordinate system, Represents the pixel value of the pixel coordinate (0,1) of the first geomorphic feature data in the pixel coordinate system, and so on. A represents the pixel value of the maximum pixel coordinate (Xmax-1, Ymax-1) of the first landform feature data in the pixel coordinate system; N represents the set of pixel values of the pixel points included in the Nth landform feature data in the pixel coordinate system, Represents the pixel value of the origin pixel coordinate (0,0) of the Nth landform feature data in the pixel coordinate system, Represents the pixel value of the pixel coordinate (0,1) of the Nth landform feature data in the pixel coordinate system, and so on. Represents the pixel value of the maximum pixel coordinate (Xmax-1, Ymax-1) of the Nth landform feature data in the pixel coordinate system.
3. The method for simulating three-dimensional scenes along a marching road according to claim 2, characterized in that: The first geomorphic feature data to the Nth geomorphic feature data are mapped to the three-dimensional geographic coordinate system in the simulation environment by mapping the horizontal coordinate and the vertical coordinate in each pixel coordinate of the first geomorphic feature data to the Nth geomorphic feature data to the coordinate point (x1, y1) of the three-dimensional geographic coordinate system X1Y1Z1 on the X1Y1 plane.
4. The method for simulating three-dimensional scenes along a marching road according to claim 2, characterized in that: The method for matching the spatial coordinates of the first to Nth geomorphic feature data with the elevation data along the line is: make the plane coordinate point (x2, y2) corresponding to each three-dimensional coordinate point (x2, y2, z2) in the elevation data along the line consistent with the plane coordinate point (x1, y1) of the three-dimensional geographic coordinate system, and obtain the elevation value of each coordinate point in the three-dimensional geographic coordinate system.
5. The method for simulating three-dimensional scenes along a marching road according to claim 4, characterized in that: The spatial information features of the first to Nth geomorphic feature data in the three-dimensional geographic coordinate system include the coordinate point of the geometric center of the spatial area occupied by each pixel coordinate in the three-dimensional geographic coordinate system, the spatial area range corresponding to each pixel, and the geographical range occupied by pixels with the same geomorphic feature type in the three-dimensional geographic coordinate system.
6. The method for simulating three-dimensional scenes along a marching road according to claim 1, characterized in that: The initial neural network recognition model includes a first-level feature extraction network, which is used to extract image features from an input image to obtain a feature map. The output result of the first-level feature extraction network also enters a second-level region proposal network for region selection, and then the divided different regions are applied to the feature map to perform region division on the feature map; then the third-level pooling layer performs pooling processing, and the processing results are input in parallel to three recognition networks, namely, a classification recognition network, a border recognition network, and a pixel recognition network, which are respectively used to perform type recognition on the two-dimensional landforms in the image, recognize and annotate the borders of each two-dimensional landform, and recognize the pixels in the two-dimensional landforms, and then output a recognized image that has been recognized and annotated.
7. The method for simulating three-dimensional scenes along a marching road according to claim 6, characterized in that: The two-dimensional overhead image along the road is represented as Q1, which is divided into a set of multiple standardized patterns, namely: in They respectively represent standardized patterns with the same number of pixels after the two-dimensional overhead image along the road is segmented, n2 represents the horizontal segmentation ratio of the two-dimensional overhead image along the road, and m2 represents the vertical segmentation ratio of the two-dimensional overhead image along the road; The geomorphic feature data is a two-dimensional overhead image along the road, with each segmented standardized pattern as the object, corresponding to a two-dimensional geomorphic data set, namely Corresponding to the two-dimensional landform data set For any landform data subset q in the set e,r , e∈(1,m2), r∈(1,n2), all of which use the pixel coordinate system as a reference to represent the extracted two-dimensional topographic features; The landform data subset q e,r Includes multiple identified two-dimensional landform objects l j , where j represents the serial number; for any two-dimensional landform object l j All of them use pixel coordinate system as reference to represent their data features. in corresponds to a set of multiple pixel coordinates of the two-dimensional landform object, Correspondence is a set of pixel values of multiple pixels of the two-dimensional landform object, The corresponding space Orientation characteristics.
