Semantic elevation map construction method and system for unstructured environment

By deeply merging lidar and depth camera data, and using Bayesian inference and semantic segmentation networks, a 2.5D semantic elevation map is constructed, which solves the problem of traditional mapping algorithms being unstable in distinguishing passable areas and obstacle avoidance in unstructured environments. problem, improving the obstacle avoidance ability and map accuracy of driverless vehicles.

CN118736145APending Publication Date: 2024-10-01BEIJING INFORMATION SCI & TECH UNIV
View PDF 0 Cites 10 Cited by

Patent Information

Application Number
CN202410778643.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Traditional mapping algorithms have difficulty in distinguishing different traversable areas in unstructured environments, and lack of consideration of terrain semantic factors, resulting in unstable obstacle avoidance effects. The high independence of existing semantic elevation map algorithm modules increases system overhead and reduces construction costs. Graph accuracy and performance.

Method used

By deeply fusing the LiDAR point cloud with the depth image of the depth camera, using Bayesian inference and semantic segmentation network for semantic mapping, recursively estimating terrain categories and heights, constructing a 2.5D semantic elevation raster map, combined with vehicle pose information , improve the real-time performance and accuracy of the map.

Benefits of technology

It improves the mapping accuracy and system performance of semantic elevation maps, enhances the obstacle avoidance capabilities of unmanned vehicles in unstructured environments, reduces the problem of inaccurate edges and object boundaries, and provides terrain semantic categories and elevation data. Combined, it supports the vehicle to adjust its motion path.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736145A_ABST
    Figure CN118736145A_ABST
Patent Text Reader

Abstract

The invention relates to an unstructured environment-oriented semantic elevation map construction method and system, and the method comprises the steps: carrying out the depth fusion of the data of a laser radar point cloud and a depth image of a depth camera, and obtaining a fused depth image; performing real-time semantic segmentation and recognition on the depth image, acquiring a semantic image by a semantic segmentation network, and outputting a pixel-level terrain class probability score; and taking the fused depth image, semantic image and vehicle pose as input, performing semantic mapping by using Bayesian reasoning, recursively estimating terrain category and terrain height, and expressing in a 2.5 D semantic elevation grid map form. According to the invention, an omnibearing, real-time and accurate semantic elevation map with the unmanned vehicle as the center can be constructed; the method can be applied to the field of unmanned vehicle automatic driving oriented to an unstructured environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of unmanned vehicle automatic driving for unstructured environments, and in particular to a semantic elevation map construction method and system for unstructured environments. Background Art

[0002] Traditional mapping algorithms mainly use geometric structure information and low-level visual information, lacking consideration of semantic information. Therefore, it is difficult to distinguish different traversable areas in unstructured environments, such as people, grass, tunnels, and woods. In addition, traditional mapping algorithms do not measure the impact of terrain and semantic factors on the degree of traversability on the path during obstacle avoidance, which may cause unstable obstacle avoidance effects or even obstacle avoidance failure in unstructured environments. Existing semantic-elevation map algorithms mainly use a loose coupling method between depth cameras and lidars, using lidar and camera data to generate elevation maps and semantic traversable probability grid maps respectively. The algorithm uses the RGB image of a binocular camera as input, extracts semantic information through an image semantic segmentation network model based on deep learning, constructs a grid map of the traversable area for the extracted semantic information, and then converts it into a semantic traversable probability grid map based on distance transformation and probability conversion, generating two maps of elevation map and semantic probability for path planning. Due to the high independence between modules, communication between modules needs to be carried out through interfaces, which will increase the system overhead and reduce the accuracy of mapping and system performance. Accurate and effective maps are an extremely important part of autonomous driving functions, and are also a problem that researchers at home and abroad want to solve. How to build accurate and effective maps in complex unstructured environments is also of great significance to improving the safety of unmanned vehicles. Summary of the invention

[0003] In view of the above problems, the purpose of the present invention is to provide a method and system for constructing a semantic elevation map for unstructured environments, which can construct a comprehensive, real-time and accurate semantic elevation map centered on unmanned vehicles.

[0004] To achieve the above-mentioned objectives, in the first aspect, the technical solution adopted by the present invention is: a method for constructing a semantic elevation map for an unstructured environment, which comprises: deeply fusing the data of a lidar point cloud with the depth image of a depth camera to obtain a fused depth image; performing real-time semantic segmentation and recognition on the depth image, obtaining a semantic image by a semantic segmentation network, and outputting a pixel-level terrain class probability score; taking the fused depth image, semantic image and vehicle posture as input, using Bayesian reasoning for semantic mapping, recursively estimating the terrain category and terrain height, and representing them in the form of a 2.5D semantic elevation raster map.

[0005] Furthermore, the laser radar point cloud data is deeply fused with the depth image of the depth camera, including:

[0006] Calibrate the laser radar and depth camera to obtain the relative position information of the laser radar and depth camera;

[0007] The lidar point cloud is projected into the left camera image coordinate system, the projected lidar point cloud is upsampled using the stereo depth image, and a bilateral filter is used to create a dense depth image to obtain a fused depth image.

[0008] Furthermore, the laser radar and the depth camera are calibrated to obtain the relative position information of the laser radar and the depth camera, including:

[0009] Camera-radar calibration is performed using a circular hole engraved with four symmetrical planar targets. The calibration pattern is placed in the common FOV of both sensors, and each hole must be intersected by at least two laser beams.

