Fusion perception method, device, computer equipment and storage medium
By fusing the point cloud and image data features in the autonomous driving perception method in multiple two-dimensional planes, the problems of low detection efficiency and large computational load in the autonomous driving perception method are solved, and more efficient object detection and path planning are achieved.
Patent Information
- Application Number
- CN202310703788.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-13
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2043-06-13
AI Technical Summary
Existing autonomous driving perception methods have low detection efficiency and large amount of calculation. It is especially difficult to accurately detect unknown objects in complex scenes, and traditional 3D space perception methods have high computational complexity and low efficiency.
The multi-view fusion sensing method is adopted to obtain point cloud data and image data within the preset range of the target vehicle, extract features in multiple two-dimensional planes, fuse and superimpose features, reduce network calculation volume, and improve detection efficiency.
By converting a three-dimensional space problem into multiple two-dimensional plane problems, the difficulty of network deployment and the amount of calculation are reduced, the detection efficiency and accuracy are improved, and the problems of low detection efficiency and large amount of calculation are solved.
Smart Images

Figure CN117911816B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving, and in particular to a fusion perception method, device, computer equipment and storage medium. Background Art
[0002] With the continuous development of the field of autonomous driving, the requirements for vehicle safety and comfort are getting higher and higher. For perception algorithms, the original target-level detection is difficult to meet the existing technical requirements in many scenarios, especially in complex scenes with many unknown objects. At present, more and more perception methods based on occupancy grids are used. Compared with traditional perception methods, the occupancy grid method is not limited to specific detection categories, and can locate all objects in the scene and provide semantic information of the objects, which is convenient for vehicle control and path planning.
[0003] Related occupancy grid technologies usually use cameras or laser radars. Since the imaging principle of the camera itself will lose depth information, the accuracy of the results obtained by using cameras for detection is low. When using laser radars for detection, since the laser radar point cloud is relatively sparse, there will be large deviations in the output of the network or algorithm at locations where there is no point cloud. Existing methods for fusing cameras and laser radars include fusing in a bird's-eye view and directly fusing in 3D space. The bird's-eye view fusion method loses information in the height direction, so the output 3D occupancy grid has a large error in the height direction, while direct fusion in 3D space relies on 3D convolution, which greatly increases the computational complexity of the neural network. In general, the occupancy grid perception methods of the existing technology have the problems of low detection efficiency and large computational complexity. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a fusion perception method, apparatus, computer device and storage medium to solve the problems of low detection efficiency and large calculation amount of the perception method.
[0005] In a first aspect, an embodiment of the present invention provides a fusion perception method, the method comprising:
[0006] Acquire point cloud data and image data within a preset range of the target vehicle;
[0007] Extracting features of the point cloud data based on different views to obtain point cloud features of different views of the point cloud data;
[0008] Extracting features from the image data based on different views to obtain image features of the image data in different views;
[0009] The point cloud features of the different views and the image features of the different views are fused to obtain fused features of each view, and the fused features of different grids in each view are superimposed to determine the spatial features of the target vehicle within a preset range, where the grid is obtained by dividing the space within the preset range of the vehicle;
[0010] The spatial feature is decoded based on a preset decoder to determine a perception result within a preset range of the target vehicle, wherein the perception result includes an object within the preset range of the target vehicle.
[0011] The fusion perception method provided in this embodiment simultaneously obtains point cloud data and image data within a preset range of the target vehicle, fuses point cloud features and image features in two-dimensional planes of multiple views respectively, obtains fusion features of each view, and then superimposes the fusion features of each view to obtain spatial features within a preset range, decodes the spatial features, determines the perception results of the target vehicle within the preset range, and can determine the objects within the preset range of the target vehicle. This method converts problems in three-dimensional space into problems in multiple two-dimensional planes by fusing multiple views, reduces the difficulty of network deployment, reduces the amount of network calculations, and improves network operation and detection efficiency.
[0012] In some implementations, extracting features from the point cloud data based on different views to obtain point cloud features of different views of the point cloud data includes:
[0013] Obtaining a grid corresponding to each point cloud in the point cloud data;
[0014] Based on the point cloud coordinates of the point cloud in each grid, features corresponding to the grid in different views are determined to determine point cloud features of different views of the point cloud data.
[0015] In some implementations, determining features corresponding to the grids in different views based on the coordinates of the point clouds in each grid to determine point cloud features of different views of the point cloud data includes:
[0016] Get the point cloud coordinates of the point cloud in the grid of each view;
[0017] An average value and a standard deviation of the point cloud coordinates are calculated, and point cloud features of different views of the point cloud data are determined based on the average value and the standard deviation.
[0018] In some implementations, extracting features from the image data based on different views to obtain image features of different views of the image data includes:
[0019] Inputting the image data into a preset encoder to obtain a visual cone feature;
[0020] Obtaining a position corresponding to each feature in the cone feature, and determining a grid corresponding to each position;
[0021] Features corresponding to the grids in different views are determined based on the viewing cone features corresponding to each of the grids, so as to determine image features of different views of the image data.
[0022] In some implementations, determining features corresponding to the grids in different views based on the view cone features corresponding to each grid to determine image features of different views of the image data includes:
[0023] Adding the frustum features in each grid based on different views to determine the features corresponding to the grid;
[0024] Image features of different views of the image data are determined based on features corresponding to the grids.
[0025] In some implementations, superimposing the fusion features of different grids in each view to determine the spatial features of the target vehicle within a preset range includes:
[0026] Based on the fusion features of the views, respectively obtain grid features of different views of each grid;
[0027] The grid features of each grid in different views are superimposed to determine the spatial features of the target vehicle within a preset range.
[0028] In some implementations, the acquiring the grid features of each grid in different views based on the fusion features of each view respectively includes:
[0029] Get the coordinates of the center point of each grid;
[0030] The center point coordinates are projected to different views respectively, and the grid features of the different views of the grid are determined from the fusion features of the corresponding views.
[0031] In a second aspect, an embodiment of the present invention provides a fusion sensing device, the device comprising:
[0032] A data acquisition module, used to acquire point cloud data and image data within a preset range of the target vehicle;
[0033] A first extraction module, configured to extract features from the point cloud data based on different views to obtain point cloud features of different views of the point cloud data;
[0034] A second extraction module, configured to extract features from the image data based on different views to obtain image features of different views of the image data;
[0035] A feature fusion module is used to fuse the point cloud features of different views and the image features of different views to obtain fusion features of each view, and to superimpose the fusion features of different grids in each view to determine the spatial features of the target vehicle within a preset range, wherein the grid is obtained by dividing the space within the preset range of the vehicle;
[0036] The result determination module is used to decode the spatial feature based on a preset decoder to determine the perception result within the preset range of the target vehicle, and the perception result includes objects within the preset range of the target vehicle.
[0037] In a third aspect, an embodiment of the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the fusion perception method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0038] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the fusion perception method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 is a flowchart of a fusion perception method according to some embodiments of the present invention;
[0041] Figure 2 is a schematic diagram of a feature of a viewing cone according to some embodiments of the present invention;
[0042] Figure 3 is a detection flow chart according to some embodiments of the present invention;
[0043] Figure 4 is a structural block diagram of a fusion sensing device according to an embodiment of the present invention;
[0044] Figure 5 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0046] The current 3D occupancy grid perception network performs feature fusion in 3D space, which requires the introduction of 3D convolution to extract features in 3D space, resulting in high network complexity and large amount of calculation, and thus low calculation efficiency. In view of this, an embodiment of the present invention provides a fusion perception method.
[0047] According to an embodiment of the present invention, an embodiment of a fusion perception method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0048] In this embodiment, a fusion perception method is provided. Figure 1 is a flow chart of a fusion perception method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0049] Step S11, acquiring point cloud data and image data within a preset range of the target vehicle.
[0050] When obstacle detection is required around the target vehicle, the range is set according to the requirements. The rectangular area is set with the target vehicle as the center. The size and shape of the preset range depends on the driving environment of the vehicle. For example, in a high-speed driving scene, the preset range can be set to 100 meters in front and behind the target vehicle and 10 meters above and below, that is, a rectangular area with the target vehicle as the center.
[0051] In the implementation manner of the present invention, there is no specific limitation on the objects to be detected. All objects within a preset range can be detected, including the ground, walls, trees, vehicles, etc. There is no restriction on the target category. As long as the object is within the preset range of the target vehicle, it will be detected.
[0052] The point cloud data is collected by the laser radar installed on the body of the target vehicle. The laser radar will emit a laser to hit the surface of the object. After reflection, the laser radar will receive the light and then calculate the coordinates of the point hitting the surface of the object, forming a three-dimensional space point on the surface of the object, thus forming a point cloud. There are cameras installed on the body of the vehicle. The number of cameras is not limited. Image data is collected through the cameras. Before the detection, the preset range area of the target vehicle will be divided into a grid of H×W×D, where H represents length, W represents width, and D represents height.
[0053] Step S12: extracting features from the point cloud data based on different views to obtain point cloud features of the point cloud data in different views.
[0054] The collected point cloud data is projected to different views. In the embodiment of the present invention, three views are involved. The three views constitute a complete three-dimensional space. Taking the front of the target vehicle as the main view as an example, the view may include a main view, a left view and a top view, or a main view, a left view and a top view. First, the point cloud data is projected to the main view, the left view and the top view respectively, and the features of the point cloud data of different views are extracted respectively. The specific feature extraction method can be determined according to the coordinates of each point cloud in the point cloud data, and the point cloud coordinates in each grid obtained by division are converted and calculated. The obtained result is used as the point cloud feature of each grid, so as to determine the point cloud features of all grids in each view, and then constitute the point cloud features of each view.
[0055] Taking the view including the main view, left view and top view as an example, the point cloud features of different views obtained in this step include the main view point cloud features, the left view point cloud features and the top view point cloud features. Each point cloud feature includes three dimensions. Taking the top view as an example, the Z axis is set as the coordinate axis perpendicular to the ground and upward. The top view point cloud feature obtained is F pz (×W×C p ), where C p Represents channels. The number of channels is related to the calculation and conversion results of point cloud coordinates. The specific calculation method is determined according to the model settings. For example, the mean value and standard deviation of the coordinates can be calculated, which is not limited here.
[0056] Step S13: extracting features of the image data based on different views to obtain image features of the image data in different views.
[0057] The collected image data is projected to different views. This step involves three views, which constitute a complete three-dimensional space. Taking the front of the target vehicle as the main view, the view can include the main view, the left view and the top view, or the main view, the left view and the top view. Feature extraction is performed on the image data, and the extracted features are projected to the vehicle body coordinate system to determine the grid coordinates corresponding to each feature, and the features involved in each grid are fused and superimposed to determine the features of the grid.
[0058] Taking the view including the front view, the left view and the top view as an example, the image features of different views obtained in this step include the image features of the front view, the image features of the left view and the image features of the top view. Taking the top view as an example, the Z axis is set as the coordinate axis perpendicular to the ground and upward. When projecting, all the features falling in the same grid are added, and the result of the addition is used as the feature value of the grid point, thereby determining the top view image feature F cz (H×W×C c ), where C c Represents the dimension of the feature.
[0059] Step S14, the point cloud features of different views and the image features of different views are fused to obtain the fused features of each view, and the fused features of different grids in each view are superimposed to determine the spatial features of the target vehicle within a preset range. The grid is obtained by dividing the space within the preset range of the vehicle.
[0060] Step S12 and step S13 obtain the point cloud features and image features of each view respectively, and superimpose and fuse the point cloud features and image features of the same view to obtain the fusion features of each view.
[0061] Take the view including the main view, left view and top view as an example, the main view point cloud feature is F px (W×D×C p ), the left view point cloud feature is F py (H×D×C p ), the top view point cloud feature is F pz (H×W×C p ), the main view image feature is F cx (W×D×C c ), the left view image feature is F cy (H×D×C c ), the top view image feature is F cz (H×W×C c ), after fusion and superposition, the main view fusion feature is obtained as F fx1 (W×D×(C c +C p )), the left view fusion feature is F fy1(H×D×(C c +C p )), the top view fusion feature is F fz1 (H×W×(C c +C p )).
[0062] Determine the fusion features corresponding to each grid of the corresponding view from the fusion features of each view. Take the fusion features of the yz plane as an example to obtain the features of the grid of the plane in the yz plane. The dimension of the feature is C c +C p , the features of the three views are fused and superimposed to obtain the spatial feature F 3d (H×W×D×(3C c +3C p )).
[0063] Step S15, decoding the spatial features based on a preset decoder to determine a perception result within a preset range of the target vehicle, where the perception result includes objects within the preset range of the target vehicle.
[0064] This method uses a preset algorithm model to perform calculations in each step, wherein the preset decoder is a component in the preset algorithm model, and the obtained spatial features are input into the preset decoder to obtain a perception result, which includes the occupancy information and semantic information of each grid within the preset range, thereby determining the objects within the preset range of the target vehicle. The occupancy information is whether each grid within the preset range of the target vehicle is occupied, and the semantic information indicates what objects are contained in each grid within the preset range of the target vehicle, such as: people, objects, trees, etc.
[0065] The fusion perception method provided in this embodiment simultaneously obtains point cloud data and image data within a preset range of the target vehicle, fuses point cloud features and image features in two-dimensional planes of multiple views respectively, obtains fusion features of each view, and then superimposes the fusion features of each view to obtain spatial features within a preset range, decodes the spatial features, determines the perception results of the target vehicle within the preset range, and can determine the objects within the preset range of the target vehicle. This method converts problems in three-dimensional space into problems in multiple two-dimensional planes by fusing multiple views, reduces the difficulty of network deployment, reduces the amount of network calculations, and improves network operation and calculation efficiency.
[0066] In this embodiment, a fusion perception method is provided, which includes the following steps:
[0067] Step S21, obtaining point cloud data and image data within a preset range of the target vehicle.
[0068] For details, please see Figure 1 Step S11 of the illustrated embodiment will not be described in detail here.
[0069] Step S22: extracting features from the point cloud data based on different views to obtain point cloud features of the point cloud data in different views.
[0070] Specifically, the above step S22 includes:
[0071] Step S221, obtaining the grid corresponding to each point cloud in the point cloud data.
[0072] Establish the vehicle body coordinate system, further determine the coordinates XYZ of each point in the point cloud data in the vehicle body coordinate system, and the coordinates X of each grid divided within the preset range of H×W×D centered on the target vehicle d Y d Z d , the grid corresponding to each point cloud is determined according to the coordinates of the grid and the coordinates of each point cloud. There may be multiple point clouds in a grid, or there may be no point cloud in the grid.
[0073] Step S222: determining features corresponding to the grid in different views based on the point cloud coordinates of the point cloud in each grid, so as to determine point cloud features of different views of the point cloud data.
[0074] The point cloud coordinates in each grid are calculated without limitation. The calculated result is used as the feature of the grid. The features of all grids in the same view constitute the point cloud features of the view, thereby determining the point cloud features of each view.
[0075] In some optional implementations, the above step S222 includes:
[0076] Step a1, obtaining the point cloud coordinates of the point cloud in the grid of each view.
[0077] After determining the grid corresponding to each point cloud, the point cloud coordinates in each grid can be determined, and the point cloud coordinates in each grid can be obtained from different views.
[0078] Taking the top view as an example, set the Z axis as the coordinate axis perpendicular to the ground and upward, and obtain the coordinates of all point clouds that fall within the same grid, that is, X d Y d Point cloud coordinates of point clouds with the same coordinates.
[0079] Step a2, calculating the average value and standard deviation of the point cloud coordinates, and determining the point cloud features of different views of the point cloud data based on the average value and standard deviation.
[0080] Calculate the average value of all point cloud coordinates that fall within the same grid and standard deviation The obtained average value and standard deviation are used as the characteristic values of the grid point. In order to make the obtained point cloud features more accurate, the obtained results can be further extracted by the convolutional neural network point cloud encoder in the algorithm model of the embodiment of the method.
[0081] Taking the top view as an example, after calculating the mean and standard deviation, the top view point cloud feature 1 is F pz1 (H×W×6), where the 6 channels in the third dimension correspond to the mean and standard deviation calculated above. F pz1 (×W×6) input convolutional neural network point cloud encoder to generate top view point cloud feature F pz (×W×C p ), and the calculation methods for other views are similar. Among them, the top view point cloud feature 1 is equivalent to the initially extracted features. For the initially extracted features, they can be input into the convolutional neural network encoder for further feature extraction, thereby obtaining point cloud features and improving the accuracy of the features, so as to improve the efficiency of subsequent detection.
[0082] Step S23: extracting features from the image data based on different views to obtain image features of the image data in different views.
[0083] For details of step S23, see Figure 1 Step S13 of the illustrated embodiment will not be described in detail here.
[0084] Step S24, fusing the point cloud features of the different views and the image features of the different views to obtain the fusion features of each view, and superimposing the fusion features of the different grids in each view to determine the spatial features of the target vehicle within a preset range, where the grid is obtained by dividing the space within the preset range of the vehicle.
[0085] For details of step S24, see Figure 1 Step S14 of the illustrated embodiment will not be described in detail here.
[0086] Step S25, decoding the spatial feature based on a preset decoder to determine a perception result within a preset range of the target vehicle, wherein the perception result includes objects within the preset range of the target vehicle.
[0087] For details of step S25, see Figure 1 Step S15 of the illustrated embodiment will not be described in detail here.
[0088] The fusion perception method provided in this embodiment determines the characteristics of each grid through the point cloud coordinates in each grid, determines the characteristics of the grid corresponding to each view from different views, and then obtains the point cloud characteristics of each view, and fuses the features of multiple views, thereby reducing the calculation difficulty and improving the calculation efficiency.
[0089] In this embodiment, a fusion perception method is provided, which includes the following steps:
[0090] Step S31, acquiring point cloud data and image data within a preset range of the target vehicle.
[0091] For details of step S31, see Figure 1 Step S11 of the illustrated embodiment will not be described in detail here.
[0092] Step S32: extracting features from the point cloud data based on different views to obtain point cloud features of the point cloud data in different views.
[0093] For details of step S32, see Figure 1 Step S12 of the illustrated embodiment will not be described in detail here.
[0094] Step S33: extracting features from the image data based on different views to obtain image features of the image data in different views.
[0095] Specifically, the above step S33 includes:
[0096] Step S331, input the image data into a preset encoder to obtain the cone feature.
[0097] The preset encoder is used to convert image data into cone features. The image data is input into the preset encoder to obtain the cone feature F v (H c ×W c ×D c ×C c ), where H c , W c Indicates the height and width of the image, D c Indicates the preset image depth value, C c Represents the dimension of the viewing frustum features.
[0098] like Figure 2 As shown, for each pixel position U of the image data c V c (Corresponding to H c W c ), assuming that the preset depth is 10m to 100m, the interval is 10m, each pixel position has 10 cone features, and the total number of cone features is H c ×W c ×Dc , the dimension of each frustum feature is C c .
[0099] Step S332, obtaining the position corresponding to each feature in the viewing cone feature, and determining the grid corresponding to each position.
[0100] Each cone feature is projected to the vehicle body coordinate system through the camera's internal and external parameters to determine the position corresponding to each cone feature, and then the grid corresponding to each position can be determined, that is, the grid where each cone feature is located can be determined.
[0101] Step S333: determining features corresponding to the grids in different views based on the viewing cone features corresponding to each grid, so as to determine image features of different views of the image data.
[0102] After determining the grid corresponding to each cone feature, the coordinate X corresponding to each cone feature in the vehicle coordinate system can be determined. c Y c Z c , and determine its corresponding grid coordinate X cd Y cd Z cd , calculate the cone features in each grid, and use the calculated results as the features of the grid. Calculate the features corresponding to each grid from different views to determine the image features of different views.
[0103] In some optional implementations, the above step S333 includes:
[0104] Step b1, adding the frustum features in each grid based on different views to determine the features corresponding to the grid.
[0105] Taking the top view as an example, the Z axis is set as the coordinate axis perpendicular to the ground and pointing upward. During projection, all the frustum features that fall within the same grid are added together to obtain the features corresponding to the grid.
[0106] Step b2: determining image features of different views of the image data based on features corresponding to each grid.
[0107] The features of each grid under different views are calculated respectively, so as to determine the image features corresponding to each view, that is, the image features of a view include the features of all grids under the view.
[0108] After step b1, the image features 1 of each view are obtained as F cx1 (W×D×C c ), F cy1 (H×D×C c ), F cz1 (H×W×C c), in this embodiment, the image feature 1 can be further extracted by the convolutional neural network encoder 2, and finally the image features of each view are obtained: F cx (W×D×C c ), F cy (H×D×C c ), F cz (H×W×C c ).
[0109] Step S34, fusing the point cloud features of different views and the image features of different views to obtain the fusion features of each view, and superimposing the fusion features of different grids in each view to determine the spatial features of the target vehicle within a preset range, where the grid is obtained by dividing the space within the preset range of the vehicle.
[0110] Step S35, decoding the spatial feature based on a preset decoder to determine a perception result within a preset range of the target vehicle, wherein the perception result includes objects within the preset range of the target vehicle.
[0111] The fusion perception method provided in this embodiment first extracts the cone features of the image data, determines the cone features corresponding to each grid according to the positions of the cone features, and sums the cone features, thereby using the sum result as the features of the grid, and calculating the features of the grid from different views, and finally obtaining the image features of each view. This method calculates point cloud features from different views, which reduces the difficulty of calculation and improves the efficiency of calculation.
[0112] In some embodiments, the above Figure 1 Step S14 in the embodiment includes the following steps:
[0113] Step S41, obtaining grid features of different views of each grid based on the fusion features of each view.
[0114] The grid coordinates are projected onto planes corresponding to different views, thereby determining the grid features of the grid under the corresponding views.
[0115] Specifically, step S41 includes the following steps:
[0116] Step S411, obtaining the center point coordinates of each grid.
[0117] Set the coordinates of the center of each grid in the area divided within the preset range of the target vehicle in the vehicle body coordinate system as X g Y g Z g .
[0118] Step S412, projecting the center point coordinates to different views respectively, and determining the grid features of different views of the grid from the fusion features of the corresponding views.
[0119] Project the center point coordinates of each grid to different views, and obtain the grid features of each grid from the fusion features of each view. Taking the yz plane as an example, the fusion feature of the yz plane is F fx1 , the grid center coordinate is Y g Z g , obtain the feature F corresponding to the grid center coordinate from the fusion feature fx1 (Y g , Z g ), the dimension of this feature is C c +C p .
[0120] Step S42, superimposing the grid features of different views of each grid to determine the spatial features of the target vehicle within a preset range.
[0121] The features of the three views are fused and superimposed to obtain the spatial feature F 3d (H×W×D×(3C c +3C p )).
[0122] The following is a specific embodiment of a fusion perception method. For the 3D occupancy grid perception task in the autonomous driving scene, this method proposes a laser radar and camera fusion perception method based on three-view projection. First, the algorithm model is trained, and the calibrated and synchronized camera and laser radar are used to collect training data, including image data and point cloud data for training. After the data collection is completed, the semi-dense truth value of the spatial occupancy information and the corresponding semantic truth value are generated by multi-frame point cloud superposition and manual annotation. Among them, multi-frame point cloud superposition refers to the conversion of multi-frame point cloud data to the same coordinate system through the trajectory of the target vehicle for superposition. Manual annotation mainly includes dynamic object point cloud subtraction, point cloud semantic information annotation, etc. Among them, the purpose of dynamic object point cloud subtraction is to perform multi-frame point cloud superposition, and point cloud semantic information annotation is to annotate the objects to which each point cloud belongs, such as: people, cars, trees, etc.
[0123] The process of generating the semi-dense truth value is as follows: the area within the preset range of the vehicle is divided into dense grids. For each grid, if there is a point inside, it means that the grid is occupied. If there is no point inside, it is determined whether the grid passes through the laser irradiation path. If it passes through the laser irradiation path, it means that the grid is not occupied. If it does not pass through, it means that the occupancy state of the grid is unknown. For the semantic truth value grid, the semantic truth value of the point closest to the center of the grid is the semantic truth value of the grid.
[0124] Load the pre-trained weights, input the image data and point cloud data to be trained into the network structure, obtain the output results, and calculate the loss function based on the output results. In this implementation, the loss function includes two parts: the first part is the difference between the occupancy information of each spatial grid output by the network and the true value; the second part is the difference between the semantic information of each spatial grid output by the network and the semantic true value. The learning parameters of the entire network are updated through the gradient backpropagation of the neural network, so as to optimize the loss function and make it continuously smaller, and finally make the entire network reach a convergence state, thereby obtaining the trained neural network weights.
[0125] When testing, the testing process is as follows Figure 3 As shown in the figure, the trained neural network weights are loaded, and the predicted point cloud data and image data are input into the network. The point cloud data collected by the lidar is projected into the main view, left view and top view through external parameters to obtain the three-view point cloud features A, F px1 (W×D×6), F py1 (H×D×6), F pz1 (H×W×6), the three-view point cloud feature A is input into the point cloud encoder in the model to generate the three-view point cloud feature B, which are F px2 (W×D×C p ), F py2 (H×D×C p ), F pz2 (H×W×C p ), the three-view point cloud feature A is the initial feature. In order to make the feature more accurate, the three-view point cloud feature A is input into the point cloud encoder for further extraction to improve the detection efficiency. For the image data collected by the camera, the image data is input into the image encoder a to obtain the cone feature F v (H c ×W c ×D c ×C c ), where H c , W c Indicates the height and width of the image, D c Indicates the preset image depth value, C C Represents the dimension of the cone feature. The cone feature is projected into the main view, left view and top view through the internal and external parameters of the camera, and the three-view image features C are obtained, which are F cx1 (W×D×C c ), F cy1 (H×D×C c ), f cz1 (H×W×C c), the three-view image feature C is input into the convolutional neural network image encoder b to generate the three-view image feature D. The three-view point cloud feature B and the three-view image feature D are superimposed and fused to obtain the three-view fusion features, which are F fx1 (W×D×(C c +C p )), F fy1 (H×D×(C c +C p )), F fz1 (H×W×(C c +C p )). The three-view fusion features are converted into spatial features, and then the spatial features are input into a fully connected neural network decoder to obtain the occupancy grid and semantic information of each grid within the preset range of the target vehicle.
[0126] The fusion perception method provided by the embodiment of the present invention is in the front view, left view and top view. Figure 3 The point cloud features and image features are fused in a two-dimensional space, and then the features of the three views are fused at each grid position in the space. Finally, a fully connected neural network is used to output the occupancy information and semantic information of each grid within the preset range. This method reduces network parameters and calculation amount, reduces deployment difficulty and cost, and improves operation and detection efficiency.
[0127] In this embodiment, a fusion perception device is also provided, which is used to implement the above-mentioned embodiments and implementation methods, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0128] This embodiment provides a fusion sensing device, such as Figure 4 As shown, including:
[0129] A data acquisition module, used to acquire point cloud data and image data within a preset range of the target vehicle;
[0130] A first extraction module, configured to extract features from the point cloud data based on different views to obtain point cloud features of different views of the point cloud data;
[0131] A second extraction module, configured to extract features from the image data based on different views to obtain image features of different views of the image data;
[0132] A feature fusion module is used to fuse the point cloud features of different views and the image features of different views to obtain fusion features of each view, and to superimpose the fusion features of different grids in each view to determine the spatial features of the target vehicle within a preset range, wherein the grid is obtained by dividing the space within the preset range of the vehicle;
[0133] The result determination module is used to decode the spatial feature based on a preset decoder to determine the perception result within the preset range of the target vehicle, and the perception result includes objects within the preset range of the target vehicle.
[0134] In some optional implementations, the first extraction module includes:
[0135] A grid acquisition unit, used to acquire a grid corresponding to each point cloud in the point cloud data;
[0136] The point cloud feature determination unit is used to determine the features corresponding to the grid in different views based on the point cloud coordinates of the point cloud in each grid, so as to determine the point cloud features of different views of the point cloud data.
[0137] In some optional implementations, the point cloud feature determination unit includes:
[0138] A point cloud coordinate acquisition subunit is used to acquire the point cloud coordinates of the point cloud in the grid of each view;
[0139] The point cloud feature determination subunit is used to calculate the average value and standard deviation of the point cloud coordinates, and determine the point cloud features of different views of the point cloud data based on the average value and standard deviation.
[0140] In some optional embodiments, the second extraction module includes:
[0141] A cone calculation unit, used for inputting the image data into a preset encoder to obtain a cone feature;
[0142] A position determination unit, used to obtain the position corresponding to each feature in the cone feature, and determine the grid corresponding to each position;
[0143] An image feature determination unit is used to determine features corresponding to the grids in different views based on the cone features corresponding to each of the grids, so as to determine image features of different views of the image data.
[0144] In some optional implementations, the image feature determination unit includes:
[0145] A feature superposition subunit, used for adding the frustum features in each grid based on different views to determine the features corresponding to the grid;
[0146] The image feature determination subunit is used to determine the image features of different views of the image data based on the features corresponding to the grids.
[0147] In some optional implementations, the feature fusion module includes:
[0148] A grid feature acquisition unit, configured to respectively acquire grid features of different views of each of the grids based on the fusion features of the views;
[0149] The grid feature superposition unit is used to superimpose the grid features of different views of each grid to determine the spatial features of the target vehicle within a preset range.
[0150] In some optional implementations, the grid feature acquisition unit includes:
[0151] The center acquisition subunit is used to obtain the coordinates of the center point of each grid;
[0152] The coordinate projection subunit is used to project the center point coordinates to different views respectively, and determine the grid features of the different views of the grid from the fusion features of the corresponding views.
[0153] The fusion perception device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0154] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0155] The embodiment of the present invention also provides a computer device having the above Figure 4 The fusion sensing device shown.
[0156] See also Figure 5 , Figure 5 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 5As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 10 is taken as an example.
[0157] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0158] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0159] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of a computer device based on the presentation of a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0160] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0161] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0162] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0163] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A fusion perception method, characterized in that: The method comprises: Acquire point cloud data and image data within a preset range of the target vehicle; performing feature extraction on the point cloud data based on different views to obtain point cloud features of the point cloud data in different views; performing feature extraction on the image data based on different views to obtain image features of the image data in different views; fusing the point cloud features and image features of the different views to obtain fused features of each view, and superimposing the fused features of different grids in each view to determine the spatial features of the target vehicle within a preset range, where the grids are obtained by dividing the space within the preset range of the vehicle; Decoding the spatial features based on a preset decoder to determine a perception result within a preset range of the target vehicle, the perception result including objects within the preset range of the target vehicle; Extracting features from the point cloud data based on different views to obtain point cloud features of the point cloud data in different views includes: Obtaining a grid corresponding to each point cloud in the point cloud data; Determining features corresponding to the grids in different views based on point cloud coordinates of the point clouds in each of the grids, so as to determine point cloud features of different views of the point cloud data; The determining, based on the coordinates of the point cloud in each of the grids, features corresponding to the grids in different views, so as to determine point cloud features of different views of the point cloud data, includes: Obtaining point cloud coordinates of the point cloud in the grid of each view; An average value and a standard deviation of the point cloud coordinates are calculated, and point cloud features of different views of the point cloud data are determined based on the average value and the standard deviation.
2. The method according to claim 1, characterized in that The extracting features of the image data based on different views to obtain image features of the image data in different views includes: Inputting the image data into a preset encoder to obtain a viewing cone feature; Obtaining a position corresponding to each feature in the viewing cone feature, and determining a grid corresponding to each position; Features corresponding to the grids in different views are determined based on the viewing cone features corresponding to each grid, so as to determine image features of the image data in different views.
3. The method according to claim 2, characterized in that The determining, based on the viewing cone features corresponding to each of the grids, features corresponding to the grids in different views, so as to determine image features of different views of the image data, includes: Summing the frustum features within each grid based on different views to determine features corresponding to the grid; Image features of different views of the image data are determined based on features corresponding to the grids.
4. The method according to claim 1, wherein The step of superimposing the fusion features of different grids in each view to determine the spatial features of the target vehicle within a preset range includes: Obtaining grid features of different views of each grid based on the fusion features of each view; The grid features of different views of each grid are superimposed to determine the spatial features of the target vehicle within a preset range.
5. The method according to claim 4, characterized in that The obtaining of grid features of different views of each grid based on the fusion features of the views includes: Obtaining the center point coordinates of each of the grids; The center point coordinates are projected onto different views respectively, and grid features of the grid in different views are determined from fusion features of corresponding views.
6. A fusion sensing device, characterized in that: The device comprises: A data acquisition module is used to acquire point cloud data and image data within a preset range of the target vehicle; a first extraction module, configured to perform feature extraction on the point cloud data based on different views to obtain point cloud features of the point cloud data in different views; a second extraction module, configured to perform feature extraction on the image data based on different views to obtain image features of the image data in different views; a feature fusion module for fusing the point cloud features and image features of the different views to obtain fused features of each view, and superimposing the fused features of different grids in each view to determine the spatial features of the target vehicle within a preset range, where the grids are obtained by dividing the space within the preset range of the vehicle; a result determination module, configured to decode the spatial features based on a preset decoder to determine a perception result within a preset range of the target vehicle, the perception result including objects within the preset range of the target vehicle; The first extraction module is further configured to: Obtaining a grid corresponding to each point cloud in the point cloud data; Determining features corresponding to the grids in different views based on point cloud coordinates of the point clouds in each of the grids, so as to determine point cloud features of different views of the point cloud data; The first extraction module is further configured to: Obtaining point cloud coordinates of the point cloud in the grid of each view; An average value and a standard deviation of the point cloud coordinates are calculated, and point cloud features of different views of the point cloud data are determined based on the average value and the standard deviation.
7. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the fusion perception method according to any one of claims 1 to 5 by executing the computer instructions.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the fusion perception method according to any one of claims 1 to 5.
