Universal obstacle detection method and device
By merging three-dimensional image features and three-dimensional space features to construct three-dimensional time series features, it solves the problem that obstacle detection in the existing technology can only detect predefined categories, realizes the detection of multiple categories of obstacles, and improves generalization and detection. accuracy.
Patent Information
- Application Number
- CN202410654273.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-10
AI Technical Summary
Existing 2D and 3D obstacle detection technologies can only detect predefined obstacle categories and cannot detect objects outside the whitelist. They also have problems with missed detection in special scenarios and have poor generalization capabilities.
By fusing three-dimensional image features and three-dimensional space features to construct three-dimensional time series features and using a universal obstacle detection method, it can reduce the possibility of missed detection in multiple types of obstacle detection and is not subject to whitelist restrictions.
It improves the generalization of obstacle detection, reduces the missed detection rate, can detect multiple types of obstacles, and enhances the accuracy and reliability of detection.
Smart Images

Figure CN118629004A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of target detection, and in particular to a general obstacle detection method and device. Background Art
[0002] Obstacle detection technology is the key to autonomous driving systems. Its role is to identify obstacles around the vehicle to ensure the vehicle's driving safety. Mainstream obstacle detection technologies include 2D (two dimensional) obstacle detection and 3D (three dimensional) obstacle detection.
[0003] 2D obstacle detection is usually performed based on 2D images, and its goal is to detect objects in the image and provide their bounding box information. 3D obstacle detection mainly includes Mono3D (monocular 3D target detection) and BEV 3D (Bird's EyeView three dimensional, bird's eye view) Figure 3 D) Detection.
[0004] However, the existing 2D obstacle detection can only detect pre-defined obstacle categories, and cannot detect a large number of objects outside the whitelist. The existing 3D obstacle detection has difficulty detecting many special-shaped vehicles and vehicles in special states (such as vehicles with occlusions and vehicles in a dumped state), and often misses detection in scenes such as night, and has poor generalization ability. In addition, the 3D detection model can only detect pre-defined obstacle categories, and cannot detect a large number of objects outside the whitelist. Summary of the invention
[0005] The present invention provides a universal obstacle detection method and device to solve the problems in the prior art that both 2D obstacle detection and 3D obstacle detection can only detect predefined obstacle categories, and cannot detect a large number of objects outside the white list, and 3D obstacle detection may miss targets in special scenes or special states, and has poor generalization ability. In the technical solution of the present invention, since the current three-dimensional temporal features are determined by fusing three-dimensional image features and three-dimensional space features, obstacle detection is performed on the current three-dimensional temporal features, thereby improving the generalization of subsequent obstacle detection and reducing the possibility of missed detection. In addition, universal obstacle detection is used to obtain obstacle information of the current environment, and multiple categories of obstacles can be detected without being restricted by the white list.
[0006] The present invention provides a general obstacle detection method, comprising:
[0007] Perform feature extraction on current environment images respectively acquired by a plurality of image acquisition devices to obtain current two-dimensional feature maps respectively corresponding to the current environment images; determine three-dimensional image features corresponding to the current environment based on the current two-dimensional feature maps and a preset three-dimensional space, wherein the preset three-dimensional space is constructed based on the current environment;
[0008] Acquire point cloud data corresponding to the current environment, and determine three-dimensional spatial features corresponding to the current environment based on the point cloud data;
[0009] The three-dimensional image feature and the three-dimensional space feature are subjected to feature fusion to obtain a current fused three-dimensional feature; based on a preset number of historical fused three-dimensional features and the current fused three-dimensional feature, a current three-dimensional time series feature is determined;
[0010] Perform universal obstacle detection on the current three-dimensional time series features to obtain obstacle information of the current environment.
[0011] According to a general obstacle detection method provided by the present invention, a plurality of sampling points are evenly arranged in the preset three-dimensional space;
[0012] The determining of the three-dimensional image features corresponding to the current environment based on each of the current two-dimensional feature maps and the preset three-dimensional space includes:
[0013] For each sampling point in the preset three-dimensional space, projecting the sampling point onto each current two-dimensional feature map according to the intrinsic parameters and extrinsic parameters of each image acquisition device, to obtain a plurality of two-dimensional sampling point features corresponding to the sampling point;
[0014] Adding and fusing a plurality of two-dimensional sampling point features corresponding to the sampling point to obtain a three-dimensional sampling point feature corresponding to the sampling point;
[0015] Based on the three-dimensional sampling point features respectively corresponding to the sampling points, the three-dimensional image features corresponding to the current environment are determined.
[0016] According to a general obstacle detection method provided by the present invention, the step of obtaining point cloud data corresponding to the current environment includes:
[0017] Acquire first point cloud data corresponding to a plurality of laser radars, and second point cloud data corresponding to a plurality of millimeter wave radars;
[0018] The plurality of first point cloud data and the plurality of second point cloud data are merged to obtain point cloud data corresponding to the current environment.
[0019] According to a general obstacle detection method provided by the present invention, the determining of the three-dimensional spatial features corresponding to the current environment based on the point cloud data includes:
[0020] Discretely dividing the point cloud data corresponding to the current environment into a plurality of voxel blocks of preset sizes, wherein the voxel blocks store point cloud information of the point cloud corresponding to the voxel blocks;
[0021] Based on the point cloud in each of the voxel blocks, determining the voxel features corresponding to each of the voxel blocks;
[0022] Perform feature processing on each of the voxel features to reduce the resolution of each of the voxel features; and obtain the three-dimensional space features corresponding to the current environment based on each of the voxel features after feature processing.
[0023] According to a general obstacle detection method provided by the present invention, the voxel features corresponding to each voxel block are determined based on the point cloud in each voxel block, including:
[0024] For each of the voxel blocks, feature extraction is performed on each of the point clouds in the voxel block to obtain initial point cloud features corresponding to each of the point clouds;
[0025] Performing feature encoding on the initial point cloud features corresponding to each of the point clouds in the voxel block, respectively, so as to perform dimension-upgrading processing on the initial point cloud features to obtain target point cloud features;
[0026] Pooling is performed on target point cloud features corresponding to all point clouds in the voxel block to obtain voxel features corresponding to the voxel block.
[0027] According to a general obstacle detection method provided by the present invention, the determining of the current three-dimensional time series feature based on a preset number of historical fused three-dimensional features and the current fused three-dimensional features includes:
[0028] Performing time-series alignment on a preset number of historical fused three-dimensional features and the current fused three-dimensional features respectively, to obtain three-dimensional time-series features corresponding to each of the historical fused three-dimensional features;
[0029] The three-dimensional time series features corresponding to each of the historical fused three-dimensional features are spliced and fused to obtain the current three-dimensional time series features.
[0030] According to a general obstacle detection method provided by the present invention, performing general obstacle detection on the current three-dimensional time series features to obtain obstacle information of the current environment includes:
[0031] Dividing the preset three-dimensional space into a plurality of continuous three-dimensional grids;
[0032] Based on the current three-dimensional time series features, general obstacle detection is performed on each of the three-dimensional grids to obtain obstacle information of the current environment.
[0033] The present invention also provides a universal obstacle detection device, comprising:
[0034] An image module, used to extract features from current environment images respectively acquired by a plurality of image acquisition devices, and obtain current two-dimensional feature maps respectively corresponding to the current environment images; determine three-dimensional image features corresponding to the current environment based on the current two-dimensional feature maps and a preset three-dimensional space, wherein the preset three-dimensional space is constructed based on the current environment;
[0035] A point cloud module, used to obtain point cloud data corresponding to the current environment, and determine the three-dimensional space features corresponding to the current environment based on the point cloud data;
[0036] A fusion module is used to fuse the three-dimensional image feature and the three-dimensional space feature to obtain a current fused three-dimensional feature; and determine a current three-dimensional time series feature based on a preset number of historical fused three-dimensional features and the current fused three-dimensional feature;
[0037] The detection module is used to perform general obstacle detection on the current three-dimensional time series features to obtain obstacle information of the current environment.
[0038] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any one of the general obstacle detection methods described above is implemented.
[0039] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the general obstacle detection method as described above is implemented.
[0040] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned general obstacle detection methods.
[0041] The present invention provides a general obstacle detection method and device. First, by extracting features from the current environment images respectively collected by multiple image acquisition devices, the current two-dimensional feature maps corresponding to each current environment image are obtained, and then the three-dimensional image features corresponding to the current environment are determined based on each current two-dimensional feature map and a preset three-dimensional space. In addition, point cloud data corresponding to the current environment is obtained, and the three-dimensional space features corresponding to the current environment are determined based on the point cloud data. After that, the three-dimensional image features and the three-dimensional space features are feature fused to obtain the current fused three-dimensional features, and then the current three-dimensional time series features are determined based on a preset number of historical fused three-dimensional features and the current fused three-dimensional features, and finally the current three-dimensional time series features are subjected to general obstacle detection to obtain the obstacle information of the current environment. In the technical solution of the present invention, since the current three-dimensional time series features are determined by fusing the three-dimensional image features and the three-dimensional space features, the obstacle detection is performed on the current three-dimensional time series features, thereby improving the generalization of subsequent obstacle detection and reducing the possibility of missed detection. In addition, by adopting general obstacle detection to obtain the obstacle information of the current environment, obstacles of various categories can be detected without being restricted by the whitelist. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 It is one of the flowcharts of the general obstacle detection method provided by the embodiment of the present invention;
[0044] Figure 2 This is the second flow chart of the general obstacle detection method provided by the embodiment of the present invention;
[0045] Figure 3 is a schematic structural diagram of a universal obstacle detection device provided by an embodiment of the present invention;
[0046] Figure 4 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] In view of the problems that both 2D obstacle detection and 3D obstacle detection in the prior art can only detect pre-defined obstacle categories, and cannot detect a large number of objects outside the whitelist, and 3D obstacle detection may miss targets in special scenes or special states, and has poor generalization ability, the present invention provides a general obstacle detection method. Figure 1 is one of the flow charts of the general obstacle detection method provided by the embodiment of the present invention, such as Figure 1 As shown, the general obstacle detection method includes the following steps:
[0049] Step 110: Perform feature extraction on the current environment images respectively acquired by a plurality of image acquisition devices to obtain current two-dimensional feature maps respectively corresponding to the current environment images; determine three-dimensional image features corresponding to the current environment based on the current two-dimensional feature maps and a preset three-dimensional space, wherein the preset three-dimensional space is constructed based on the current environment.
[0050] Specifically, multiple image acquisition devices of different viewing angles (such as front view, side view and rear view) can respectively acquire the current environment image of the current environment where the target (such as the target vehicle) is located. Then, the first feature extraction neural network can be used to extract features from each current environment image to obtain the current two-dimensional feature map corresponding to each current environment image. The neck network of the first feature extraction neural network can be configured using FPN (Feature Pyramid Network). The above process can be expressed as Feats = Function (Images), where Images represents the current environment image, Function represents the first feature extraction neural network, and Feats represents the current two-dimensional feature map corresponding to the current environment image. The configuration using FPN enables the first feature extraction neural network to obtain high-order features of different resolutions, thereby improving the overall perception ability of the first feature extraction neural network. The high-order features can be features of more than three dimensions. Further, the three-dimensional image features corresponding to the current environment can be determined based on each current two-dimensional feature map and a preset three-dimensional space. The preset three-dimensional space can be constructed based on the current environment, for example, a three-dimensional preset space is constructed based on the current environment where the vehicle is located, with a certain vehicle as the center.
[0051] In one embodiment, a plurality of sampling points are evenly arranged in the preset three-dimensional space;
[0052] The determining of the three-dimensional image features corresponding to the current environment based on each of the current two-dimensional feature maps and the preset three-dimensional space includes:
[0053] For each sampling point in the preset three-dimensional space, projecting the sampling point onto each current two-dimensional feature map according to the intrinsic parameters and extrinsic parameters of each image acquisition device, to obtain a plurality of two-dimensional sampling point features corresponding to the sampling point;
[0054] Adding and fusing a plurality of two-dimensional sampling point features corresponding to the sampling point to obtain a three-dimensional sampling point feature corresponding to the sampling point;
[0055] Based on the three-dimensional sampling point features respectively corresponding to the sampling points, the three-dimensional image features corresponding to the current environment are determined.
[0056] Specifically, in order to obtain a three-dimensional feature image based on multiple current two-dimensional feature maps, a preset three-dimensional space can be used, and multiple sampling points can be evenly set in the preset three-dimensional space. For each sampling point in the preset three-dimensional space, the sampling point can be projected to each current two-dimensional feature map according to the intrinsic parameters of each image acquisition device and the extrinsic parameters of each image acquisition device. The intrinsic parameters of the image acquisition device are parameters related to the characteristics of the image acquisition device itself, mainly including parameters such as the focal length and pixel size of the image acquisition device. These parameters describe the process of the image acquisition device mapping the coordinate points in the three-dimensional world to the two-dimensional image plane. The extrinsic parameters of the image acquisition device are parameters in the world coordinate system, which describe the position and orientation of the image acquisition device in the three-dimensional space. The extrinsic parameters include rotation parameters and translation parameters of three axes, which are used to convert points in the world coordinate system to the image acquisition device coordinate system. It is easy to understand that the sampling points may be projected to the inside of the current two-dimensional feature map, or they may be projected to the outside of the current two-dimensional feature map. For the external sampling points projected to the current two-dimensional feature map, feature sampling is not performed. The two-dimensional coordinates of the sampling points projected to the interior of the current two-dimensional feature map on the current two-dimensional feature map are usually non-integer numbers. For example, the two-dimensional coordinates of the sampling points projected to a two-dimensional feature map are (232.6, 454.8). In this case, the two-dimensional sampling point features corresponding to the sampling point in the current two-dimensional feature map can be calculated by using methods such as bilinear interpolation. It is easy to understand that since the same sampling point will be projected to multiple current two-dimensional feature maps respectively, the same sampling point may correspond to multiple two-dimensional sampling point features. Further, the multiple two-dimensional sampling point features corresponding to the sampling point can be added and fused to obtain the three-dimensional sampling point features corresponding to the sampling point. Finally, the three-dimensional sampling point features corresponding to all sampling points can be input into the second feature extraction neural network, and the second feature extraction neural network can output the three-dimensional image features corresponding to the current environment, and the neck network of the second feature extraction neural network can be configured using FPN (Feature Pyramid Network), and the three-dimensional image features output by the second feature extraction neural network can be multi-scale image features.
[0057] In the above embodiment, the three-dimensional image features corresponding to the current environment are determined based on each current two-dimensional feature map and the preset three-dimensional space. The three-dimensional image features have high feature expression capabilities and lay the foundation for the subsequent acquisition of three-dimensional time series features.
[0058] Step 120: Acquire point cloud data corresponding to the current environment, and determine three-dimensional spatial features corresponding to the current environment based on the point cloud data.
[0059] Specifically, point cloud data corresponding to the current environment can be acquired through radar, and three-dimensional spatial features corresponding to the current environment can be determined based on the point cloud data.
[0060] In one embodiment, obtaining point cloud data corresponding to the current environment includes:
[0061] Acquire first point cloud data corresponding to a plurality of laser radars, and second point cloud data corresponding to a plurality of millimeter wave radars;
[0062] The plurality of first point cloud data and the plurality of second point cloud data are merged to obtain point cloud data corresponding to the current environment.
[0063] Specifically, multiple laser radars and multiple millimeter wave radars can sense point cloud data respectively, and then obtain first point cloud data corresponding to the multiple laser radars and second point cloud data corresponding to the multiple millimeter wave radars. The multiple first point cloud data and the multiple second point cloud data can be fused to obtain point cloud data corresponding to the current environment.
[0064] In the above embodiment, since the laser radar has the advantages of high precision, high resolution and is not affected by lighting conditions, and the millimeter-wave radar has the advantages of long-distance detection and strong penetration ability, the point cloud data corresponding to multiple laser radars and the point cloud data corresponding to multiple millimeter-wave radars are fused, the point cloud data corresponding to the current environment is more accurate.
[0065] In one embodiment, determining the three-dimensional spatial features corresponding to the current environment based on the point cloud data includes:
[0066] Discretely dividing the point cloud data corresponding to the current environment into a plurality of voxel blocks of preset sizes, wherein the voxel blocks store point cloud information of the point cloud corresponding to the voxel blocks;
[0067] Based on the point cloud in each of the voxel blocks, determining the voxel features corresponding to each of the voxel blocks;
[0068] Perform feature processing on each of the voxel features to reduce the resolution of each of the voxel features; and obtain the three-dimensional space features corresponding to the current environment based on each of the voxel features after feature processing.
[0069] Specifically, the point cloud data corresponding to the current environment can be discretely divided into a plurality of voxel blocks of preset sizes, and the discrete division means that the plurality of voxel blocks do not intersect each other, and the whole of all voxels constitutes the point cloud data corresponding to the current environment. The preset size can be, for example, 0.2 meters in length, 0.2 meters in width and 0.2 meters in height, respectively, or can be set according to actual needs, and the embodiment of the present invention does not make specific limitations here. The point cloud information of the corresponding point cloud is stored in each voxel block after division. Optionally, the number of point clouds in each voxel block can be planned. When the number of point clouds in the voxel block is greater than the planning threshold, the point clouds of the planning threshold number can be randomly sampled. When the number of point clouds in the voxel block is less than the planning threshold, the point cloud in the voxel block can be supplemented until the number of point clouds in the voxel block reaches the planning threshold. Further, based on the point clouds in each voxel block, the voxel features corresponding to each voxel block can be determined, and then the three-dimensional spatial features corresponding to the current environment can be determined based on the features of each voxel.
[0070] The three-dimensional spatial features corresponding to the current environment are determined based on the features of each voxel. Specifically, each voxel feature can be processed separately based on the first three-dimensional convolutional neural network to reduce the resolution of each voxel feature. Finally, the three-dimensional spatial features corresponding to the current environment can be obtained based on the features of each voxel after feature processing.
[0071] In the above embodiment, by dividing the point cloud data into multiple voxel blocks and determining the voxel features corresponding to each voxel block, and then performing feature processing on each voxel feature, the resolution of each voxel feature is reduced, the amount of calculation for subsequent processing is reduced, and the feature expression capability of the three-dimensional spatial features corresponding to the current environment is improved.
[0072] In one embodiment, determining the voxel features corresponding to each of the voxel blocks based on the point cloud in each of the voxel blocks includes:
[0073] For each of the voxel blocks, feature extraction is performed on each of the point clouds in the voxel block to obtain initial point cloud features corresponding to each of the point clouds;
[0074] Performing feature encoding on the initial point cloud features corresponding to each of the point clouds in the voxel block, respectively, so as to perform dimension-upgrading processing on the initial point cloud features to obtain target point cloud features;
[0075] Pooling is performed on target point cloud features corresponding to all point clouds in the voxel block to obtain voxel features corresponding to the voxel block.
[0076] Specifically, for each voxel block, feature extraction can be performed on each point cloud in the voxel block to obtain the initial point cloud features corresponding to each point cloud. The initial point cloud features can be, for example, five-dimensional features, including x-axis coordinates, y-axis coordinates, z-axis coordinates, reflection intensity, and timestamps. Further, feature encoding can be performed on the initial point cloud features corresponding to each point cloud in the voxel block to perform dimension-upgrading processing on each initial point cloud feature to obtain each target point cloud feature. For example, the five-dimensional initial point cloud feature can be dimensionally upgraded to obtain an eleven-dimensional target point cloud feature. Further, maximum pooling and average pooling can be performed on the target point cloud features corresponding to all point clouds in the voxel block to obtain the voxel features corresponding to the voxel block.
[0077] In the above embodiment, the initial point cloud features corresponding to each point cloud are obtained through feature extraction, and the target point cloud features are obtained by dimensionality-upgrading the initial point cloud features, and the obtained target point cloud features have stronger feature expression capabilities. Then, the target point cloud features corresponding to all point clouds are pooled, which is conducive to comprehensively extracting the shape and semantic features of the voxel block, and finally obtaining the voxel features corresponding to the voxel block.
[0078] Step 130: Fusing the three-dimensional image features and the three-dimensional space features to obtain current fused three-dimensional features; and determining current three-dimensional time series features based on a preset number of historical fused three-dimensional features and the current fused three-dimensional features.
[0079] Specifically, after obtaining the three-dimensional image features corresponding to the current environment and the three-dimensional space features corresponding to the current environment, the three-dimensional image features and the three-dimensional space features can be fused using a second three-dimensional convolutional neural network to obtain a fusion result, and further, the multi-scale features of the fusion result can be extracted using a third feature extraction neural network to obtain a multi-modal current fused three-dimensional feature. Then, based on a preset number, the stored historical fused three-dimensional features can be obtained, and based on the preset number of historical fused three-dimensional features and the current fused three-dimensional features, the current three-dimensional time series features can be determined. Among them, the preset number can be set according to actual needs, and the embodiment of the present invention is not specifically limited here. The historical fused three-dimensional features are obtained after the three-dimensional image features at the historical moment and the three-dimensional space features at the historical moment are fused.
[0080] In one embodiment, the determining the current three-dimensional temporal feature based on a preset number of historical fused three-dimensional features and the current fused three-dimensional feature includes:
[0081] Performing time-series alignment on a preset number of historical fused three-dimensional features and the current fused three-dimensional features respectively, to obtain three-dimensional time-series features corresponding to each of the historical fused three-dimensional features;
[0082] The three-dimensional time series features corresponding to each of the historical fused three-dimensional features are spliced and fused to obtain the current three-dimensional time series features.
[0083] Specifically, a preset number of m historical records can be fused with three-dimensional features F t-m ,......F t-2 , F t-1 Respectively fused with the current three-dimensional feature F t Perform time series alignment to obtain the three-dimensional time series features corresponding to each historical fused three-dimensional feature, and then perform channel splicing on the three-dimensional time series features corresponding to each historical fused three-dimensional feature. The splicing result is further input into the third three-dimensional convolutional neural network for fusion processing to obtain the current three-dimensional time series features.
[0084] In the above embodiment, the current three-dimensional time series feature is determined based on a preset number of historical fused three-dimensional features and the current fused three-dimensional features, so that obstacle detection is performed on the current three-dimensional time series feature. The time series information plays an important role in general obstacle detection, which can improve the detection effect of occluded obstacles and improve the prediction performance of the motion state of obstacles.
[0085] Figure 2 FIG. 2 is a flow chart of a general obstacle detection method provided by an embodiment of the present invention. Figure 2 As shown, after steps 110 to 130, the current environment images and point cloud data corresponding to the current environment respectively collected by multiple image acquisition devices are converted into current fused three-dimensional features, and finally the three-dimensional time series features are determined based on the current fused three-dimensional features and the historical fused three-dimensional features.
[0086] Step 140: Perform general obstacle detection on the current three-dimensional time series features to obtain obstacle information of the current environment.
[0087] Specifically, the current 3D time series features can be input into the obstacle detection network to perform general obstacle detection (GOD). General obstacle detection can handle objects outside the whitelist in the current environment. The perception tasks corresponding to general obstacle detection include occupancy prediction and occupancy flow prediction.
[0088] In one embodiment, the preset three-dimensional space is divided into a plurality of continuous three-dimensional grids;
[0089] Based on the current three-dimensional time series features, general obstacle detection is performed on each of the three-dimensional grids to obtain obstacle information of the current environment.
[0090] Specifically, the OCC (Occupancy Network) technology can be used to obtain the obstacle information of the current environment. Specifically, the preset three-dimensional space can be divided into multiple continuous three-dimensional grids. For example, the size of each three-dimensional grid can be 40 cm * 40 cm * 40 cm. Then, based on the current three-dimensional time series characteristics, general obstacle detection can be performed on each three-dimensional grid to obtain the obstacle information of the current environment. The obstacle information may include whether there are obstacles in the current environment, and if there are obstacles in the current environment, the obstacle information may also include the category of the obstacle and the motion state of the obstacle. The motion state of the obstacle represents whether the obstacle is moving or stationary. If the obstacle is moving, the motion state also represents the direction of movement of the obstacle.
[0091] In the above embodiment, since the current three-dimensional time series feature is determined by fusing the three-dimensional image feature and the three-dimensional space feature, the obstacle category can be accurately detected by performing obstacle detection on the current three-dimensional time series feature.
[0092] The present invention provides a general obstacle detection method, which first extracts features from current environment images collected by multiple image acquisition devices to obtain current two-dimensional feature maps corresponding to each current environment image, and then determines the three-dimensional image features corresponding to the current environment based on each current two-dimensional feature map and a preset three-dimensional space. In addition, point cloud data corresponding to the current environment is obtained, and the three-dimensional space features corresponding to the current environment are determined based on the point cloud data. After that, the three-dimensional image features and the three-dimensional space features are feature fused to obtain the current fused three-dimensional features, and then the current three-dimensional time series features are determined based on a preset number of historical fused three-dimensional features and the current fused three-dimensional features, and finally the current three-dimensional time series features are subjected to general obstacle detection to obtain the obstacle information of the current environment. In the technical solution of the present invention, since the current three-dimensional time series features are determined by fusing the three-dimensional image features and the three-dimensional space features, the obstacle detection is performed on the current three-dimensional time series features, thereby improving the generalization of subsequent obstacle detection and reducing the possibility of missed detection. In addition, by adopting general obstacle detection to obtain the obstacle information of the current environment, obstacles of various categories can be detected without being restricted by the whitelist.
[0093] The universal obstacle detection device provided by the present invention is described below. The universal obstacle detection device described below and the universal obstacle detection method described above can be referred to each other.
[0094] Figure 3 is a schematic diagram of the structure of a general obstacle detection device provided by an embodiment of the present invention. Figure 3 As shown, the universal obstacle detection device 300 includes:
[0095] The image module 310 is used to extract features from the current environment images respectively collected by the multiple image collection devices to obtain current two-dimensional feature maps respectively corresponding to the current environment images; determine the three-dimensional image features corresponding to the current environment based on the current two-dimensional feature maps and a preset three-dimensional space, wherein the preset three-dimensional space is constructed based on the current environment;
[0096] A point cloud module 320 is used to obtain point cloud data corresponding to the current environment, and determine the three-dimensional space features corresponding to the current environment based on the point cloud data;
[0097] A fusion module 330 is used to fuse the 3D image feature and the 3D space feature to obtain a current fused 3D feature; and determine a current 3D temporal feature based on a preset number of historical fused 3D features and the current fused 3D feature;
[0098] The detection module 340 is used to perform general obstacle detection on the current three-dimensional time series features to obtain obstacle information of the current environment.
[0099] In one embodiment, a plurality of sampling points are evenly arranged in the preset three-dimensional space, and the image module 310 is specifically used for:
[0100] For each sampling point in the preset three-dimensional space, projecting the sampling point onto each current two-dimensional feature map according to the intrinsic parameters and extrinsic parameters of each image acquisition device, to obtain a plurality of two-dimensional sampling point features corresponding to the sampling point;
[0101] Adding and fusing a plurality of two-dimensional sampling point features corresponding to the sampling point to obtain a three-dimensional sampling point feature corresponding to the sampling point;
[0102] Based on the three-dimensional sampling point features respectively corresponding to the sampling points, the three-dimensional image features corresponding to the current environment are determined.
[0103] In one embodiment, the point cloud module 320 is specifically used for:
[0104] Acquire first point cloud data corresponding to a plurality of laser radars, and second point cloud data corresponding to a plurality of millimeter wave radars;
[0105] The plurality of first point cloud data and the plurality of second point cloud data are merged to obtain point cloud data corresponding to the current environment.
[0106] In one embodiment, the point cloud module 320 is further used to:
[0107] Discretely dividing the point cloud data corresponding to the current environment into a plurality of voxel blocks of preset sizes, wherein the voxel blocks store point cloud information of the point cloud corresponding to the voxel blocks;
[0108] Based on the point cloud in each of the voxel blocks, determining the voxel features corresponding to each of the voxel blocks;
[0109] Perform feature processing on each of the voxel features to reduce the resolution of each of the voxel features; and obtain the three-dimensional space features corresponding to the current environment based on each of the voxel features after feature processing.
[0110] In one embodiment, the point cloud module 320 is further used to:
[0111] For each of the voxel blocks, feature extraction is performed on each of the point clouds in the voxel block to obtain initial point cloud features corresponding to each of the point clouds;
[0112] Performing feature encoding on the initial point cloud features corresponding to each of the point clouds in the voxel block, respectively, so as to perform dimension-upgrading processing on the initial point cloud features to obtain target point cloud features;
[0113] Pooling is performed on target point cloud features corresponding to all point clouds in the voxel block to obtain voxel features corresponding to the voxel block.
[0114] In one embodiment, the fusion module 330 is specifically used to:
[0115] Performing time-series alignment on a preset number of historical fused three-dimensional features and the current fused three-dimensional features respectively, to obtain three-dimensional time-series features corresponding to each of the historical fused three-dimensional features;
[0116] The three-dimensional time series features corresponding to each of the historical fused three-dimensional features are spliced and fused to obtain the current three-dimensional time series features.
[0117] In one embodiment, the detection module 340 is specifically used to:
[0118] Dividing the preset three-dimensional space into a plurality of continuous three-dimensional grids;
[0119] Based on the current three-dimensional time series features, general obstacle detection is performed on each of the three-dimensional grids to obtain obstacle information of the current environment.
[0120] The present invention provides a universal obstacle detection device, which first extracts features from current environment images collected by multiple image acquisition devices to obtain current two-dimensional feature maps corresponding to each current environment image, and then determines the three-dimensional image features corresponding to the current environment based on each current two-dimensional feature map and a preset three-dimensional space. In addition, point cloud data corresponding to the current environment is obtained, and the three-dimensional space features corresponding to the current environment are determined based on the point cloud data. After that, the three-dimensional image features and the three-dimensional space features are feature fused to obtain the current fused three-dimensional features, and then the current three-dimensional time series features are determined based on a preset number of historical fused three-dimensional features and the current fused three-dimensional features, and finally the current three-dimensional time series features are subjected to universal obstacle detection to obtain the obstacle information of the current environment. In the technical solution of the present invention, since the current three-dimensional time series features are determined by fusing the three-dimensional image features and the three-dimensional space features, the obstacle detection is performed on the current three-dimensional time series features, thereby improving the generalization of subsequent obstacle detection and reducing the possibility of missed detection. And by adopting universal obstacle detection to obtain the obstacle information of the current environment, obstacles of various categories can be detected without being restricted by the whitelist.
[0121] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the general obstacle detection method, which includes:
[0122] Perform feature extraction on current environment images respectively acquired by a plurality of image acquisition devices to obtain current two-dimensional feature maps respectively corresponding to the current environment images; determine three-dimensional image features corresponding to the current environment based on the current two-dimensional feature maps and a preset three-dimensional space, wherein the preset three-dimensional space is constructed based on the current environment;
[0123] Acquire point cloud data corresponding to the current environment, and determine three-dimensional spatial features corresponding to the current environment based on the point cloud data;
[0124] The three-dimensional image feature and the three-dimensional space feature are subjected to feature fusion to obtain a current fused three-dimensional feature; based on a preset number of historical fused three-dimensional features and the current fused three-dimensional feature, a current three-dimensional time series feature is determined;
[0125] Perform universal obstacle detection on the current three-dimensional time series features to obtain obstacle information of the current environment.
[0126] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0127] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program, the computer program may be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer can execute the general obstacle detection method provided by the above methods, the method comprising:
[0128] Perform feature extraction on current environment images respectively acquired by a plurality of image acquisition devices to obtain current two-dimensional feature maps respectively corresponding to the current environment images; determine three-dimensional image features corresponding to the current environment based on the current two-dimensional feature maps and a preset three-dimensional space, wherein the preset three-dimensional space is constructed based on the current environment;
[0129] Acquire point cloud data corresponding to the current environment, and determine three-dimensional spatial features corresponding to the current environment based on the point cloud data;
[0130] The three-dimensional image feature and the three-dimensional space feature are subjected to feature fusion to obtain a current fused three-dimensional feature; based on a preset number of historical fused three-dimensional features and the current fused three-dimensional feature, a current three-dimensional time series feature is determined;
[0131] Perform universal obstacle detection on the current three-dimensional time series features to obtain obstacle information of the current environment.
[0132] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform the general obstacle detection method provided by the above methods, the method comprising:
[0133] Perform feature extraction on current environment images respectively acquired by a plurality of image acquisition devices to obtain current two-dimensional feature maps respectively corresponding to the current environment images; determine three-dimensional image features corresponding to the current environment based on the current two-dimensional feature maps and a preset three-dimensional space, wherein the preset three-dimensional space is constructed based on the current environment;
[0134] Acquire point cloud data corresponding to the current environment, and determine three-dimensional spatial features corresponding to the current environment based on the point cloud data;
[0135] The three-dimensional image feature and the three-dimensional space feature are subjected to feature fusion to obtain a current fused three-dimensional feature; based on a preset number of historical fused three-dimensional features and the current fused three-dimensional feature, a current three-dimensional time series feature is determined;
[0136] Perform universal obstacle detection on the current three-dimensional time series features to obtain obstacle information of the current environment.
[0137] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0138] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0139] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A general obstacle detection method, characterized in that: include: Performing feature extraction on the current environment images respectively collected by the multiple image collection devices to obtain current two-dimensional feature maps respectively corresponding to the current environment images; Determining a three-dimensional image feature corresponding to a current environment based on each of the current two-dimensional feature maps and a preset three-dimensional space, wherein the preset three-dimensional space is constructed based on the current environment; Acquire point cloud data corresponding to the current environment, and determine three-dimensional spatial features corresponding to the current environment based on the point cloud data; Fusing the three-dimensional image feature with the three-dimensional space feature to obtain a current fused three-dimensional feature; Determine a current three-dimensional time series feature based on a preset number of historical fused three-dimensional features and the current fused three-dimensional feature; Perform universal obstacle detection on the current three-dimensional time series features to obtain obstacle information of the current environment.
2. The general obstacle detection method according to claim 1, characterized in that: A plurality of sampling points are evenly arranged in the preset three-dimensional space; The determining of the three-dimensional image features corresponding to the current environment based on each of the current two-dimensional feature maps and the preset three-dimensional space includes: For each sampling point in the preset three-dimensional space, projecting the sampling point onto each current two-dimensional feature map according to the intrinsic parameters and extrinsic parameters of each image acquisition device, to obtain a plurality of two-dimensional sampling point features corresponding to the sampling point; Adding and fusing a plurality of two-dimensional sampling point features corresponding to the sampling point to obtain a three-dimensional sampling point feature corresponding to the sampling point; Based on the three-dimensional sampling point features respectively corresponding to the sampling points, the three-dimensional image features corresponding to the current environment are determined.
3. The universal obstacle detection method according to claim 1, characterized in that: The obtaining of point cloud data corresponding to the current environment includes: Acquire first point cloud data corresponding to a plurality of laser radars, and second point cloud data corresponding to a plurality of millimeter wave radars; The plurality of first point cloud data and the plurality of second point cloud data are merged to obtain point cloud data corresponding to the current environment.
4. The universal obstacle detection method according to claim 1, characterized in that: The determining the three-dimensional space features corresponding to the current environment based on the point cloud data includes: Discretely dividing the point cloud data corresponding to the current environment into a plurality of voxel blocks of preset sizes, wherein the voxel blocks store point cloud information of the point cloud corresponding to the voxel blocks; Based on the point cloud in each of the voxel blocks, determining the voxel features corresponding to each of the voxel blocks; Perform feature processing on each of the voxel features to reduce the resolution of each of the voxel features; and obtain the three-dimensional space features corresponding to the current environment based on each of the voxel features after feature processing.
5. The general obstacle detection method according to claim 4, characterized in that: The step of determining voxel features corresponding to each of the voxel blocks based on the point cloud in each of the voxel blocks comprises: For each of the voxel blocks, feature extraction is performed on each of the point clouds in the voxel block to obtain initial point cloud features corresponding to each of the point clouds; Performing feature encoding on the initial point cloud features corresponding to each of the point clouds in the voxel block, respectively, so as to perform dimension-upgrading processing on the initial point cloud features to obtain target point cloud features; Pooling is performed on target point cloud features corresponding to all point clouds in the voxel block to obtain voxel features corresponding to the voxel block.
6. The universal obstacle detection method according to any one of claims 1 to 5, characterized in that: The determining of the current three-dimensional time series feature based on a preset number of historical fused three-dimensional features and the current fused three-dimensional features includes: Performing time-series alignment on a preset number of historical fused three-dimensional features and the current fused three-dimensional features respectively, to obtain three-dimensional time-series features corresponding to each of the historical fused three-dimensional features; The three-dimensional time series features corresponding to each of the historical fused three-dimensional features are spliced and fused to obtain the current three-dimensional time series features.
7. The universal obstacle detection method according to any one of claims 1 to 5, characterized in that: The performing general obstacle detection on the current three-dimensional time series feature to obtain obstacle information of the current environment includes: Dividing the preset three-dimensional space into a plurality of continuous three-dimensional grids; Based on the current three-dimensional time series features, general obstacle detection is performed on each of the three-dimensional grids to obtain obstacle information of the current environment.
8. A universal obstacle detection device, characterized in that: include: An image module, used to extract features from current environment images respectively acquired by a plurality of image acquisition devices, and obtain current two-dimensional feature maps respectively corresponding to the current environment images; determine three-dimensional image features corresponding to the current environment based on the current two-dimensional feature maps and a preset three-dimensional space, wherein the preset three-dimensional space is constructed based on the current environment; A point cloud module, used to obtain point cloud data corresponding to the current environment, and determine the three-dimensional space features corresponding to the current environment based on the point cloud data; A fusion module, used for fusing the three-dimensional image feature with the three-dimensional space feature to obtain a current fused three-dimensional feature; Determine a current three-dimensional time series feature based on a preset number of historical fused three-dimensional features and the current fused three-dimensional feature; The detection module is used to perform general obstacle detection on the current three-dimensional time series features to obtain obstacle information of the current environment.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the general obstacle detection method according to any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the general obstacle detection method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Three-dimensional target detection method based on point cloud and image feature fusion
CN116310673A
Object detection method, system and equipment based on multi-modal fusion and medium
CN117197626A
Automatic driving obstacle detection method based on multi-view and multi-sensor space-time fusion
CN117368905A
3D target detection system and method based on 4D millimeter wave radar and camera fusion
CN117452396A
Object detection method, system and equipment based on multi-modal fusion and medium
CN117789145A