[0010] Using plane segmentation based on random sample consensus, we identify the pattern plate in the point cloud released by the lidar, create an accurate point cloud through half-leaf stereo matching, and perform plane segmentation on the point cloud;

[0011] The center point is extracted from the point cloud and the final registration is performed using the iterative closest point algorithm, where the identified center point acts as the corresponding point, and the rotation and translation matrices of the lidar relative to the depth camera are obtained through calibration.

[0012] Furthermore, the laser radar point cloud is projected into the left camera image coordinate system, including:

[0013] Project the 3D points obtained from the LiDAR into the left camera image coordinate system of the depth camera. Use the conversion parameters obtained by calibration to convert the LiDAR point cloud into the left camera image coordinate system and filter these points according to the camera FOV.

[0014] At the same time, the angular relationship between adjacent points in the laser ring is used to remove points that are blocked in the depth camera's line of sight due to perspective changes. For each 3D point X, X is calculated in computer coordinates. R,l = the pixel position in (u, v) to encode the depth value as the Z coordinate of the three-dimensional point into the located pixel.

[0015] Furthermore, the projected lidar point cloud is upsampled using the stereo depth image, including:

[0016] Compare the pixel value of the projected lidar point cloud image pixel with the corresponding pixel of the depth camera depth image, and set an offset that can be extended to adjacent pixels based on the comparison result;

[0017] Upsample the projected lidar point cloud image within the corresponding pixel offset range of the camera depth image.

[0018] Furthermore, the bilateral filter is:

[0019]

[0020] In the formula, is the distance r at x0 to be estimated; p i =(x i ,r i ) is the sampling point x in the sliding window R i The set of i=1,2,…n,r i is the distance measured at the i-th sampling point; According to point x i It is weighted relative to its position x0, W is the normalization factor of the weight; r0 is the range value at position x0.

[0021] Furthermore, the original image is subjected to real-time semantic segmentation and recognition, and the semantic segmentation network obtains the semantic segmentation image and outputs the pixel-level terrain class probability score, including:

[0022] The semantic segmentation network adopts the ResNet50dilated+PPM_deepsup semantic segmentation network model;

[0023] The semantic segmentation network model assigns a class probability score to each pixel in the depth image, and the semantic segmentation network model obtains the semantic image and outputs the probability scores of k terrain categories of the pixel terrain class through pre-trained weights;

[0024] The fused depth image is adopted, and the probability scores of the pixel-level terrain categories are mapped to the depth image point cloud using the camera intrinsic parameters and the camera projection matrix, so as to obtain a depth image point cloud with semantic information.

[0025] In the second aspect, the technical solution adopted by the present invention is: a semantic elevation map construction system for unstructured environments, which includes: a fusion module, which deeply fuses the data of the lidar point cloud with the depth image of the depth camera to obtain a fused depth image; a semantic segmentation module, which performs real-time semantic segmentation and recognition on the depth image, obtains the semantic image by the semantic segmentation network, and outputs the pixel-level terrain class probability score; a map construction module, which takes the fused depth image, semantic image and vehicle posture as input, uses Bayesian reasoning to perform semantic mapping, recursively estimates the terrain category and terrain height, and represents them in the form of a 2.5D semantic elevation raster map.

[0026] In a third aspect, the technical solution adopted by the present invention is: a computer-readable storage medium storing one or more programs, wherein the one or more programs include instructions, and when the instructions are executed by a computing device, the computing device executes any one of the above methods.

[0027] In a fourth aspect, the technical solution adopted by the present invention is: a computing device, comprising: one or more processors, a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for any of the above methods.

[0028] The present invention adopts the above technical solution, which has the following advantages:

[0029] 1. This paper adopts a multi-source data fusion accurate depth map method to improve the accuracy of semantic elevation map construction by improving the accuracy of depth images. A post-processing strategy with redundant sensor configuration is adopted, and the patch correction method corrects the stereo matching errors, especially those caused by insufficient ambient lighting and textureless surfaces. It solves the problem of inaccurate edges and object boundaries of 3D reconstruction in multiple challenging scenes.

[0030] 2. The present invention adopts a Bayesian reasoning framework for semantic mapping, which uses multi-source data to recursively estimate the probability distribution of terrain surface contours and terrain semantic categories. Unlike the traversability method, the present invention provides semantic elevation information that combines terrain semantic categories and elevation data, which can enable unmanned vehicles to adjust their movement paths according to the semantic elevation information. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 is a flow chart of a method for constructing a semantic elevation map in an embodiment of the present invention;

[0032] Figure 2 is a detailed flow chart of a method for constructing a semantic elevation map in an embodiment of the present invention;

[0033] Figure 3 is a schematic diagram of the structure of a multi-source data fusion module in an embodiment of the present invention;

[0034] Figure 4 It is a schematic diagram of the structure of the ResNet50 network model in an embodiment of the present invention;

[0035] Figure 5 is a schematic diagram of a network structure for performing scene parsing using a data set in an embodiment of the present invention;

[0036] Figure 6 It is a schematic diagram of a semantic elevation map construction module in an embodiment of the present invention. DETAILED DESCRIPTION

[0037] With the continuous development of artificial intelligence and computer technology, unmanned driving technology is booming in the military and civilian fields. The application scenarios of unmanned driving of intelligent vehicles have also gradually shifted from simple structured environments to unstructured field environments such as forests, grasslands, battlefields, and mining areas. The research on map construction in the field environment is an important link in promoting the unmanned autonomous operation of intelligent vehicles in the field, and has become a research hotspot in the current international academic and industrial circles. The quality of map construction directly affects the efficiency and cost of vehicle execution of operation tasks.

