Obstacle detection method, device and equipment and storage medium
Through the combination of vehicle-mounted lidar and target detection network models, point cloud data is rasterized and feature extracted, and obstacle collections are fused, which solves the problem of low detection accuracy of traditional methods in complex environments and realizes the detection of obstacles. Accurate detection and reduced false detections.
Patent Information
- Application Number
- CN202410837719.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-10
AI Technical Summary
Traditional obstacle detection methods are difficult to achieve accurate detection in complex environments, and are prone to false detections due to point cloud noise and unnecessary information interference.
The original point cloud data generated by the vehicle-mounted lidar is used to determine the preset point cloud range, perform rasterization and feature extraction, input the target raster features to the target detection network model for processing, and integrate the general obstacle set and the foreground obstacle set to Determine the target obstacle set.
It improves the adaptability and robustness of obstacle detection, reduces the possibility of false detection, and achieves accurate obstacle detection in complex environments.
Smart Images

Figure CN118629010A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an obstacle detection method, device, equipment and storage medium. Background Art
[0002] LiDAR is an active sensor that perceives the external environment. By processing the information received by LiDAR, the complete environment can be constructed, and by processing the point cloud data, information about surrounding obstacles can be accurately obtained.
[0003] At present, traditional obstacle detection methods mainly filter the original point cloud directly. However, traditional methods are difficult to adapt to complex environments. For example, roadside bushes extending into the map or point cloud noise can easily lead to false detections, resulting in low detection accuracy. Summary of the invention
[0004] The present invention provides an obstacle detection method, device, equipment and medium to achieve accurate obstacle detection, adapt to complex environments and reduce the possibility of false detection.
[0005] In a first aspect, an embodiment of the present invention provides an obstacle detection method, comprising:
[0006] Determine the target point cloud data based on the original point cloud data corresponding to the current frame generated by the vehicle-mounted laser radar and the preset point cloud range;
[0007] Rasterizing the target point cloud data, and performing feature extraction on the rasterized target point cloud data to obtain target grid features;
[0008] Inputting the target grid features into the target detection network model for data processing to obtain the foreground obstacle position information corresponding to the general obstacle set and the foreground grid;
[0009] Determine a foreground obstacle set based on foreground obstacle position information corresponding to the foreground grid;
[0010] The general obstacle set and the foreground obstacle set are merged to determine a target obstacle set.
[0011] In a second aspect, an embodiment of the present invention further provides an obstacle detection device, comprising:
[0012] A target data determination module is used to determine target point cloud data based on the original point cloud data corresponding to the current frame generated by the vehicle-mounted laser radar and a preset point cloud range;
[0013] A target feature determination module is used to rasterize the target point cloud data and extract features from the rasterized target point cloud data to obtain target raster features;
[0014] A general set determination module is used to input the target grid features into the target detection network model for data processing to obtain the general obstacle set and foreground obstacle position information corresponding to the foreground grid;
[0015] A foreground set determination module, used to determine a foreground obstacle set based on foreground obstacle position information corresponding to a foreground grid;
[0016] The target set determination module is used to fuse the general obstacle set and the foreground obstacle set to determine the target obstacle set.
[0017] In a third aspect, an embodiment of the present invention further provides an electronic device, characterized in that the electronic device comprises: at least one processor; and
[0018] a memory communicatively connected to the at least one processor; wherein,
[0019] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the obstacle detection method provided by any embodiment of the present invention.
[0020] In a fourth aspect, an embodiment of the present invention further provides 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 processor to execute the obstacle detection method provided by any embodiment of the present invention when executed.
[0021] The technical solution of the embodiment of the present invention can reduce the amount of data to be processed, reduce the interference of unnecessary information, and improve the speed and efficiency of data processing by determining the target point cloud data based on the original point cloud data corresponding to the current frame generated by the vehicle-mounted laser radar and the preset point cloud range. The target point cloud data is rasterized, and the feature extraction of the rasterized target point cloud data is performed to obtain the target grid feature, thereby simplifying the data structure and reducing the complexity of data processing. The target grid feature is input into the target detection network model for data processing to obtain the general obstacle set and the foreground obstacle position information corresponding to the foreground grid, which can deeply understand the environmental characteristics and improve the adaptability and robustness of obstacle detection. Based on the foreground obstacle position information corresponding to the foreground grid, the foreground obstacle set is determined. The general obstacle set and the foreground obstacle set are fused to determine the target obstacle set. The general obstacle set and the foreground obstacle position information corresponding to the foreground grid are obtained through the target detection network model, and the foreground obstacle set is further generated. The general obstacle set and the foreground obstacle set are fused to obtain the target obstacle set, thereby achieving accurate detection of obstacles, being able to adapt to complex environments, and reducing the possibility of false detection.
[0022] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 is a flow chart of an obstacle detection method provided according to Embodiment 1 of the present invention;
[0025] Figure 2 This is an example diagram of an obstacle detection process involved in Embodiment 1 of the present invention;
[0026] Figure 3 This is a flow chart of an obstacle detection method provided according to Embodiment 2 of the present invention;
[0027] Figure 4 is a schematic diagram of a training process of a target detection network model involved in Embodiment 2 of the present invention;
[0028] Figure 5is a schematic diagram of the structure of an obstacle detection device provided according to Embodiment 3 of the present invention;
[0029] Figure 6 Schematic diagram of the structure of an electronic device for implementing the obstacle detection method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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 only 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 ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "target", "current", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] Embodiment 1
[0033] Figure 1 A flowchart of an obstacle detection method is provided for the first embodiment of the present invention. This embodiment is applicable to the case of detecting obstacles around a vehicle. Figure 1 As shown, the method can be performed by an obstacle detection device, which can be implemented in the form of hardware and / or software, and the obstacle detection device can be configured in an electronic device. Figure 1 As shown, the method specifically comprises the following steps:
[0034] S110, determining target point cloud data based on the original point cloud data corresponding to the current frame generated by the vehicle-mounted laser radar and the preset point cloud range.
[0035] Among them, the vehicle-mounted laser radar may refer to a radar system that uses laser as a detection method, which is mainly used for navigation, obstacle avoidance and mapping functions of intelligent driving vehicles. The original point cloud data may refer to a set of point coordinates representing a three-dimensional object generated by the vehicle-mounted laser radar. The preset point cloud range may refer to a pre-set three-dimensional space area used to limit or specify the range of target point cloud data extracted or analyzed from the original point cloud data of the current frame. The target point cloud data may refer to the original point cloud data within the preset point cloud range.
[0036] Specifically, the on-board laser radar scans the surrounding environment and generates the original point cloud data of the current frame. The original point cloud data is compared with the preset point cloud range, and the point cloud data within the preset range is filtered out. After filtering, the obtained point cloud data is the target point cloud data. By setting the preset point cloud range, you can focus on the point cloud data in a specific area, reduce the interference of unnecessary information, and thus improve the accuracy of obstacle perception.
[0037] S120 , rasterizing the target point cloud data, and performing feature extraction on the rasterized target point cloud data to obtain target raster features.
[0038] The target grid feature may refer to a feature that can describe the properties of the point cloud data points in the grid, such as spatial distribution, density, shape, reflection intensity, etc. For example, the target grid feature may be the coordinates of all point clouds in the grid and the mean value of the reflectivity.
[0039] Specifically, based on the boundary of the target point cloud data and the determined grid size, a three-dimensional grid is created, which covers the entire target point cloud data. The coordinates of the point are compared with the coordinates of the grid grid to determine the grid to which the target point cloud data belongs, and the grid coordinates corresponding to each point in the rasterized target point cloud data are calculated to obtain the rasterized target point cloud data. Feature extraction is performed on the rasterized target point cloud data to obtain the target grid features, thereby simplifying the data structure and reducing the complexity of data processing.
[0040] Exemplarily, "rasterizing the target point cloud data" in S120 may include: dividing the target three-dimensional space corresponding to the target point cloud data based on a preset unit grid size to generate a target grid network; traversing each point in the target point cloud data, and assigning the three-dimensional coordinates of each point in the target point cloud data to the grid corresponding to the target grid network.
[0041] The preset unit grid size may refer to the size of a preset unit grid. The target three-dimensional space may refer to the three-dimensional space where the target point cloud data is located. The target grid network may refer to the three-dimensional grid space generated by evenly dividing the target three-dimensional space according to the preset grid size.
[0042] Specifically, the target three-dimensional space corresponding to the target point cloud data is divided based on the preset unit grid size to create a three-dimensional grid mesh that will cover the entire point cloud data area, i.e., the target grid network. The coordinates of each point in the target point cloud data are compared with the coordinates of each grid grid to determine the grid to which each point in the target point cloud data belongs. The three-dimensional coordinates of each point in the target point cloud data are assigned to the grid corresponding to the target grid network, and the grid coordinates corresponding to each point in the rasterized target point cloud data are calculated to obtain the rasterized target point cloud data. By rasterizing the target point cloud data, it can be more easily visualized, which is helpful for feature extraction.
[0043] S130: Input the target grid features into the target detection network model for data processing to obtain the foreground obstacle position information corresponding to the general obstacle set and the foreground grid.
[0044] Among them, the target detection network model may refer to a deep learning model for identifying and locating obstacles in point cloud data. The general obstacle set may refer to a set of general obstacles (such as motor vehicles, non-motor vehicles, pedestrians, cones), which contains the category, size, center point, and orientation corresponding to each obstacle. The foreground grid may refer to a grid in which there are foreground points, and the foreground point may refer to a point within the foreground obstacle. The foreground obstacle may refer to all types of obstacles, not limited to general obstacles. The foreground obstacle position information may refer to the center position of the foreground obstacles corresponding to all foreground grids.
[0045] Specifically, Figure 2 As shown in the figure, the target grid features are input into the pre-trained target detection network model for obstacle detection, and based on the output results of the target detection network model, the foreground obstacle position information corresponding to the general obstacle set and the foreground grid is determined, so as to gain a deep understanding of the environmental characteristics and improve the adaptability and robustness of obstacle detection.
[0046] S140: Determine a foreground obstacle set based on the foreground obstacle position information corresponding to the foreground grid.
[0047] The foreground obstacle set may refer to a set of all types of obstacles, and the set includes the category, size, center point, and orientation of each obstacle.
[0048] Specifically, Figure 2As shown, based on the foreground obstacle position information corresponding to the foreground grid, the envelope of each foreground obstacle is calculated, and the category, size, center point, and orientation of each obstacle are determined according to the envelope of each foreground obstacle. Generating a foreground obstacle set based on the category, size, center point, and orientation of each obstacle helps to improve the accuracy of obstacle recognition and ensure accurate perception of the surrounding environment.
[0049] Exemplarily, S140 may include: clustering each foreground obstacle position information based on the foreground obstacle position information corresponding to the foreground grid to obtain at least one cluster after clustering, wherein each foreground obstacle corresponds to a cluster; determining the foreground grid corresponding to each foreground obstacle based on the cluster corresponding to each foreground obstacle; determining the envelope of each foreground obstacle based on the foreground grid corresponding to each foreground obstacle; and determining a foreground obstacle set based on the envelope of each foreground obstacle.
[0050] Specifically, based on the foreground obstacle position information corresponding to the foreground grid, cluster analysis is performed on the foreground obstacle position information corresponding to the foreground grid, and the foreground obstacle position information corresponding to the foreground grid corresponding to the same foreground obstacle is combined into a cluster to obtain at least one cluster after clustering, so that the foreground obstacle position information in the same cluster corresponds to the same foreground obstacle. According to the cluster to which each foreground obstacle belongs, the foreground grid corresponding to each foreground obstacle is determined. According to the foreground grid corresponding to each foreground obstacle, the envelope of each foreground obstacle is generated; based on the envelope of each foreground obstacle, a foreground obstacle set is determined, wherein the foreground obstacle set contains a data structure of all identified foreground obstacles, wherein each obstacle is described by its envelope and related information (such as category, size, center point, orientation, etc.).
[0051] S150: Fusing the general obstacle set and the foreground obstacle set to determine a target obstacle set.
[0052] The target obstacle set may refer to a final obstacle set obtained by fusing the general obstacle set and the foreground obstacle set, and the final obstacle set includes all obstacles and their attribute information that are identified and determined to be potential threats to the vehicle or require special attention.
[0053] Specifically, the envelope of each obstacle in the general obstacle set is matched with the envelope of each obstacle in the foreground obstacle set, and the envelope of the target obstacle is determined based on the matching result. Based on the envelope of the target obstacle, the attribute information such as the type, size, center point, and orientation of the target obstacle is determined to generate the target obstacle set. By determining the target obstacle set, the boundary of the obstacle can be determined more accurately, avoiding misjudgment caused by sensor noise or environmental interference, which helps to improve the accuracy of obstacle recognition and ensure that the system can accurately perceive the surrounding environment.
[0054] Exemplarily, S150 may include: detecting the envelope of each general obstacle in the general obstacle set and the envelope of each foreground obstacle in the foreground obstacle set, and merging and removing duplicates of the obstacles based on the detection results to determine the target obstacle set.
[0055] Specifically, each general obstacle in the general obstacle set is traversed, and the envelope of each general obstacle in the general obstacle set is detected with the envelope of each foreground obstacle in the foreground obstacle set. If it is detected that the envelope of the general obstacle and the envelope of the foreground obstacle in the foreground obstacle set do not intersect with each other, both obstacles are regarded as target obstacles and retained. If it is detected that the envelope of the general obstacle intersects with the envelope of the foreground obstacle in the foreground obstacle set, the envelopes of the two obstacles are merged, and the merged envelope is retained as the envelope of the target obstacle, and the attribute information such as the category, size, center point, and orientation of the target obstacle is determined. The target obstacles determined by the detection result are deduplicated, and the deduplicated target obstacles are combined to generate a target obstacle set. By determining the target obstacle set, the boundary of the obstacle can be determined more accurately, avoiding misjudgment caused by sensor noise or environmental interference, which helps to improve the accuracy of obstacle recognition.
[0056] The technical solution of the embodiment of the present invention determines the target point cloud data based on the original point cloud data corresponding to the current frame generated by the vehicle-mounted laser radar and the preset point cloud range, which can reduce the amount of data to be processed, reduce the interference of unnecessary information, and improve the speed and efficiency of data processing. The target point cloud data is rasterized, and the feature extraction of the rasterized target point cloud data is performed to obtain the target grid feature, thereby simplifying the data structure and reducing the complexity of data processing. The target grid feature is input into the target detection network model for data processing to obtain the general obstacle set and the foreground obstacle position information corresponding to the foreground grid, which can deeply understand the environmental characteristics and improve the adaptability and robustness of obstacle detection. Based on the foreground obstacle position information corresponding to the foreground grid, the foreground obstacle set is determined. The general obstacle set and the foreground obstacle set are fused to determine the target obstacle set. The foreground obstacle position information corresponding to the general obstacle set and the foreground grid is obtained through the target detection network model, and the foreground obstacle set is further generated, and the general obstacle set and the foreground obstacle set are fused to obtain the target obstacle set, thereby realizing accurate detection of obstacles, being able to adapt to complex environments, and reducing the possibility of false detection.
[0057] Embodiment 2
[0058] Figure 3This is a flowchart of an obstacle detection method provided in the second embodiment of the present invention. In this embodiment, based on the above embodiments, the target detection network model includes: a first feature extraction sub-model, a second feature extraction sub-model, a first regression sub-model and a second regression sub-model, and on this basis, the step of "inputting the target grid features into the target detection network model for data processing to obtain the general obstacle set and the foreground obstacle position information corresponding to the foreground grid" is optimized. The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here.
[0059] See also Figure 3 Another obstacle detection method provided in this embodiment specifically includes the following steps:
[0060] S210, determining target point cloud data based on the original point cloud data corresponding to the current frame generated by the vehicle-mounted laser radar and the preset point cloud range.
[0061] S220 , rasterizing the target point cloud data, and performing feature extraction on the rasterized target point cloud data to obtain target raster features.
[0062] S230: Input the target grid feature into the first feature extraction sub-model to perform shallow feature extraction, and obtain the extracted first feature.
[0063] The first feature extraction submodel may refer to a shallow neural network for extracting shallow features of input grid features. The first feature may refer to a feature representation obtained from the input data after being processed by a shallow neural network, which is usually a relatively basic and low-level feature that captures the basic structure and pattern of the input data.
[0064] Specifically, the target grid feature is input into the first feature extraction sub-model, which performs shallow feature extraction on the target grid feature through sparse convolution, downsampling, improving the receptive field of the feature, and increasing the depth of the feature layer, and obtains the extracted first feature. By obtaining the first feature, a variety of different feature representations can be provided for subsequent network layers. These feature representations may have different scales, directions, and position information, thereby helping the network to understand the input data more comprehensively.
[0065] S240: Input the first feature into the second feature extraction sub-model to perform deep feature extraction to obtain an extracted second feature.
[0066] The second feature extraction sub-model may refer to a deep neural network for extracting higher-level and more abstract features from the first feature. The second feature may refer to the feature representation obtained from the first feature after being processed by a deeper neural network. These features are usually higher-level and more abstract features that capture the more complex and deep structure of the input data.
[0067] Specifically, the second feature extraction submodel is a neural network including an embedded residual module, and the residual module is a module that connects at least one convolutional layer to at least two convolutional layers across stages. The first feature is input into the second feature extraction submodel, and the second feature extraction submodel further extracts features from the first feature. During the feature extraction process, upsampling is gradually performed (for example, upsampling to 1 / 8 of the original size) to detect features of different sizes. In combination with the residual module, features of different sizes are cascaded to increase the feature dimension, enhance the feature extraction capability, perform deep feature extraction, and obtain the extracted second feature. By extracting the second feature, feature representations of different scales can be obtained, and these feature representations can complement each other to provide a more comprehensive and accurate description of the input data, thereby improving the performance of the target detection network model.
[0068] S250: Input the second feature into the first regression sub-model to determine a set of common obstacles.
[0069] The first regression sub-model may refer to a deep learning component (such as a detection head) that receives the first features as input and outputs predictions or regression results associated with these features.
[0070] Specifically, the second feature is input into the first regression sub-model, and the first regression sub-model regresses the category, center point, size, orientation and other information of the general obstacle according to the second feature to determine the general obstacle set.
[0071] S260: Input the first feature into the second regression sub-model to determine the foreground obstacle position information corresponding to the foreground grid.
[0072] The second regression sub-model may refer to a deep learning component for processing the first features, which receives the first features extracted by a deeper network structure as input and outputs prediction or regression results related to these features.
[0073] Specifically, the first feature is input into the second regression sub-model, and the second regression sub-model regresses the category, center point, size, orientation and other information of the foreground obstacle according to the first feature to determine the foreground obstacle position information corresponding to the foreground grid. By obtaining the foreground obstacle position information, the obstacle information of the surrounding environment can be more comprehensively understood.
[0074] Exemplarily, S260 may include: inputting the first feature into the second regression sub-model, determining in the second regression sub-model the grid type corresponding to each grid based on the first feature, and determining the foreground obstacle position information corresponding to the foreground grid whose grid type is the foreground type.
[0075] The grid type can refer to foreground grid, background grid and blank grid. If there is a foreground point in the grid (i.e., a point in all types of obstacles, not limited to general obstacles), the current grid is the foreground grid. If there is no point in the current grid, the current grid is the blank grid, and the rest of the grids are background grids.
[0076] Specifically, the first feature is input into the second regression sub-model, and the second regression sub-model determines whether there is a foreground point in each grid according to the first feature. If there is a foreground point in the grid (i.e., a point in all types of obstacles, not limited to general obstacles), the current grid is a foreground grid. If there is no point in the current grid, the current grid is a blank grid, and the remaining grids are background grids, and the grid type corresponding to each grid is determined. According to the grid type corresponding to each grid, when the grid type is a foreground grid, the center position of the foreground obstacle corresponding to the foreground grid is determined, and the center position of the foreground obstacle is determined as the foreground obstacle position information corresponding to the foreground grid whose grid type is the foreground type.
[0077] S270: Determine a foreground obstacle set based on the foreground obstacle position information corresponding to the foreground grid.
[0078] S280: Fusing the general obstacle set and the foreground obstacle set to determine a target obstacle set.
[0079] The technical solution of the embodiment of the present invention is to obtain the extracted first feature by inputting the target grid feature into the first feature extraction sub-model for shallow feature extraction. The first feature is input into the second feature extraction sub-model for deep feature extraction to obtain the extracted second feature. The second feature is input into the first regression sub-model to determine the general obstacle set. The first feature is input into the second regression sub-model to determine the foreground obstacle position information corresponding to the foreground grid. By inputting the target grid feature into multiple feature extraction sub-models for feature extraction, obstacle detection provides a more comprehensive and rich feature representation, and the regression sub-models are used to determine the general obstacle set and the foreground obstacle position information, respectively, so as to improve the accuracy and generalization ability of obstacle detection and improve the efficiency of obstacle detection.
[0080] Exemplarily, the training process of the target detection network model can be as follows:
[0081] like Figure 4As shown in the figure, the target detection network model mainly includes the first feature extraction sub-model, the second feature extraction sub-model, the first regression sub-model, and the second regression sub-model. The model input is point cloud data and annotation truth value, and the output is the general obstacle set of the current frame (including motor vehicles, non-motor vehicles, pedestrians, cone barrels), the category of each grid (including foreground points, background points, empty grids), and the offset of each foreground grid and the center point of the foreground obstacle.
[0082] The first part of data processing is point cloud data processing, which rasterizes the point cloud according to the configuration. The rasterization calculation method is:
[0083] x_id=floor((x-x_min) / grid_size_x)
[0084] y_id=floor((y-y_min) / grid_size_y)
[0085] z_id=floor((z-z_min) / grid_size_z)
[0086] Where (x, y, z) is the point cloud coordinate, x_min, y_min, z_min respectively represent the minimum value of the processing range of the point cloud coordinate in each direction, grid_size_x, grid_size_y, grid_size_z respectively represent the unit grid size of the grid in each direction, x_id, y_id, z_id represent the grid coordinates corresponding to each point after rasterization. After the point cloud data is assigned to each grid, the grid features can be calculated according to the needs, and the present invention does not make special limitations. A common way is to calculate the coordinates of all point clouds in the grid and the mean value of the reflectivity as the feature of the current grid.
[0087] In addition, the data processing module will obtain the model truth value based on the annotation box, mainly including the center point, size, orientation angle, category of the general obstacle, the category of each grid, and the offset between each foreground grid and the center point of the foreground obstacle. The foreground grid category is obtained based on the statistics of the rasterization results. If there are foreground points in the current grid (that is, points in all types of obstacles, not limited to general obstacles), the current grid is the foreground grid. If there are no points in the current grid, the current grid is an empty grid, and the remaining grids are background grids. The foreground grid will calculate the distance offset between the grid center and the center of the obstacle to which it belongs in the X and Y directions as the true value of the center offset regression.
[0088] The first feature extraction sub-model is the point cloud feature extraction layer. The present invention does not impose specific restrictions on the specific network structure. The general structure is to extract point cloud features through sparse convolution. Downsampling will be gradually performed during the feature extraction process to improve the receptive field of the feature, while increasing the depth of the feature layer and improving the extraction depth of the feature.
[0089] The second feature extraction submodel is the output feature extraction layer. The present invention does not impose any specific restrictions on the specific network structure. The general structure is to further extract features from the features extracted by the backbone. During the feature extraction process, upsampling will be performed step by step to 1 / 8 of the original size in order to detect targets of different sizes. The feature dimension can be increased by combining residual connections, cascading features of different sizes, and other methods to enhance the feature extraction capability.
[0090] The first regression sub-model can be a detection head, that is, the category, center point, size, direction and other information of the obstacle are regressed according to the previously extracted features. The present invention does not impose specific restrictions on the specific network structure. The general structure is to regress the target through several levels of fully connected layers (generally implemented through 1*1 convolutional layers). The category calculation will be processed by the activation function, and other outputs will be directly output after passing through the convolutional layer.
[0091] The second regression sub-model can be a foreground segmentation head, that is, the category of each grid is calculated according to the previously extracted features, and the offset of all foreground grids corresponding to the center of the foreground obstacle is regressed. The present invention does not impose specific restrictions on the specific network structure. The general structure is to restore the size of the feature to the original size through feature extraction such as upsampling, and then regress the foreground grid obstacle through a fully connected layer (generally implemented through a 1*1 convolutional layer). The category calculation will be processed by an activation function, and other outputs will be directly output after passing through the convolutional layer.
[0092] There are many loss functions for each output, and the present invention does not make specific limitations. According to the output results calculated by the true value data and the network model, the current loss can be calculated in combination with the loss function, and then back propagation is performed according to the gradient descent algorithm, such as Figure 4 As shown in the figure, by updating the model parameters, a set of more reasonable model parameters can be generated after a period of iteration.
[0093] Embodiment 3
[0094] Figure 5 FIG. 1 is a schematic diagram of the structure of an obstacle detection device provided in Embodiment 3 of the present invention. Figure 5 As shown, the device includes: a target data determination module 310, a target feature determination module 320, a general set determination module 330, a foreground set determination module 340 and a target set determination module 350.
[0095] The target data determination module 310 is used to determine the target point cloud data based on the original point cloud data corresponding to the current frame generated by the vehicle-mounted laser radar and the preset point cloud range;
[0096] A target feature determination module 320 is used to rasterize the target point cloud data and extract features from the rasterized target point cloud data to obtain target raster features;
[0097] A general set determination module 330 is used to input the target grid features into the target detection network model for data processing to obtain the general obstacle set and foreground obstacle position information corresponding to the foreground grid;
[0098] A foreground set determination module 340, configured to determine a foreground obstacle set based on foreground obstacle position information corresponding to a foreground grid;
[0099] The target set determination module 350 is used to fuse the general obstacle set and the foreground obstacle set to determine a target obstacle set.
[0100] The technical solution of this embodiment can reduce the amount of data to be processed, reduce the interference of unnecessary information, and improve the speed and efficiency of data processing by determining the target point cloud data based on the original point cloud data corresponding to the current frame generated by the vehicle-mounted laser radar and the preset point cloud range. The target point cloud data is rasterized, and the feature extraction of the rasterized target point cloud data is performed to obtain the target grid feature, thereby simplifying the data structure and reducing the complexity of data processing. The target grid feature is input into the target detection network model for data processing to obtain the general obstacle set and the foreground obstacle position information corresponding to the foreground grid, which can deeply understand the environmental characteristics and improve the adaptability and robustness of obstacle detection. Based on the foreground obstacle position information corresponding to the foreground grid, the foreground obstacle set is determined. The general obstacle set and the foreground obstacle set are fused to determine the target obstacle set. The general obstacle set and the foreground obstacle position information corresponding to the foreground grid are obtained through the target detection network model, and the foreground obstacle set is further generated. The general obstacle set and the foreground obstacle set are fused to obtain the target obstacle set, thereby achieving accurate detection of obstacles, being able to adapt to complex environments, and reducing the possibility of false detection.
[0101] Optionally, the target data determination module 310 is specifically used to: divide the target three-dimensional space corresponding to the target point cloud data based on a preset unit grid size to generate a target grid network; traverse each point in the target point cloud data, and assign the three-dimensional coordinates of each point in the target point cloud data to the grid corresponding to the target grid network.
[0102] Optionally, the target detection network model includes: a first feature extraction sub-model, a second feature extraction sub-model, a first regression sub-model and a second regression sub-model; the general set determination module 330 includes:
[0103] A first feature determination unit is used to input the target grid feature into a first feature extraction sub-model to perform shallow feature extraction and obtain an extracted first feature;
[0104] A second feature determination unit is used to input the first feature into a second feature extraction sub-model to perform deep feature extraction to obtain an extracted second feature;
[0105] A universal set determination unit, configured to input the second feature into the first regression sub-model to determine a universal obstacle set;
[0106] The foreground information determination unit is used to input the first feature into the second regression sub-model to determine the foreground obstacle position information corresponding to the foreground grid.
[0107] Optionally, the second feature extraction sub-model is a neural network including an embedded residual module, and the residual module is a module that cross-stage connects at least one convolutional layer with at least two convolutional layers.
[0108] Optionally, the foreground information determination unit is specifically used to: input the first feature into a second regression sub-model, determine the grid type corresponding to each grid based on the first feature in the second regression sub-model, and determine the foreground obstacle position information corresponding to the foreground grid whose grid type is the foreground type.
[0109] Optionally, the foreground set determination module 340 is specifically used to: cluster the foreground obstacle position information corresponding to the foreground grid to obtain at least one cluster after clustering, wherein each foreground obstacle corresponds to a cluster; determine the foreground grid corresponding to each foreground obstacle based on the cluster corresponding to each foreground obstacle; determine the envelope of each foreground obstacle based on the foreground grid corresponding to each foreground obstacle; and determine the foreground obstacle set based on the envelope of each foreground obstacle.
[0110] Optionally, the target set determination module 350 is specifically used to: detect the envelope of each general obstacle in the general obstacle set and the envelope of each foreground obstacle in the foreground obstacle set, and merge and remove duplicate obstacles based on the detection results to determine the target obstacle set.
[0111] The obstacle detection device provided in the embodiment of the present invention can execute the obstacle detection method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0112] Figure 6A schematic diagram of the structure of an electronic device 12 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as desktop computers, workstations, servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0113] like Figure 6 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).
[0114] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0115] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.
[0116] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 6 not shown, usually called a "hard drive"). Although Figure 6Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0117] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0118] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 12, and / or may communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0119] The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, implementing the steps of an obstacle detection method provided in the embodiment of the present invention, the method comprising:
[0120] Determine the target point cloud data based on the original point cloud data corresponding to the current frame generated by the vehicle-mounted laser radar and the preset point cloud range;
[0121] Rasterizing the target point cloud data, and performing feature extraction on the rasterized target point cloud data to obtain target grid features;
[0122] Inputting the target grid features into the target detection network model for data processing to obtain the foreground obstacle position information corresponding to the general obstacle set and the foreground grid;
[0123] Determine a foreground obstacle set based on foreground obstacle position information corresponding to the foreground grid;
[0124] The general obstacle set and the foreground obstacle set are merged to determine a target obstacle set.
[0125] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the obstacle detection method provided by any embodiment of the present invention.
[0126] This embodiment provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the obstacle detection method steps provided in any embodiment of the present invention are implemented. The method includes:
[0127] Determine the target point cloud data based on the original point cloud data corresponding to the current frame generated by the vehicle-mounted laser radar and the preset point cloud range;
[0128] Rasterizing the target point cloud data, and performing feature extraction on the rasterized target point cloud data to obtain target grid features;
[0129] Inputting the target grid features into the target detection network model for data processing to obtain the foreground obstacle position information corresponding to the general obstacle set and the foreground grid;
[0130] Determine a foreground obstacle set based on foreground obstacle position information corresponding to the foreground grid;
[0131] The general obstacle set and the foreground obstacle set are merged to determine a target obstacle set.
[0132] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0133] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0134] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0135] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0136] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0137] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. An obstacle detection method, characterized in that: include: Determine the target point cloud data based on the original point cloud data corresponding to the current frame generated by the vehicle-mounted laser radar and the preset point cloud range; Rasterizing the target point cloud data, and performing feature extraction on the rasterized target point cloud data to obtain target grid features; Inputting the target grid features into the target detection network model for data processing to obtain the foreground obstacle position information corresponding to the general obstacle set and the foreground grid; Determine a foreground obstacle set based on foreground obstacle position information corresponding to the foreground grid; The general obstacle set and the foreground obstacle set are merged to determine a target obstacle set.
2. The method according to claim 1, characterized in that: The rasterizing of the target point cloud data comprises: Dividing the target three-dimensional space corresponding to the target point cloud data based on a preset unit grid size to generate a target grid network; Each point in the target point cloud data is traversed, and the three-dimensional coordinates of each point in the target point cloud data are assigned to a grid corresponding to the target grid network.
3. The method according to claim 1, characterized in that The target detection network model includes: a first feature extraction sub-model, a second feature extraction sub-model, a first regression sub-model and a second regression sub-model; The step of inputting the target grid features into the target detection network model for data processing to obtain the foreground obstacle position information corresponding to the general obstacle set and the foreground grid includes: Inputting the target grid feature into the first feature extraction sub-model to perform shallow feature extraction, and obtaining the extracted first feature; Inputting the first feature into a second feature extraction sub-model to perform deep feature extraction to obtain an extracted second feature; Inputting the second feature into the first regression sub-model to determine a set of common obstacles; The first feature is input into the second regression sub-model to determine the foreground obstacle position information corresponding to the foreground grid.
4. The method according to claim 3, characterized in that The second feature extraction sub-model is a neural network including an embedded residual module, wherein the residual module is a module that cross-stage connects at least one convolutional layer with at least two convolutional layers.
5. The method according to claim 3, characterized in that: The step of inputting the first feature into the second regression sub-model to determine the foreground obstacle position information corresponding to the foreground grid includes: The first feature is input into the second regression sub-model, and in the second regression sub-model, a grid type corresponding to each grid is determined based on the first feature, and foreground obstacle position information corresponding to a foreground grid whose grid type is a foreground type is determined.
6. The method according to claim 1, characterized in that The determining of the foreground obstacle set based on the foreground obstacle position information corresponding to the foreground grid includes: Based on the foreground obstacle position information corresponding to the foreground grid, clustering each foreground obstacle position information to obtain at least one cluster after clustering, wherein each foreground obstacle corresponds to one cluster; Based on the cluster corresponding to each foreground obstacle, determining the foreground grid corresponding to each foreground obstacle; Determine the envelope of each foreground obstacle based on the foreground grid corresponding to each foreground obstacle; Based on the envelope of each foreground obstacle, a foreground obstacle set is determined.
7. The method according to claim 1, characterized in that The fusing the general obstacle set and the foreground obstacle set to determine the target obstacle set includes: The envelope of each general obstacle in the general obstacle set and the envelope of each foreground obstacle in the foreground obstacle set are detected, and obstacles are merged and deduplicated based on the detection results to determine a target obstacle set.
8. An obstacle detection device, characterized in that: include: A target data determination module is used to determine target point cloud data based on the original point cloud data corresponding to the current frame generated by the vehicle-mounted laser radar and a preset point cloud range; A target feature determination module is used to rasterize the target point cloud data and extract features from the rasterized target point cloud data to obtain target raster features; A general set determination module is used to input the target grid features into the target detection network model for data processing to obtain the general obstacle set and foreground obstacle position information corresponding to the foreground grid; A foreground set determination module, used to determine a foreground obstacle set based on foreground obstacle position information corresponding to a foreground grid; The target set determination module is used to fuse the general obstacle set and the foreground obstacle set to determine a target obstacle set.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the obstacle detection method according to any one of claims 1 to 7.
10. 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 processor to implement the obstacle detection method according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Pedestrian fast detection method based on videos
CN103778435A
Pedestrian detecting and tracking method based on multi-stage detection
CN104239865A
Obstacle detection method and device
CN110807439A
Obstacle detection method and device, electronic equipment, storage medium and vehicle
CN115457503A
Obstacle point cloud segmentation method for track monitoring laser radar
CN116310450A
Cited By
Moving target detection method and device based on laser radar
CN119126145A
