Obstacle detection method, device and computer equipment based on unmanned driving technology
Through multi-view projection and feature fusion technology, the accuracy of obstacle detection in driverless technology is improved, solving the problem of low detection accuracy caused by information loss in traditional methods, and achieving more comprehensive obstacle feature extraction and detection. .
Patent Information
- Application Number
- CN201980037716.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-30
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2039-12-30
AI Technical Summary
The accuracy of obstacle detection in traditional driverless technology is low, mainly due to the loss of information when point cloud data is projected to image data, resulting in insufficient feature information extracted.
By obtaining the current frame point cloud data and image data, perform multi-view projection and extract feature information, combine the feature extraction model to extract spatial and image feature information in parallel, and input the detection model for prediction after fusion, and output the obstacle detection results.
The accuracy of obstacle detection is improved, more comprehensive feature information is obtained through multi-view fusion, and the prediction ability of the detection model is enhanced.
Smart Images

Figure CN113678136B
Abstract
Description
Technical Field
[0001] The present application relates to an obstacle detection method, device, computer equipment and storage medium based on unmanned driving technology. Background Art
[0002] The development of artificial intelligence technology has promoted the development of driverless technology. In the process of driverless driving, obstacles in the surrounding environment need to be detected in real time. For example, traffic participants such as pedestrians and vehicles. By tracking and predicting the detected obstacles and obtaining the obstacle trajectory, it is possible to better plan reasonable routes, avoid obstacles, and comply with traffic rules.
[0003] In the traditional method, point cloud data is projected onto image data to obtain feature information of multiple channels, and then obstacle detection is performed based on the feature information of multiple channels. However, in the process of projecting point cloud data onto image data for feature extraction, some information may be lost, resulting in incomplete effective feature information extracted from each source data, which in turn leads to low obstacle detection accuracy. Summary of the invention
[0004] According to various embodiments disclosed in the present application, there is provided an obstacle detection method, apparatus, computer device and storage medium based on unmanned driving technology, which can improve the accuracy of obstacle detection during unmanned driving.
[0005] An obstacle detection method based on unmanned driving technology, comprising:
[0006] Obtain the current frame point cloud data and the current frame image data within a preset angle range;
[0007] Projecting the current frame point cloud data onto multiple viewing angles to obtain two-dimensional planes corresponding to the multiple viewing angles;
[0008] Perform feature extraction on the two-dimensional plane corresponding to each viewing angle to obtain point cloud feature information corresponding to each viewing angle;
[0009] Inputting the point cloud feature information corresponding to each viewing angle and the current frame image data into the corresponding feature extraction model, and extracting the spatial feature information corresponding to each viewing angle and the image feature information corresponding to the current frame image data in parallel through the corresponding feature extraction model;
[0010] Fusing the spatial feature information corresponding to the multiple viewing angles with the image feature information to obtain fused feature information; and
[0011] The fused feature information is input into the trained detection model, and the detection model is used to perform a prediction operation on the fused feature information to output an obstacle detection result.
[0012] An obstacle detection device based on unmanned driving technology, comprising:
[0013] An acquisition module is used to acquire the current frame point cloud data and the current frame image data within a preset angle range;
[0014] A projection module, used to project the current frame point cloud data on multiple viewing angles to obtain two-dimensional planes corresponding to the multiple viewing angles;
[0015] The first extraction module is used to extract features from the two-dimensional plane corresponding to each viewing angle to obtain point cloud feature information corresponding to each viewing angle;
[0016] A second extraction module is used to input the point cloud feature information corresponding to each viewing angle and the current frame image data into a corresponding feature extraction model, and extract the spatial feature information corresponding to each viewing angle and the image feature information corresponding to the current frame image data in parallel through the corresponding feature extraction model;
[0017] A fusion module, used to fuse the spatial feature information corresponding to multiple viewing angles with the image feature information to obtain fused feature information; and
[0018] The prediction module is used to input the fused feature information into the trained detection model, perform prediction operations on the fused feature information through the detection model, and output obstacle detection results.
[0019] A computer device includes a memory and one or more processors, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processors, the one or more processors perform the following steps:
[0020] Obtain the current frame point cloud data and the current frame image data within a preset angle range;
[0021] Projecting the current frame point cloud data onto multiple viewing angles to obtain two-dimensional planes corresponding to the multiple viewing angles;
[0022] Perform feature extraction on the two-dimensional plane corresponding to each viewing angle to obtain point cloud feature information corresponding to each viewing angle;
[0023] Inputting the point cloud feature information corresponding to each viewing angle and the current frame image data into the corresponding feature extraction model, and extracting the spatial feature information corresponding to each viewing angle and the image feature information corresponding to the current frame image data in parallel through the corresponding feature extraction model;
[0024] Fusing the spatial feature information corresponding to the multiple viewing angles with the image feature information to obtain fused feature information; and
[0025] The fused feature information is input into the trained detection model, and the detection model is used to perform a prediction operation on the fused feature information to output an obstacle detection result.
[0026] One or more non-volatile computer-readable storage media storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the following steps:
[0027] Obtain the current frame point cloud data and the current frame image data within a preset angle range;
[0028] Projecting the current frame point cloud data onto multiple viewing angles to obtain two-dimensional planes corresponding to the multiple viewing angles;
[0029] Perform feature extraction on the two-dimensional plane corresponding to each viewing angle to obtain point cloud feature information corresponding to each viewing angle;
[0030] Inputting the point cloud feature information corresponding to each viewing angle and the current frame image data into the corresponding feature extraction model, and extracting the spatial feature information corresponding to each viewing angle and the image feature information corresponding to the current frame image data in parallel through the corresponding feature extraction model;
[0031] Fusing the spatial feature information corresponding to the multiple viewing angles with the image feature information to obtain fused feature information; and
[0032] The fused feature information is input into the trained detection model, and the detection model is used to perform a prediction operation on the fused feature information to output an obstacle detection result.
[0033] The details of one or more embodiments of the present application are set forth in the following drawings and description. Other features and advantages of the present application will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0035] Figure 1 A diagram of an application environment of an obstacle detection method based on unmanned driving technology in one or more embodiments.
[0036] Figure 2 The figure is a flowchart of an obstacle detection method based on unmanned driving technology in one or more embodiments.
[0037] Figure 3 The present invention is a flowchart of the steps of fusing spatial feature information and image feature information corresponding to multiple viewing angles to obtain fused feature information in one or more embodiments.
[0038] Figure 4 A block diagram of an obstacle detection device based on unmanned driving technology in one or more embodiments.
[0039] Figure 5 is a block diagram of a computer device in accordance with one or more embodiments. DETAILED DESCRIPTION
[0040] In order to make the technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0041] The obstacle detection method based on unmanned driving technology provided in this application can be applied to Figure 1 In the schematic diagram of obstacle detection during unmanned driving shown in FIG. 1 , the first vehicle-mounted sensor 102 sends the collected current frame point cloud data to the vehicle-mounted computer device 104. For example, the first vehicle-mounted sensor may be a laser radar. The vehicle-mounted computer device may be referred to as a computer device. The second vehicle-mounted sensor 106 sends the collected current frame image data within a preset angle range to the computer device 104. For example, the second vehicle-mounted sensor may be a vehicle-mounted camera. The computer device 104 projects the current frame point cloud data on multiple viewing angles to obtain two-dimensional planes corresponding to the multiple viewing angles. The computer device 104 performs feature extraction on the two-dimensional plane corresponding to each viewing angle to obtain point cloud feature information corresponding to each viewing angle. The computer device 104 inputs the point cloud feature information corresponding to each viewing angle and the current frame image data into the corresponding feature extraction model, and extracts the spatial feature information corresponding to each viewing angle and the image feature information corresponding to the current frame image data in parallel through the corresponding feature extraction model. The computer device 104 fuses the spatial feature information corresponding to the multiple viewing angles and the current frame image data to obtain the fused feature information. The computer device 104 inputs the fused feature information into the trained detection model, performs prediction operations on the fused feature information through the detection model, and outputs obstacle detection results.
[0042] In one embodiment, if Figure 2 As shown, an obstacle detection method based on unmanned driving technology is provided, and the method is applied to Figure 1 The computer device in the example is used to illustrate, including the following steps:
[0043] Step 202, obtaining current frame point cloud data and current frame image data within a preset angle range.
[0044] During the unmanned driving process, the vehicle transmits the collected current frame point cloud data to the computer device through the first vehicle-mounted sensor installed on the vehicle, and sends the collected current frame image data within a preset angle range to the computer device through the second vehicle-mounted sensor installed on the vehicle. For example, the first vehicle-mounted sensor may be a laser radar. The current frame point cloud data is the current frame point cloud data within a 360-degree range collected by the first vehicle-mounted sensor. For example, the second vehicle-mounted sensor may be a vehicle-mounted camera. The current frame image data within a preset angle range may be the current frame image data within a 360-degree range around the vehicle collected by multiple vehicle-mounted cameras.
[0045] Step 204 , projecting the current frame point cloud data onto multiple viewing angles to obtain two-dimensional planes corresponding to the multiple viewing angles.
[0046] Step 206 , extracting features from the two-dimensional plane corresponding to each viewing angle to obtain point cloud feature information corresponding to each viewing angle.
[0047] The current frame point cloud data is 3D point cloud data. The computer device projects the acquired current frame point cloud data to multiple viewing angles, thereby projecting the 3D point cloud data to two-dimensional planes corresponding to the multiple viewing angles, thereby converting the 3D point cloud data into two-dimensional data in the two-dimensional plane. The multiple viewing angles may include a bird's-eye view and a frontal view. When the computer device projects the current point cloud data on a bird's-eye view, a two-dimensional plane corresponding to the bird's-eye view can be obtained. When the computer device projects the current frame point cloud data on a frontal view, a two-dimensional plane corresponding to the frontal view can be obtained.
[0048] The two-dimensional plane corresponding to each viewing angle includes the projected point cloud data of the current frame. The computer device can extract the point cloud feature information corresponding to each viewing angle in the two-dimensional plane corresponding to each viewing angle. The point cloud feature information can be the local feature information of each point in the current frame point cloud data corresponding to each pixel in the two-dimensional plane. The local feature information may include local depth, point cloud density, etc. The computer device pre-stores a trained neural network model. For example, the neural network model can be a pointnet based on the attention layer. The computer device can input the two-dimensional plane corresponding to each viewing angle into the trained neural network model, and perform prediction operations on the two-dimensional plane corresponding to each viewing angle through the neural network model to obtain the point cloud feature information corresponding to each viewing angle.
[0049] Step 208, input the point cloud feature information corresponding to each viewing angle and the current frame image data into the corresponding feature extraction model, and extract the spatial feature information corresponding to each viewing angle and the image feature information corresponding to the current frame image data in parallel through the corresponding feature extraction model.
[0050] The computer device converts the point cloud feature information corresponding to each view and the current frame image data to obtain the point cloud feature vector corresponding to each view and the image matrix corresponding to the current frame image data. A plurality of feature extraction models are pre-stored in the computer device. The plurality of feature extraction models may be feature extraction models of the same type. The feature extraction model is obtained by training with a large amount of sample data. For example, the feature extraction model may be a 2D convolutional neural network model. The computer device inputs the point cloud feature vector corresponding to each view and the image matrix corresponding to the current frame data into the corresponding feature extraction model respectively, and performs parallel feature extraction through the feature extraction model to obtain the spatial feature information corresponding to each view and the image feature information corresponding to the current frame image data. The feature extraction model may include a pooling layer, and the computer device may perform dimensionality reduction processing on the point cloud feature information corresponding to each view according to the first resolution through the pooling layer of the corresponding feature extraction model, thereby obtaining the spatial feature information corresponding to each view. Perform dimensionality reduction processing on the current frame image data according to the second resolution through the pooling layer of the corresponding feature extraction model, thereby obtaining the image feature information corresponding to the current frame image data. The spatial feature information may include information such as the shape of the obstacle. The image feature information may include information such as the shape and color of the obstacle.
[0051] Step 210: Fusing the spatial feature information and image feature information corresponding to multiple viewing angles to obtain fused feature information.
[0052] Step 212, input the fused feature information into the trained detection model, perform prediction operation on the fused feature information through the detection model, and output the obstacle detection result.
[0053] After obtaining the spatial feature information and image feature information corresponding to the multiple viewing angles, the computer device may fuse the spatial feature information and image feature information corresponding to the multiple viewing angles. The fusion method may be to first splice the spatial feature information and image feature information corresponding to the multiple viewing angles according to preset parameters, and then align the spliced feature information to the preset viewing angle, thereby obtaining the fused feature information.
[0054] The computer device converts the fused feature information to obtain a fused feature vector. The computer device pre-stores a trained detection model. The detection model is obtained by training with a large amount of sample data. For example, the detection model can be a 2D convolutional neural network. The detection model includes multiple network layers, for example, an input layer, an attention layer, a convolution layer, a pooling layer, a fully connected layer, etc. The computer device inputs the fused feature vector into the detection model, calculates the context vector and weight corresponding to the fused feature vector through the attention layer of the detection model, and generates a first extraction result according to the context feature and the weight. Then, the context feature corresponding to the context vector is extracted according to the first extraction result through the convolution layer to generate a second extraction result. The second extraction result is subjected to dimensionality reduction processing through the pooling layer of the detection model. The second extraction result after dimensionality reduction processing is classified through the fully connected layer to obtain a classification result. The classification result is weighted output through the output layer. The computer device obtains an obstacle detection result according to the classification result of the weighted output.
[0055] In this embodiment, the computer device obtains the current frame point cloud data and the current frame image data within a preset angle range, and projects the current frame point cloud data on multiple viewing angles to obtain two-dimensional planes corresponding to multiple viewing angles. This is conducive to the subsequent fusion of the current frame point cloud data with the current frame image data. The computer device performs feature extraction on the two-dimensional plane corresponding to each viewing angle to obtain the point cloud feature information corresponding to each viewing angle, inputs the point cloud feature information corresponding to each viewing angle and the current frame image data into the corresponding feature extraction model, and extracts the spatial feature information corresponding to each viewing angle and the image feature information corresponding to the current frame image data in parallel through the corresponding feature extraction model. By performing multiple feature extractions on the two-dimensional plane corresponding to each viewing angle, more comprehensive and effective feature information can be extracted from the current frame point cloud data. The computer device fuses the spatial feature information and image feature information corresponding to multiple viewing angles to obtain fused feature information. It is possible to complement multiple source data according to the data characteristics of multiple source data to obtain more comprehensive obstacle feature information. The computer device performs a prediction operation on the fused feature information through the detection model and outputs the obstacle detection result. Since the fused feature information is comprehensive and the detection model is pre-trained, the accuracy of obstacle detection is effectively improved.
[0056] In one embodiment, if Figure 3 As shown, the steps of fusing the spatial feature information and the image feature information corresponding to the multiple perspectives to obtain the fused feature information include:
[0057] Step 302: splice the spatial feature information and image feature information corresponding to multiple viewing angles according to preset parameters to obtain spliced feature information.
[0058] Step 304, aligning the spliced feature information to a preset viewing angle according to preset parameters to obtain aligned feature information, and using the aligned feature information as fused feature information.
[0059] The computer device may perform dimensionality reduction processing on the point cloud feature information corresponding to each perspective according to the first resolution through the pooling layer of the corresponding feature extraction model to obtain the spatial feature information after dimensionality reduction processing, that is, the spatial feature information corresponding to multiple perspectives. The computer device may perform dimensionality reduction processing on the current frame image data according to the second resolution through the pooling layer of the corresponding feature extraction model to obtain the image feature information after dimensionality reduction processing, that is, the image feature information corresponding to the current frame image data.
[0060] The preset parameters may be a coordinate conversion relationship between the point cloud data and the image data. The computer device splices the spatial feature information corresponding to the bird's-eye view and the spatial feature information corresponding to the frontal view with the image feature information according to the preset parameters. After obtaining the spliced feature information, the computer device may align the spliced feature information to the preset view according to the preset parameters. The preset view may be a bird's-eye view. The computer device then obtains the aligned feature information at the preset view, and uses the aligned feature information as the fused feature information.
[0061] In this embodiment, the computer device splices the spatial feature information and image feature information corresponding to multiple viewing angles according to preset parameters, and then aligns the spliced feature information to the preset viewing angle according to the preset parameters to obtain the aligned feature information, and uses the aligned feature information as the fused feature information. Since the spatial feature information corresponding to multiple viewing angles can improve the accuracy of 3D information, lacks color information, and the image feature information includes color information with higher resolution, lacks 3D information, by splicing and aligning the spatial feature information and the image feature information, the complementary data can be fused, so that obstacle detection can be performed according to the fused feature information, which can further improve the accuracy of obstacle detection.
[0062] In one embodiment, the two-dimensional plane includes two-dimensional data corresponding to each point in the current frame point cloud data, and features are extracted from the two-dimensional plane corresponding to each perspective to obtain point cloud feature information, including: extracting multiple data dimensions from the two-dimensional data corresponding to each point in the current frame point cloud data; inputting the multiple data dimensions into a trained neural network model, and performing prediction operations on the feature information of the multiple dimensions through the neural network model to obtain point cloud feature information.
[0063] The computer device can extract multiple data dimensions from the two-dimensional data corresponding to each point in the current frame point cloud data. The multiple data dimensions may include dimensions such as the coordinates and reflectivity of the point. The computer device pre-stores a trained neural network model. The trained neural network model is obtained by training with a large amount of sample data. For example, the neural network model may be a pointnet based on an attention layer. The neural network model may include multiple network layers. For example, the network layer may include an attention layer, a convolution layer, etc. The computer device may input the extracted multiple data dimensions into the trained neural network model, and calculate the context vectors and weights corresponding to the multiple data dimensions through the attention layer of the neural network model. The neural network model uses the context vector and weight as the input of the convolution layer, and extracts the context features corresponding to the context vector through the convolution layer. The neural network model uses the context features and weights as the input of the pooling layer, and performs dimensionality reduction processing on the context features through the pooling layer. The context features and weights after dimensionality reduction processing are output through the output layer of the neural network model, and the context features after dimensionality reduction processing are used as point cloud feature information.
[0064] In this embodiment, the computer device extracts multiple data dimensions from the two-dimensional data corresponding to each point in the current frame point cloud data, and performs prediction operations on the multiple data dimensions through the neural network model to obtain point cloud feature information. Since the neural network is pre-trained, the local feature information of each point in the current frame point cloud data can be accurately extracted through the neural network model, which is conducive to the subsequent extraction of spatial feature information from the current frame point cloud data.
[0065] In one of the embodiments, the current frame point cloud data is projected on multiple perspectives to obtain two-dimensional planes corresponding to the multiple perspectives, including: projecting the current frame point cloud data on a bird's-eye view to obtain a two-dimensional plane corresponding to the bird's-eye view; projecting the current frame point cloud data on a frontal view to obtain a two-dimensional plane corresponding to the frontal view.
[0066] After acquiring the current frame point cloud data, the computer device can project the current frame point cloud data to multiple perspectives. The coordinates of the current frame point cloud data can be expressed as (x, y, z). The computer device can project at a preset resolution. Multiple perspectives can include a bird's-eye view and a frontal view. For example, in the process of bird's-eye view projection, when the preset resolution is 0.1m per grid, the current frame point cloud data within the range of -60<x<60, -60<y<60 can be projected to a two-dimensional plane of size 1200x 1200. Each pixel in the two-dimensional plane is regarded as a grid, and the current frame point cloud data within the range of 0.05m will fall on the corresponding grid. By projecting the current frame point cloud data on a bird's-eye view, the computer device can obtain an unobstructed intuitive obstacle view, avoiding the problem of inaccurate extracted point cloud feature information caused by obstructing objects. By projecting the current frame point cloud data on a frontal view, the computer device can more intuitively describe the shape of smaller targets, for example, pedestrians can be described more intuitively. This helps the computer device extract more comprehensive and accurate effective feature information in the two-dimensional plane corresponding to multiple perspectives.
[0067] In one embodiment, the detection model includes multiple network layers, and the detection model performs prediction operations on the fused feature information to output an obstacle detection result, including: inputting the fused feature information into the input layer of the detection model; inputting the fused feature information into the attention layer of the detection model through the input layer, calculating the context vector and weight corresponding to the fused feature information through the attention layer, and generating a first extraction result; inputting the first extraction result into the convolution layer, extracting the context features corresponding to the context vector through the convolution layer, and generating a second extraction result; inputting the second extraction result into the pooling layer, and performing dimensionality reduction processing on the second extraction result through the pooling layer; inputting the second extraction result after dimensionality reduction processing into the fully connected layer, classifying the second extraction result after dimensionality reduction processing through the fully connected layer to obtain a classification result, and outputting the classification result after weighting through the output layer; selecting the classification result with the largest weight in the weighted output classification result as the obstacle detection result.
[0068] The computer device pre-stores a trained detection model. The detection model may be a detection model obtained by pre-training with a large amount of sample data. For example, the detection model may be a 2D convolutional neural network based on an attention layer. The detection model may include multiple network layers. For example, the detection model may include multiple network layers such as an input layer, an attention layer, a convolution layer, a pooling layer, a fully connected layer, and an output layer. The computer device inputs the fused feature information into the input layer of the detection model by calling the trained detection model. The fused feature information is transmitted to the attention layer through the input layer, so that the context vector and weight corresponding to the fused feature information are calculated through the attention layer, and a first extraction result is generated according to the context vector and the weight. The detection model uses the first extraction result as the input of the convolution layer, extracts the context features corresponding to the context vector through the convolution layer, and generates a second extraction result according to the context features and the weight. Then the computer device uses the second extraction result as the input of the pooling layer, performs dimensionality reduction processing on the second extraction result through the pooling layer, and obtains the second extraction result after dimensionality reduction processing. The computer device uses the second extraction result after dimensionality reduction processing as the input of the fully connected layer, classifies the second extraction result after dimensionality reduction processing, and obtains a classification result. The classification results may include multiple categories of obstacles, multiple location information, etc. The classification results are then weighted and output through the output layer. The computer device then selects the classification result with the largest weight from the weighted output classification results, which is the obstacle detection result. The obstacle detection result may include the location information of the obstacle, the size of the obstacle, the shape of the obstacle, etc.
[0069] In this embodiment, the computer device calculates the context vector and weight corresponding to the fused feature information through the attention layer of the detection model to generate a first extraction result. The interference information in the fused feature information can be filtered to achieve feature focusing processing of the fused feature information. The context features corresponding to the context vector are extracted by the convolution layer to generate a second extraction result. The second extraction result is subjected to dimensionality reduction processing by the pooling layer, and the main context features can be extracted to avoid the influence of redundant features. The computer device obtains a classification result by classifying the second extraction result after dimensionality reduction processing, and outputs the classification result after weighting. The classification result with the largest weight in the weighted output classification result is selected as the obstacle detection result, and the classification result can be normalized, further improving the accuracy of obstacle detection.
[0070] In one of the embodiments, the two-dimensional plane includes multiple pixels, each pixel corresponds to the two-dimensional data of multiple points in the current frame point cloud data, and before feature extraction is performed on the two-dimensional plane corresponding to each perspective, it also includes: averaging the two-dimensional data of the multiple points corresponding to each pixel to obtain an average value; and normalizing the points corresponding to the corresponding pixels according to the average value.
[0071] Before extracting features from the two-dimensional plane corresponding to each viewing angle, the computer device may also normalize multiple points in the current frame point cloud data in the two-dimensional plane. Specifically, the two-dimensional plane includes multiple pixels, each pixel can be represented by a grid, and each grid includes multiple points in the current frame point cloud data. The computer device averages the coordinates of the multiple points in each grid to obtain an average value. The computer device then subtracts the coordinates of each point in the grid from the average value to normalize the current frame point cloud data in each grid. Normalizing multiple points in the current frame point cloud data in the two-dimensional plane is beneficial to subsequent feature extraction using a feature extraction model.
[0072] In one of the embodiments, feature extraction is performed on the two-dimensional plane corresponding to each viewpoint to obtain point cloud feature information corresponding to each viewpoint, and the method further includes: calling multiple threads to concurrently extract the point cloud feature information corresponding to each viewpoint in the two-dimensional plane corresponding to each viewpoint; before inputting the point cloud feature information corresponding to each viewpoint and the current frame image data into the corresponding feature extraction model, the method further includes: using multiple threads to convert the point cloud feature information corresponding to each viewpoint and the current frame image data in parallel to obtain the point cloud feature vector corresponding to each viewpoint and the image matrix corresponding to the current frame image data.
[0073] The computer device calls multiple threads to concurrently extract point cloud feature information corresponding to each viewpoint in the two-dimensional plane corresponding to each viewpoint through multiple threads. This improves the efficiency of extracting point cloud feature information. The computer device can also use the multiple threads to convert the point cloud feature information corresponding to each viewpoint and the current frame image data in parallel before inputting the point cloud feature information corresponding to each viewpoint and the current frame image data into the corresponding feature extraction model, thereby effectively reducing the time consumed by the feature extraction model to perform feature extraction.
[0074] In one embodiment, the computer device can also obtain historical trajectory information of multiple obstacles in the current environment according to the obstacle detection result, and simultaneously obtain the current position information of the vehicle, and predict the trajectories of the multiple obstacles within a preset time period according to the historical trajectory information and the current position information.
[0075] Specifically, the computer device tracks the movement process of the obstacle in the obstacle detection result, predicts the position information of the current moment according to the position information of the obstacle at the previous moment, compares the predicted position information of the current moment with the actual position information, and obtains the error information. The computer device corrects the position information of the next moment according to the error information, thereby obtaining the historical trajectory information of multiple obstacles. The computer device can obtain the current position information sent by the vehicle locator. Thus, the computer device can render the obtained historical trajectory information of multiple obstacles into a feature map to obtain a trajectory rendering map. The historical trajectory information can be the trajectory of each frame of the history of multiple obstacles. The computer device renders the historical trajectory information of multiple obstacles in the current frame, thereby obtaining a trajectory rendering map. The color of the obstacle in each frame in the trajectory rendering map changes with the time distance from the current frame. The farther the time from the current frame, the lighter the color of the obstacle. It is possible to obtain the obstacle itself and the surrounding environmental information, realize the consideration of the influencing factors of the trajectory from multiple aspects, and is more conducive to improving the accuracy of trajectory prediction.
[0076] The computer device obtains the current position information collected by the vehicle locator. The current position information may be the position information of the vehicle in the high-precision map at the current moment. The current position information may be expressed in the form of longitude and latitude. The computer device extracts map elements from the current position information. Map elements may include information such as lane lines, center lines, sidewalks, stop lines, etc. The computer device may render the extracted map elements according to multiple channel dimensions, and render the map elements into the map element rendering image corresponding to the channel dimensions. When the map elements are different, the channel dimensions corresponding to the map elements may also be different. The channel dimensions may include color channels, element channels, etc. The color channel may include three channels: red, green, and blue. The element channel may include a lane channel, a center line channel, and a sidewalk channel, etc. The current position of the obstacle can be rendered intuitively and accurately through the channel dimensions corresponding to the map elements, which is conducive to subsequent trajectory prediction.
[0077] After obtaining the trajectory rendering image and the map element rendering image, the computer device may splice the trajectory rendering image and the map element rendering image. The computer device determines the corresponding channel dimensions of the trajectory rendering image and the map element rendering image, splices the trajectory rendering image and the map element rendering image on the corresponding channel dimensions, and then obtains a spliced image matrix. The spliced image matrix may be a complete image including the trajectory rendering image and the map element rendering image.
[0078] Before obtaining the historical trajectory information and current position information of multiple obstacles in the current environment, the computer device has pre-trained a feature extractor. The computer device calls the trained feature extractor and inputs the spliced image matrix into the trained feature extractor. The computer device extracts the image feature information and context feature information corresponding to the spliced image matrix through the feature extractor, and then outputs the feature extraction result corresponding to the spliced image matrix through the fully connected layer of the feature extractor. The multiple influencing factors of the obstacle trajectory are combined to further improve the comprehensiveness of the feature extraction result. The computer device can calculate the feature extraction results by regression prediction to obtain the trajectories of multiple obstacles within a preset time period. Since the obstacle detection results are more comprehensive and accurate, and the feature extraction results contain the trajectories of the historical frames of multiple obstacles, the scope of environmental information is expanded, and trajectory prediction is achieved based on multiple influencing factors, thereby effectively improving the accuracy of trajectory prediction.
[0079] In one embodiment, if Figure 4 As shown, an obstacle detection device based on unmanned driving technology is provided, including: an acquisition module 402, a projection module 404, a first extraction module 406, a second extraction module 408, a fusion module 410 and a prediction module 412, wherein:
[0080] The acquisition module 402 is used to acquire the current frame point cloud data and the current frame image data within a preset angle range.
[0081] The projection module 404 is used to project the current frame point cloud data on multiple viewing angles to obtain two-dimensional planes corresponding to the multiple viewing angles.
[0082] The first extraction module 406 is used to extract features from the two-dimensional plane corresponding to each viewing angle to obtain point cloud feature information corresponding to each viewing angle.
[0083] The second extraction module 408 is used to input the point cloud feature information corresponding to each viewing angle and the current frame image data into the corresponding feature extraction model, and extract the spatial feature information corresponding to each viewing angle and the image feature information corresponding to the current frame image data in parallel through the corresponding feature extraction model.
[0084] The fusion module 410 is used to fuse the spatial feature information and the image feature information corresponding to multiple viewing angles to obtain fused feature information.
[0085] The prediction module 412 is used to input the fused feature information into the trained detection model, perform prediction operations on the fused feature information through the detection model, and output obstacle detection results.
[0086] In one of the embodiments, the fusion module 410 is also used to splice the spatial feature information and image feature information corresponding to multiple perspectives according to preset parameters to obtain spliced feature information; align the spliced feature information to a preset perspective according to the preset parameters to obtain aligned feature information, and use the aligned feature information as the fused feature information.
[0087] In one embodiment, the first extraction module 406 is also used to extract multiple data dimensions from the two-dimensional data corresponding to each point in the current frame point cloud data; the multiple data dimensions are input into the trained neural network model, and the neural network model is used to perform prediction operations on the multiple data dimensions to obtain point cloud feature information.
[0088] In one embodiment, the projection module 404 is also used to project the current frame point cloud data on a bird's-eye view to obtain a two-dimensional plane corresponding to the bird's-eye view; and project the current frame point cloud data on a frontal view to obtain a two-dimensional plane corresponding to the frontal view.
[0089] In one embodiment, the prediction module 412 is also used to input the fused feature information into the input layer of the detection model; input the fused feature information into the attention layer of the detection model through the input layer, calculate the context vector and weight corresponding to the fused feature information through the attention layer, and generate a first extraction result; input the first extraction result into the convolution layer, extract the context features corresponding to the context vector through the convolution layer, and generate a second extraction result; input the second extraction result into the pooling layer, and perform dimensionality reduction processing on the second extraction result through the pooling layer; input the second extraction result after dimensionality reduction processing into the fully connected layer, classify the second extraction result after dimensionality reduction processing through the fully connected layer to obtain a classification result, and output the classification result after weighting through the output layer; select the classification result with the largest weight in the weighted output classification result as the obstacle detection result.
[0090] In one of the embodiments, the above-mentioned device also includes: a normalization processing module, which is used to average the two-dimensional data of multiple points corresponding to each pixel to obtain an average value; and normalize the points corresponding to the corresponding pixels according to the average value.
[0091] In one embodiment, the first extraction module 406 is also used to call multiple threads to concurrently extract point cloud feature information corresponding to each view in the two-dimensional plane corresponding to each view; the above-mentioned device also includes: a conversion module, which is used to use multiple threads to convert the point cloud feature information corresponding to each view and the current frame image data in parallel to obtain the point cloud feature vector corresponding to each view and the image matrix corresponding to the current frame image data.
[0092] For the specific definition of the obstacle detection device based on unmanned driving technology, please refer to the definition of the trajectory prediction method above, which will not be repeated here. Each module in the above-mentioned obstacle detection device based on unmanned driving technology can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0093] In one embodiment, a computer device is provided, whose internal structure diagram can be as follows: Figure 5 As shown. The computer device includes a processor, a memory, a communication interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer-readable instructions and a database. The internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium. The database of the computer device is used to store obstacle detection results. The communication interface of the computer device is used to connect and communicate with a first vehicle-mounted sensor, a second vehicle-mounted sensor, and a vehicle-mounted positioning sensor. When the computer-readable instructions are executed by the processor, an obstacle detection method is implemented.
[0094] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0095] A computer device includes a memory and one or more processors. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the one or more processors, the one or more processors execute the steps in the above-mentioned method embodiments.
[0096] One or more non-volatile computer-readable storage media storing computer-readable instructions, which, when executed by one or more processors, enable the one or more processors to perform the steps in the above-mentioned various method embodiments.
[0097] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through computer-readable instructions, and the computer-readable instructions can be stored in a non-volatile computer-readable storage medium. When the computer-readable instructions are executed, they may include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0098] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0099] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. An obstacle detection method based on unmanned driving technology, include: Obtain the current frame point cloud data and the current frame image data within a preset angle range; Projecting the current frame point cloud data onto multiple viewing angles to obtain two-dimensional planes corresponding to the multiple viewing angles; Perform feature extraction on the two-dimensional plane corresponding to each viewing angle to obtain point cloud feature information corresponding to each viewing angle; Inputting the point cloud feature information corresponding to each viewing angle and the current frame image data into the corresponding feature extraction model, and extracting the spatial feature information corresponding to each viewing angle and the image feature information corresponding to the current frame image data in parallel through the corresponding feature extraction model; The spatial feature information corresponding to the multiple perspectives and the image feature information are fused to obtain fused feature information, including: splicing the spatial feature information corresponding to the multiple perspectives with the image feature information respectively according to the coordinate conversion relationship between the point cloud data and the image data to obtain spliced feature information; aligning the spliced feature information to a preset perspective among the multiple perspectives according to the coordinate conversion relationship between the point cloud data and the image data to obtain aligned feature information, and using the aligned feature information as the fused feature information; and The fused feature information is input into the trained detection model, and the detection model is used to perform a prediction operation on the fused feature information to output an obstacle detection result.
2. The method according to claim 1, It is characterized in that The two-dimensional plane includes two-dimensional data corresponding to each point in the current frame point cloud data, and the feature extraction of the two-dimensional plane corresponding to each viewing angle to obtain point cloud feature information includes: Extracting multiple data dimensions from the two-dimensional data corresponding to each point in the current frame point cloud data; and The multiple data dimensions are input into the trained neural network model, and the neural network model is used to perform prediction operations on the multiple data dimensions to obtain point cloud feature information.
3. The method according to claim 1, It is characterized in that The projecting the current frame point cloud data onto multiple viewing angles to obtain two-dimensional planes corresponding to the multiple viewing angles includes: Projecting the current frame point cloud data on a bird's-eye view to obtain a two-dimensional plane corresponding to the bird's-eye view; and The current frame point cloud data is projected on the orthographic viewing angle to obtain a two-dimensional plane corresponding to the orthographic viewing angle.
4. The method according to claim 1, It is characterized in that The detection model includes a plurality of network layers, and the detection model is used to perform a prediction operation on the fused feature information and output an obstacle detection result, including: Inputting the fused feature information into the input layer of the detection model; Inputting the fused feature information into the attention layer of the detection model through the input layer, calculating the context vector and weight corresponding to the fused feature information through the attention layer, and generating a first extraction result; Inputting the first extraction result into a convolutional layer, extracting context features corresponding to the context vector through the convolutional layer, and generating a second extraction result; Inputting the second extraction result into a pooling layer, and performing dimensionality reduction processing on the second extraction result through the pooling layer; Inputting the second extraction result after the dimensionality reduction processing into a fully connected layer, classifying the second extraction result after the dimensionality reduction processing through the fully connected layer to obtain a classification result, and outputting the classification result after weighting through an output layer; and The classification result with the largest weight among the weighted output classification results is selected as the obstacle detection result.
5. The method according to claim 1, It is characterized in that The two-dimensional plane includes a plurality of pixels, each pixel corresponds to the two-dimensional data of a plurality of points in the point cloud data of the current frame, and before the feature extraction is performed on the two-dimensional plane corresponding to each viewing angle, the method further includes: Averaging the two-dimensional data of multiple points corresponding to each pixel to obtain an average value; and The points corresponding to the corresponding pixels are normalized according to the average value.
6. The method according to any one of claims 1 to 5, It is characterized in that The extracting features of the two-dimensional plane corresponding to each viewing angle to obtain point cloud feature information corresponding to each viewing angle also includes: Calling multiple threads to concurrently extract point cloud feature information corresponding to each viewpoint in the two-dimensional plane corresponding to each viewpoint; and Before inputting the point cloud feature information corresponding to each viewing angle and the current frame image data into the corresponding feature extraction model, the method further includes: The point cloud feature information corresponding to each viewing angle and the current frame image data are converted in parallel by using the multithreading to obtain a point cloud feature vector corresponding to each viewing angle and an image matrix corresponding to the current frame image data.
7. An obstacle detection device based on unmanned driving technology, include: An acquisition module is used to acquire the current frame point cloud data and the current frame image data within a preset angle range; A projection module, used to project the current frame point cloud data on multiple viewing angles to obtain two-dimensional planes corresponding to the multiple viewing angles; The first extraction module is used to extract features from the two-dimensional plane corresponding to each viewing angle to obtain point cloud feature information corresponding to each viewing angle; A second extraction module is used to input the point cloud feature information corresponding to each viewing angle and the current frame image data into a corresponding feature extraction model, and extract the spatial feature information corresponding to each viewing angle and the image feature information corresponding to the current frame image data in parallel through the corresponding feature extraction model; A fusion module is used to fuse the spatial feature information corresponding to multiple perspectives with the image feature information to obtain fused feature information, including: splicing the spatial feature information corresponding to multiple perspectives with the image feature information respectively according to the coordinate conversion relationship between the point cloud data and the image data to obtain spliced feature information; aligning the spliced feature information to a preset perspective among the multiple perspectives according to the coordinate conversion relationship between the point cloud data and the image data to obtain aligned feature information, and using the aligned feature information as the fused feature information; and The prediction module is used to input the fused feature information into the trained detection model, perform prediction operations on the fused feature information through the detection model, and output obstacle detection results.
8. The device according to claim 7, It is characterized in that The first extraction module is also used to extract multiple data dimensions from the two-dimensional data corresponding to each point in the current frame point cloud data; and input the multiple data dimensions into the trained neural network model, and perform prediction operations on the multiple data dimensions through the neural network model to obtain point cloud feature information.
9. A computer device comprising a memory and one or more processors, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the one or more processors perform the following steps: Obtain the current frame point cloud data and the current frame image data within a preset angle range; Projecting the current frame point cloud data onto multiple viewing angles to obtain two-dimensional planes corresponding to the multiple viewing angles; Perform feature extraction on the two-dimensional plane corresponding to each viewing angle to obtain point cloud feature information corresponding to each viewing angle; Inputting the point cloud feature information corresponding to each viewing angle and the current frame image data into the corresponding feature extraction model, and extracting the spatial feature information corresponding to each viewing angle and the image feature information corresponding to the current frame image data in parallel through the corresponding feature extraction model; The spatial feature information corresponding to the multiple perspectives and the image feature information are fused to obtain fused feature information, including: splicing the spatial feature information corresponding to the multiple perspectives with the image feature information respectively according to the coordinate conversion relationship between the point cloud data and the image data to obtain spliced feature information; aligning the spliced feature information to a preset perspective among the multiple perspectives according to the coordinate conversion relationship between the point cloud data and the image data to obtain aligned feature information, and using the aligned feature information as the fused feature information; and The fused feature information is input into the trained detection model, and the detection model is used to perform a prediction operation on the fused feature information to output an obstacle detection result.
10. The computer device according to claim 9, It is characterized in that When the processor executes the computer-readable instructions, it also performs the following steps: extracting multiple data dimensions from the two-dimensional data corresponding to each point in the current frame point cloud data; and inputting the multiple data dimensions into the trained neural network model, performing prediction operations on the multiple data dimensions through the neural network model to obtain point cloud feature information.
11. The computer device according to claim 10, It is characterized in that When the processor executes the computer-readable instructions, the processor further performs the following steps: inputting the fused feature information into the input layer of the detection model; inputting the fused feature information into the attention layer of the detection model through the input layer, calculating the context vector and weight corresponding to the fused feature information through the attention layer, and generating a first extraction result; inputting the first extraction result into the convolution layer, extracting the context feature corresponding to the context vector through the convolution layer, and generating a second extraction result; Inputting the second extraction result into a pooling layer, and performing dimensionality reduction processing on the second extraction result through the pooling layer; Inputting the second extraction result after the dimensionality reduction processing into a fully connected layer, classifying the second extraction result after the dimensionality reduction processing through the fully connected layer to obtain a classification result, and outputting the classification result after weighting through an output layer; And select the classification result with the largest weight among the weighted output classification results as the obstacle detection result.
12. The computer device according to any one of claims 9 to 11, It is characterized in that When the processor executes the computer-readable instructions, it also performs the following steps: calling multiple threads to concurrently extract point cloud feature information corresponding to each viewpoint in the two-dimensional plane corresponding to each viewpoint; and before inputting the point cloud feature information corresponding to each viewpoint and the current frame image data into the corresponding feature extraction model, it also includes: using the multiple threads to parallelly convert the point cloud feature information corresponding to each viewpoint and the current frame image data to obtain the point cloud feature vector corresponding to each viewpoint and the image matrix corresponding to the current frame image data.
13. One or more non-volatile computer-readable storage media storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the following steps: Obtain the current frame point cloud data and the current frame image data within a preset angle range; Projecting the current frame point cloud data onto multiple viewing angles to obtain two-dimensional planes corresponding to the multiple viewing angles; Perform feature extraction on the two-dimensional plane corresponding to each viewing angle to obtain point cloud feature information corresponding to each viewing angle; Inputting the point cloud feature information corresponding to each viewing angle and the current frame image data into the corresponding feature extraction model, and extracting the spatial feature information corresponding to each viewing angle and the image feature information corresponding to the current frame image data in parallel through the corresponding feature extraction model; The spatial feature information corresponding to the multiple perspectives and the image feature information are fused to obtain fused feature information, including: splicing the spatial feature information corresponding to the multiple perspectives with the image feature information respectively according to the coordinate conversion relationship between the point cloud data and the image data to obtain spliced feature information; aligning the spliced feature information to a preset perspective among the multiple perspectives according to the coordinate conversion relationship between the point cloud data and the image data to obtain aligned feature information, and using the aligned feature information as the fused feature information; and The fused feature information is input into the trained detection model, and the detection model is used to perform a prediction operation on the fused feature information to output an obstacle detection result.
14. The storage medium according to claim 13, It is characterized in that When the computer-readable instructions are executed by the processor, the following steps are also performed: extracting multiple data dimensions from the two-dimensional data corresponding to each point in the current frame point cloud data; and inputting the multiple data dimensions into the trained neural network model, performing prediction operations on the multiple data dimensions through the neural network model to obtain point cloud feature information.
15. The storage medium according to claim 13, It is characterized in that When the computer-readable instructions are executed by the processor, the following steps are further performed: inputting the fused feature information into the input layer of the detection model; inputting the fused feature information into the attention layer of the detection model through the input layer, calculating the context vector and weight corresponding to the fused feature information through the attention layer, and generating a first extraction result; inputting the first extraction result into the convolution layer, extracting the context feature corresponding to the context vector through the convolution layer, and generating a second extraction result; Inputting the second extraction result into a pooling layer, and performing dimensionality reduction processing on the second extraction result through the pooling layer; Inputting the second extraction result after the dimensionality reduction processing into a fully connected layer, classifying the second extraction result after the dimensionality reduction processing through the fully connected layer to obtain a classification result, and outputting the classification result after weighting through an output layer; And select the classification result with the largest weight among the weighted output classification results as the obstacle detection result.
16. The storage medium according to any one of claims 13 to 15, It is characterized in that When the computer readable instructions are executed by the processor, the following steps are further performed: calling multiple threads to concurrently extract point cloud feature information corresponding to each viewpoint in the two-dimensional plane corresponding to each viewpoint; And before inputting the point cloud feature information corresponding to each viewing angle and the current frame image data into the corresponding feature extraction model, it also includes: using the multi-threading to parallelly convert the point cloud feature information corresponding to each viewing angle and the current frame image data to obtain the point cloud feature vector corresponding to each viewing angle and the image matrix corresponding to the current frame image data.
Citation Information
Patent Citations
Obstacle detection method, device, apparatus and storage medium
CN106951847A
Front barrier detection system and method for unmanned driving automobile
CN107966700A
Vehicle-mounted barrier detection method based on radar data and image data fusion and deep learning
CN108229366A
Detection method, device and system for 3D obstacle and computer storage medium
CN109948448A
A 3D vehicle detection method based on multi-sensor fusion
CN109948661A