[0038] Map construction is one of the core technologies for unmanned vehicles to achieve autonomy. Improving the accuracy and reliability of map construction in unstructured environments is an important research need for current autonomous driving. A structured environment refers to: the surface (ground, wall, obstacle surface) material properties (surface material, roughness, stiffness, strength, color, reflection, temperature, etc.) are uniform, the structure and size changes are regular and stable, and the environmental information (obstacles, lighting, sound, gas, radiation, wind, interference, etc.) is fixed, knowable, and describable. An unstructured environment refers to: the surface material properties are uneven, the structure and size changes are irregular and unstable, and the environmental information is non-fixed, unknowable, and indescribable. The geometric structure of the traversable area in an unstructured environment is complex and diverse, the area boundaries are unclear, and the environmental conditions are not fixed.

[0039] Dense 3D reconstruction of the surrounding environment is one of the basic perception methods for map construction. According to the type of sensors used for dense 3D reconstruction, the implementation methods of dense 3D reconstruction can be divided into dense 3D reconstruction based on visual perception, dense 3D reconstruction based on radar, and dense 3D reconstruction based on hybrid sensors. Each method has some advantages and disadvantages according to the depth accuracy, sensor cost, and accuracy in bad weather conditions. For this reason, many researchers have explored multi-source data fusion technology to overcome the limitations of each sensor and accurately reconstruct the vehicle's surrounding environment. Methods based on sensor information fusion can improve environmental perception capabilities and lay a solid foundation for building accurate and effective traversable maps. Methods based on sensor information fusion can be divided into two categories. One is the tightly coupled sensor fusion method, that is, the environmental information obtained by different sensors is directly fused to build a traversable map. The other is the loosely coupled method, in which each sensor generates a map separately and then fuses the map. Tight coupling Since the dependencies and associations between the modules are relatively close, the tightly coupled architecture can improve the real-time processing capability and responsiveness of the system and reduce the time for data transmission and processing. Accurate dense 3D reconstruction has applications in many fields such as obstacle detection and map construction.

[0040] Through the image semantic segmentation model, unmanned vehicles can extract different landform features from terrain images, such as forests, grasslands, rivers, etc. This information helps unmanned vehicles understand and analyze terrain and provide semantic data support for map construction. Many scientific research laboratories around the world have conducted research on image semantic segmentation based on deep learning. Academic conferences in the fields of automation, artificial intelligence and pattern recognition have also reported on the research results of semantic segmentation based on deep learning. Compared with traditional image segmentation, image semantic segmentation based on deep learning has considerable advantages. It can not only fully mine the pixel features contained in the image, but also use the scene and high-level semantic features of the image itself to infer the information expressed by the image, which far exceeds the traditional methods in segmentation accuracy and efficiency. The processing process of image semantic segmentation in modern deep learning systems is a natural step from coarse reasoning to fine reasoning. Its goal is to make dense predictions for each pixel of the image and infer its label. In general, image semantic segmentation based on deep learning must go through the following three processing modules: feature extraction module, semantic segmentation module and refinement processing module. Image semantic segmentation network models based on deep learning have applications in fields such as semantic map construction.

[0041] Due to the rapid development of sensor technology, LiDAR has attracted the attention of researchers because of its precise geometric spatial position information output. The construction of early autonomous obstacle avoidance maps relied on geometric information. The most commonly used features were the height information obtained by the sensor and the derived slope, direction, derivative and other information. Based on these geometric feature information, unmanned vehicles can screen out areas that can pass through in spatial structure. Early studies assumed that unmanned vehicles only operate on planes, so the form of the map constructed was mainly 2D grid maps based on geometric information. 2D grid maps assume that the ground is flat, which reduces the difficulty of modeling. However, the real-world terrain is far more complex than a flat and smooth ground, so 2.5D elevation maps that store height information have attracted the attention of researchers. Although this type of map has certain limitations compared to a complete 3D map, its simple structure and better scalability allow efficient data access and processing. In 2018, P. Fankhauser et al. proposed a multi-layer 2.5D elevation map that uses LiDAR point cloud data as input, stores the height information of the surrounding environment and continuously updates it, and adds the influence of positioning uncertainty on the map, making the constructed map more stable. In 2019, Zhao Yimo and others explored a local map construction algorithm based on semantic traversable probability grid map-lidar elevation map. In 2022, Parker Ewen and others proposed a semantic Bayesian reasoning framework using real-time elevation mapping and environmental category estimation. The framework generates a global semantic 2.5D elevation map by combining the RDB-D camera depth map and the data results generated by the semantic segmentation network model. In 2023, Xu Chaoming proposed to extract geometric features from the elevation map and fuse them into the probabilistic semantic map to generate a terrain traversable map. Experiments have shown that this method reduces the misidentification rate of terrain obstacles compared with purely geometry-based methods. Maps based on geometric structures can better exclude areas that are strictly inaccessible in space, such as relatively high green belts, wooded areas, steps, and obstacles with large height differences, but unmanned vehicles cannot distinguish areas with similar spatial structures based on maps. For example, areas such as grass and sidewalks have similar geometric spatial structures to roads, but these areas are more difficult for unmanned vehicles to travel in and are not highly accessible. Map construction algorithms based on geometric information cannot well represent the information of areas with similar spatial structures, so the construction of semantic elevation maps has become a major trend in current research.

[0042] In the face of unstructured environments, semantic elevation map construction algorithms often use loose coupling of camera-lidar data to generate semantic traversable maps and elevation maps respectively, or only use depth camera data to generate semantic elevation maps. Existing algorithms have problems such as insufficient real-time processing and response capabilities, unclear mapping of regional boundaries, and limited environmental perception range.

[0043] Therefore, the present invention provides a semantic elevation map construction method and system for unstructured environments, which relates to the fields of environmental perception, data fusion and map construction. By constructing a multi-source data fusion module, a real-time image semantic segmentation module, and a semantic elevation map construction module, an experimental vehicle is built and manually controlled to perform real-time mapping on unstructured roads, and the real-time, range, accuracy and semantic information matching of the mapping, as well as the calculation speed of the algorithm and the required memory size are observed. The present invention has strong real-time processing and response capabilities, clear mapping of regional boundaries, and a wide range of environmental perception.

[0044] The present invention is described in detail below with reference to the accompanying drawings and embodiments.

[0045] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present invention.

[0046] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0047] In one embodiment of the present invention, a method for constructing a semantic elevation map for an unstructured environment is provided. In this embodiment, a ZED binocular camera and a 32-line Sagitar laser radar data are used as input, and a multi-source data tight coupling method, a deep learning-based image semantic segmentation network model, and a closed-form Bayesian inference algorithm are used to estimate geometric and terrain semantic information and generate a local semantic elevation map; the influence of positioning uncertainty on the map is added to make the constructed map more stable. Figure 1 , Figure 2 As shown, the method comprises the following steps:

[0048] 1) Deeply fuse the laser radar point cloud data with the depth image of the depth camera to obtain a fused depth image;

[0049] 2) The original image is semantically segmented and recognized in real time, and the semantic segmentation network obtains the semantic image and outputs the pixel-level terrain class probability score;

[0050] 3) Taking the fused depth image, semantic image and vehicle pose as input, Bayesian reasoning and semantic segmentation network are used for semantic mapping to recursively estimate the terrain category and terrain height, and represent them in the form of a 2.5D semantic elevation raster map.

[0051] In the above step 1), the laser radar point cloud data is deeply fused with the depth image of the depth camera, including the following steps:

[0052] 1.1) Calibrate the laser radar and left camera to obtain the relative position information of the laser radar and left camera;

[0053] 1.2) Convert the LiDAR point cloud to the left camera coordinate system, upsample the projected LiDAR point cloud using the stereo depth image according to the ZED camera parameters, and create a dense depth image using a bilateral filter to obtain a fused depth image.

[0054] In the above step 1.1), the laser radar and the left camera are calibrated to obtain the relative position information of the laser radar and the left camera, including the following steps:

[0055] 1.1.1) Camera-radar calibration is performed using a circular hole engraved with four symmetrical planar targets. The calibration pattern is placed in the common FOV (field of view) of the two sensors, and each hole must be intersected by at least two laser beams;

[0056] 1.1.2) Use plane segmentation based on random sample consensus (RANSAC) to identify the pattern plate in the point cloud released by the lidar. In order to achieve the same goal in the depth camera reference frame, create an accurate point cloud through half-leaf stereo matching and perform plane segmentation on the point cloud;

[0057] 1.1.3) Perform a circle segmentation process, extract the center point in the point cloud, and use the iterative closest point (ICP) algorithm for final registration, where the identified center point serves as the corresponding point, and the rotation and translation matrix of the lidar relative to the depth camera is obtained through calibration. That is, the rotation and translation matrix of the RS-LIDAR-32 hybrid solid-state lidar relative to the ZED left eye camera is obtained.

[0058] In the above step 1.2), if Figure 3 As shown in the figure, projecting the LiDAR point cloud into the left camera image coordinate system includes the following steps:

[0059] 1.2.1.1) Using the conversion parameters obtained by calibration, project the 3D points obtained from the LiDAR into the left camera image coordinate system of the depth camera, and filter the LiDAR point cloud that is out of range according to the camera FOV;

[0060] 1.2.1.2) At the same time, the angular relationship between adjacent points in the laser ring is used to remove points that are blocked in the depth camera's line of sight due to perspective changes. For each 3D point X, calculate X in computer coordinates R,l = the pixel position in (u, v) to encode the depth value as the Z coordinate of the three-dimensional point into the located pixel.

[0061] In this embodiment, the angular relationship between adjacent points is:

[0062]

[0063] In the formula, i and j are the adjacent point clouds in each laser ring, and x i is the x coordinate of the i-th point cloud in the laser ring, z i is the z coordinate of the i-th point cloud in the laser ring, x j is the x coordinate of the jth point cloud in the laser ring, z j is the z coordinate of the jth point cloud in the laser ring.

[0064] Calculate X in computer coordinates R,l =The pixel position in (u,v) is:

[0065] X R,l =P l X (2)

[0066] Among them, P l is the projection matrix of the left camera, X R,l is the position of the lidar point cloud in the pixel coordinate system, u is the number of columns (horizontal position) of the pixel in the pixel coordinate system, and v is the number of rows (vertical position) of the pixel in the pixel coordinate system.

[0067] In the above step 1.2), the projection stage provides a very sparse depth image, which depends on the resolution of the laser radar used. Specifically, in this embodiment, upsampling the projected laser radar point cloud using a stereo depth image includes the following steps:

[0068] 1.2.2.1) Project the LiDAR point cloud with depth information into image pixels The pixel value of the depth camera and the corresponding pixel of the depth image Compare and set a pixel that can be expanded to adjacent pixels ({P} x,y )'s offset;

[0069] Specifically, the offset is:

[0070]

[0071] 1.2.2.2) Upsample the projected lidar point cloud image within the corresponding pixel offset range of the camera depth image.

[0072] Specifically, the upsampling is:

[0073]

[0074] In the formula, is the LiDAR point cloud projection image pixel, is the corresponding pixel of the depth image of the depth camera, where (x i ,y i )∈{P} x,y is the pixel within the offset range.

[0075] Since part of the depth image is not within the field of view of the laser radar, it only relies on the depth image of the depth camera. In order to ensure a smooth transition, the offset of the nearest projection point is preferably used in this embodiment.

[0076] In the above step 1.2), the design method of the bilateral filter is:

[0077] The sliding window R is selected to be of size m r ×m r The bilateral filter estimates the depth value of the pixel at the center of the window x0 by interpolating in the local region R. The interpolation applies to both sampled and unsampled locations of the depth image. is the distance r at x0 to be estimated, p i =(x i ,r i ), i = 1, 2, ... n is the set of sampling points in R, then the bilateral filter is:

[0078]

[0079] Among them, x i is the index of the window; According to point x i It is weighted relative to its position in x0, The influence of its range value is included in the estimation, and W is the normalization factor of the weight. is set to be inversely proportional to the Euclidean distance from the sample point to the center of the mask and gives:

[0080]

[0081] Smoothness inside R is ensured by giving weight to the nearest pixels, but it does not have any significant effect in controlling jump discontinuities. This abrupt range difference from foreground to background objects can be achieved by choosing Therefore, the weight term on the range is chosen as:

[0082]

[0083] where r0 is the range value at position x0. As mentioned earlier, only a few pixels are currently sampled in the depth image. Therefore, when R is centered at an unsampled position, r0 = min(r i ),

[0084] Edges represent foreground and background objects in the field of view, and their feature points are the discontinuous range values ​​of the sampling points. Applying the bilateral filter formula (4) on the entire depth image without analyzing whether there is such a discontinuity in the sliding window R results in the loss of edge information. To address this problem, the sampling points of R are clustered according to the range value. If nc>1, the existence of an edge is detected, where nc is the number of clusters. The clustering algorithm uses density-based spatial clustering of noise applications (DBSCAN), which relies on the distance function and the threshold ε, and the distance function defined is as follows:

[0085]

[0086] Where n is the number of sampling points in R; DF>ε indicates that there is a range discontinuity, and multiple clusters will be formed. DF is used to determine the neighborhood of the point and evaluate the density of the point. k is the distance of the kth point cloud relative to the origin. To facilitate clustering, the ranges of the sampled points are sorted and the value of ε is chosen to be close to 0.1. If there is nc>2, ie, there are more than 2 clusters in a region, the cluster with the smallest average range value is selected as cluster s1. If nc>2:s2 is selected, cluster s2 will be selected as the cluster with more points according to the following rule. For clusters with the same number of points, s2 corresponds to the cluster with the smallest average range except s1. If the sliding window R belongs to a region without discrete edges, all points will be sampled into one cluster and the bilateral filter formula (4) will be applied to all points R. When nc=2, it is restricted to only one cluster based on the value of the parameter λ=np1 / np2, where np1 and np2 are the number of points belonging to clusters s1 and s2. A threshold Thr is set. When λ≥Thr, the bilateral filter will operate on the points belonging to s1, otherwise it will operate on the points belonging to s2.

[0087] In the above step 2), the original image is subjected to real-time semantic segmentation and recognition, and the semantic segmentation result is obtained by the semantic segmentation network, and a pixel-level terrain class probability score is output. In this embodiment, the semantic segmentation network adopts the ResNet50dilated+PPM_deepsup semantic segmentation network model; specifically, the following steps are included:

[0088] 2.1) The semantic segmentation network model assigns a class probability score to each pixel in the fused depth image, and outputs the probability scores of k terrain categories of the pixel terrain class through pre-trained weights;

[0089] In this embodiment, real-time image semantic segmentation is performed in a Python virtual environment, and the labeling tool: labelme is installed using pip. The original data is in picture format, and is placed in a unified folder, such as a folder named "imgs"; then, a new folder is created to store the labels corresponding to each picture, that is, a json file; finally, a new TXT document (labels.txt) is created to indicate the labeled category. Start labelme to label your own dataset. Use a script to convert your own dataset into the MIT ADE20K dataset format and integrate it into the MIT ADE20K dataset. Use the ResNet50dilated+PPM_deepsup semantic segmentation network model, and use the MIT ADE20K dataset and your own dataset as training datasets for training to obtain pre-training weights.

[0090] In the above step 2.1), the semantic segmentation network model assigns a class probability score to each pixel in the image, specifically, by estimating the class probability score at the pixel level through a convolutional neural network. Let I∈R w×h×3 Represents an RGB image (i.e., a semantic image), where h and w are the height and width of the image. The ResNet50dilated+PPM_deepsup semantic segmentation network model is used to obtain the input RGB image. By using the pre-trained weights, the semantic segmentation network obtains the input image, infers and outputs the probability scores T∈R of the k terrain categories of the pixel terrain class. w×h×k The ResNet50dilated+PPM_deepsup semantic segmentation network model introduces dilated convolution based on ResNet50 to expand the receptive field while maintaining spatial resolution. In addition, the deep supervision version of the Pyramid Pooling Module is introduced to capture contextual information of different scales. The schematic diagram of the ResNet50 network structure is shown in the figure. Figure 4 The accuracy of semantic segmentation depends on the network used. The semantic segmentation results are shown in Figure 5 shown.

[0091] In the above step 3), the fused depth image, semantic image information and vehicle posture are used as input, and Bayesian reasoning is used for semantic mapping to recursively estimate the terrain category and terrain height, and represent them in the form of a 2.5D semantic elevation grid map. Specifically, the method for constructing a semantic elevation map includes the following steps:

[0092] 3.1) Map pixel-level probabilistic terrain class estimates into an elevation map. The elevation map is updated using a one-dimensional Kalman filter, and the terrain class estimate is used to recursively estimate the terrain class of each region of the map. Figure 6 As shown, the specific process is:

[0093] The probability mass function of a categorical distribution represents the probability that a sample z belongs to the i-th class, where i∈{1,2,…k}:

[0094] f(z=i|θ)=θ i (8)

[0095] In the formula, θ represents the self vector, θ i Represents the self-vector of the i-th terrain category, θ∈[0,1] k .

[0096] The Dirichlet distribution is a continuous k-variable probability distribution consisting of a vector of positive real numbers Parameterization. The probability density function of the Dirichlet distribution is:

[0097]

[0098] By applying Bayes' theorem, we get:

[0099]

[0100] Where Z is the test quantity. Apply Bayesian inference to predict the probability that a new measurement of the same area belongs to terrain class i given the test measurement Z. Denote f(θ|α) as a Dirichlet distribution, which is the conjugate distribution of the categorical distribution f(z|θ). It can be shown that f(θ|Z,α) is also composed of a vector Parameterized Dirichlet distribution:

[0101]

[0102] Using this property in formula (11), it can be proved that the probability that the same area of ​​Z belongs to terrain class i is:

[0103]

[0104] The first one is the vertex Collection where m is the number of vertices in the mesh. The components v of the first three vertices are x , v y and v z Corresponding to the Euclidean position of the vertex relative to the map, the last component Corresponding to the variance v z The second is the collection A mesh element or face ξ. An element ξ is a set of three elements: their connecting segments define the perimeter of the face, the interior points, and the vector of Dirichlet parameters.

[0105] Then a plane G with zero height is defined and a grid pattern of evenly spaced vertices v∈V with zero height and variance is initialized. The RGB image I and the fused depth image D, as well as the ZED camera pose estimate are taken as input. The semantic segmentation network takes the RGB image I and outputs pixel-wise terrain class probability scores T. These pixel-wise scores are projected into the elevation map as grid elements ξ. The interior points are used to compute the vertex height, vertex height covariance, and terrain label of the corresponding grid element ξ.

[0106] 3.2) A set of faces initialized with ξ∈Ξ by triangulating the vertices into a set of isosceles right triangles of equal size. The set of interior points of each face is initialized to an empty set and the Dirichlet parameter is initialized to a vector of zeros.

[0107] The semantic image inferred by the deep learning semantic segmentation network is mapped to the deep image point cloud as a point cloud. It consists of n points. A point p M ∈P M The first three components of correspond to the Euclidean coordinates of the point in the coordinate system, while the last k components correspond to the terrain class probability scores output by the semantic segmentation network. M and v are projected onto their first two coordinates, and point p M ∈P M And mesh vertex coordinates v∈V are projected onto the base plane G. Get the projection point for each I∈{1,2,3} and the three projected vertices of the mesh element ξ Given and The following linear transformation is used to calculate the barycentric coordinates λ = [λ1, λ2, λ3]:

[0108]

[0109] For a vertex v∈V, we estimate the average height v of the vertex from the surrounding grid elements and apply a one-dimensional Kalman filter update z and variance The given depth image is used to calculate the point cloud PM There is sensor noise, and there is variance in p M ∈P M Once assigned to the grid elements, the elevation map depends only on the point p M ∈P M , so only the third Euclidean coordinate is considered. And p M There are three components, using p M,3 Describes the height. According to the error propagation law, calculate p M,3 Variance of:

[0110]

[0111] Among them, ∑ S and∑ P are the distance sensor measurement noise and sensor pose covariance matrix, and Js and J p , constructed using the following partial derivatives:

[0112]

[0113] Vertex height v z and The mean and variance of are updated using a one-dimensional Kalman filter for all inliers around the grid elements:

[0114]

[0115] In the real vehicle mapping experiment, the required 1 Nuvo-6108GC industrial computer, 1 ZED binocular camera, and 1 RS32 hybrid solid-state laser radar were installed on the experimental vehicle. The experimental vehicle was manually controlled to perform real-time mapping on unstructured roads, and the real-time performance, range, accuracy, and semantic information matching of the mapping were observed. The method of the present invention uses a 1m×1m grid and different grid element lengths, and uses random input images and related ground truth semantic segmentation to evaluate the calculation speed and memory requirements. The calculation time is calculated by averaging 300 trials. The experiment proves that the semantic elevation map construction method of the present invention has strong real-time processing and response capabilities, clear mapping of regional boundaries, and strong semantic mapping matching capabilities.

[0116] In one embodiment of the present invention, a semantic elevation map construction system for unstructured environments is provided, comprising:

[0117] The fusion module performs deep fusion of the laser radar point cloud data with the depth image of the depth camera to obtain a fused depth image;

[0118] The semantic segmentation module performs real-time semantic segmentation and recognition on the depth image. The semantic segmentation network obtains the semantic image and outputs the pixel-level terrain class probability score.

[0119] The map construction module takes the fused depth image, semantic image and vehicle pose as input, uses Bayesian reasoning and semantic segmentation network for semantic mapping, recursively estimates the terrain category and terrain height, and represents them in the form of a 2.5D semantic elevation raster map.

[0120] In the above embodiment, the laser radar point cloud data is deeply fused with the depth image of the depth camera, including:

[0121] Calibrate the laser radar and depth camera to obtain the relative position information of the laser radar and depth camera;

[0122] The lidar point cloud is projected into the left camera image coordinate system, the projected lidar point cloud is upsampled using the stereo depth image, and a bilateral filter is used to create a dense depth image to obtain a fused depth image.

[0123] In this embodiment, the laser radar and the depth camera are calibrated to obtain the relative position information of the laser radar and the depth camera, including:

[0124] Camera-radar calibration is performed using a circular hole engraved with four symmetrical planar targets. The calibration pattern is placed in the common FOV of both sensors, and each hole must be intersected by at least two laser beams.

[0125] Using plane segmentation based on random sample consensus, we identify the pattern plate in the point cloud released by the lidar, create an accurate point cloud through half-leaf stereo matching, and perform plane segmentation on the point cloud;

[0126] The center point is added to the cloud for the final registration using the iterative closest point algorithm, where the identified center point acts as the corresponding point, and the rotation and translation matrices of the lidar relative to the depth camera are obtained through calibration.

[0127] In this embodiment, projecting the laser radar point cloud into the camera image frame includes:

[0128] Project the 3D points obtained from the LiDAR into the left camera image coordinate system, use the conversion parameters obtained by calibration to convert the LiDAR point cloud into the camera image frame and filter these points according to the camera FOV;

[0129] At the same time, the angular relationship between adjacent points in the laser ring is used to remove points that are blocked in the depth camera's line of sight due to perspective changes. For each 3D point X, X is calculated in computer coordinates. R,l = the pixel position in (u, v) to encode the depth value as the Z coordinate of the three-dimensional point into the located pixel.

[0130] In this embodiment, upsampling the projected laser radar point cloud using a stereo depth image includes:

[0131] Compare the pixel value of the projected lidar point cloud image pixel with depth information with the corresponding pixel of the depth camera depth image, and set an offset that can be extended to adjacent pixels according to the comparison result;

[0132] Upsample the projected lidar point cloud image within the corresponding pixel offset range of the camera depth image.

[0133] Among them, the bilateral filter is:

[0134]

[0135] In the formula, is the distance r at x0 to be estimated; p i =(x i ,r i ) is the sampling point x in the sliding window R i The set of i=1,2,…n,r i is the distance measured at the i-th sampling point; According to point x i It is weighted relative to its position x0, W is the normalization factor of the weight; r0 is the range value at position x0.

[0136] In the above embodiment, the depth image is semantically segmented and recognized in real time, and the semantic image is obtained by the semantic segmentation network, and the pixel-level terrain class probability score is output, including:

[0137] The semantic segmentation network adopts the ResNet50dilated+PPM_deepsup semantic segmentation network model;

[0138] The semantic segmentation network model assigns a class probability score to each pixel in the depth image, and the semantic segmentation network model obtains the semantic image and outputs the probability scores of k terrain categories of the pixel terrain class through pre-trained weights;

[0139] The fused depth image is adopted, and the probability scores of the pixel-level terrain categories are mapped to the depth image point cloud using the camera intrinsic parameters and the camera projection matrix, so as to obtain a depth image point cloud with semantic information.

[0140] The system provided in this embodiment is used to execute the above-mentioned method embodiments. Please refer to the above-mentioned embodiments for specific processes and detailed contents, which will not be repeated here.

[0141] In the computing device structure provided in one embodiment of the present invention, the computing device may be a terminal, which may include: a processor, a communications interface, a memory, a display screen and an input device. Among them, the processor, the communications interface and the memory communicate with each other through a communication bus. The processor is used to provide computing and control capabilities. The memory includes a non-volatile storage medium and an internal memory, and the non-volatile storage medium stores an operating system and a computer program. When the computer program is executed by the processor, the above method is implemented; the internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a management network, NFC (near field communication) or other technologies. The display screen may be a liquid crystal display screen or an electronic ink display screen, and the input device may be a touch layer covered on the display screen, or a key, trackball or touchpad provided on the housing of the computing device, or an external keyboard, touchpad or mouse, etc. The processor may call the logic instructions in the memory.

[0142] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0143] In one embodiment of the present invention, a computer program product is provided, wherein the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, wherein the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments.

[0144] In one embodiment of the present invention, a non-transitory computer-readable storage medium is provided, wherein the non-transitory computer-readable storage medium stores server instructions, and the computer instructions enable a computer to execute the methods provided in the above embodiments.

[0145] The above embodiment provides a computer-readable storage medium, whose implementation principle and technical effect are similar to those of the above method embodiment, and will not be repeated here.

[0146] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0147] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0148] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0149] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for constructing a semantic elevation map for an unstructured environment, characterized in that: include: The laser radar point cloud data is deeply fused with the depth image of the depth camera to obtain a fused depth image; The depth image is semantically segmented and recognized in real time. The semantic segmentation network obtains the semantic image and outputs the pixel-level terrain class probability score. Taking the fused depth image, semantic image and vehicle pose as input, Bayesian reasoning is used for semantic mapping to recursively estimate the terrain category and terrain height and represent them in the form of a 2.5D semantic elevation raster map.

2. The method for constructing a semantic elevation map for an unstructured environment as claimed in claim 1, characterized in that: The laser radar point cloud data is deeply integrated with the depth image of the depth camera, including: Calibrate the laser radar and depth camera to obtain the relative position information of the laser radar and depth camera; The lidar point cloud is projected into the left camera image coordinate system, the projected lidar point cloud is upsampled using the stereo depth image, and a bilateral filter is used to create a dense depth image to obtain a fused depth image.

3. The method for constructing a semantic elevation map for an unstructured environment as claimed in claim 2, characterized in that: Calibrate the LiDAR and depth camera to obtain their relative position information, including: Camera-radar calibration is performed using a circular hole engraved with four symmetrical planar targets. The calibration pattern is placed in the common FOV of both sensors, and each hole must be intersected by at least two laser beams. Using plane segmentation based on random sample consensus, we identify the pattern plate in the point cloud released by the lidar, create an accurate point cloud through half-leaf stereo matching, and perform plane segmentation on the point cloud; The center point is extracted from the point cloud and the final registration is performed using the iterative closest point algorithm, where the identified center point acts as the corresponding point, and the rotation and translation matrices of the lidar relative to the depth camera are obtained through calibration.

4. The method for constructing a semantic elevation map for an unstructured environment as claimed in claim 2, characterized in that: Project the LiDAR point cloud into the left camera image coordinate system, including: Project the 3D points obtained from the LiDAR into the left camera image coordinate system of the depth camera. Use the conversion parameters obtained by calibration to convert the LiDAR point cloud into the left camera image coordinate system and filter these points according to the camera FOV. At the same time, the angular relationship between adjacent points in the laser ring is used to remove points that are blocked in the depth camera's line of sight due to perspective changes. For each 3D point X, X is calculated in computer coordinates. R,l = the pixel position in (u, v) to encode the depth value as the Z coordinate of the three-dimensional point into the located pixel.

5. The method for constructing a semantic elevation map for an unstructured environment as claimed in claim 2, characterized in that: Upsampling of projected lidar point clouds using stereo depth images, including: Compare the pixel value of the projected lidar point cloud image pixel with the corresponding pixel of the depth camera depth image, and set an offset that can be extended to adjacent pixels based on the comparison result; Upsample the projected lidar point cloud image within the corresponding pixel offset range of the camera depth image.

6. The method for constructing a semantic elevation map for an unstructured environment as claimed in claim 2, characterized in that: The bilateral filter is: In the formula, is the distance r at x0 to be estimated; p i =(x i ,r i ) is the sampling point x in the sliding window R i The set of i=1,2,…n,r i is the distance measured at the i-th sampling point; According to point x i It is weighted relative to its position x0, W is the normalization factor of the weight; r0 is the range value at position x0.

7. The method for constructing a semantic elevation map for an unstructured environment as claimed in claim 1, characterized in that: The original image is semantically segmented and recognized in real time. The semantic segmentation network obtains the semantic segmentation image and outputs the pixel-level terrain class probability score, including: The semantic segmentation network adopts the ResNet50dilated+PPM_deepsup semantic segmentation network model; The semantic segmentation network model assigns a class probability score to each pixel in the depth image, and the semantic segmentation network model obtains the semantic image and outputs the probability scores of k terrain categories of the pixel terrain class through pre-trained weights; The fused depth image is adopted, and the probability scores of the pixel-level terrain categories are mapped to the depth image point cloud using the camera intrinsic parameters and the camera projection matrix, so as to obtain a depth image point cloud with semantic information.

8. A semantic elevation map construction system for unstructured environments, characterized in that: include: The fusion module performs deep fusion of the laser radar point cloud data with the depth image of the depth camera to obtain a fused depth image; The semantic segmentation module performs real-time semantic segmentation and recognition on the depth image. The semantic segmentation network obtains the semantic image and outputs the pixel-level terrain class probability score. The map construction module takes the fused depth image, semantic image and vehicle pose as input, uses Bayesian reasoning for semantic mapping, recursively estimates the terrain category and terrain height, and represents them in the form of a 2.5D semantic elevation raster map.

9. A computer-readable storage medium storing one or more programs, characterized in that: The one or more programs include instructions, which, when executed by a computing device, cause the computing device to perform any one of the methods of claims 1 to 7.

10. A computing device, characterized in that include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for executing any one of the methods described in claims 1 to 7.

Citation Information

Cited By

  • High-definition map processing method and device based on mobile laser radar data

    CN119445259A

  • Loader auxiliary control system based on machine vision

    CN119501952A

  • A loader auxiliary control system based on machine vision

    CN119501952B

  • Obstacle recognition method and device based on static obstacle memory and electronic equipment

    CN120503798A

  • Unstructured terrain environment-oriented trafficability prediction method

    CN120894701A