BEV image construction method, device and system and storage medium

Constructing BEV features through convolution and spatial cross-attention solves the problem of poor BEV image construction and detection in the existing technology, achieves better global and detailed processing, and improves target detection performance.

CN118780979APending Publication Date: 2024-10-15BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310359672.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-06
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing BEV image construction methods are poor in detail feature reconstruction and small target detection, which affects the overall construction and detection results.

Method used

The first BEV feature is constructed using convolution, and the second BEV feature is constructed through spatial cross-attention, and the two are fused to generate a fused BEV feature image to improve global and local information processing capabilities.

Benefits of technology

It improves the construction and detection effect of BEV images, ensures the global receptive field, enhances detail processing capabilities, and improves target detection performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780979A_ABST
    Figure CN118780979A_ABST
Patent Text Reader

Abstract

The invention discloses a BEV image construction method, device and system and a storage medium, and the method comprises the steps: obtaining a plurality of images in the surrounding environment of a vehicle through a plurality of vehicle-mounted cameras in the driving process of the vehicle; acquiring feature maps corresponding to the plurality of images; constructing a first BEV feature corresponding to the feature map based on a convolution mode, and constructing a second BEV feature corresponding to the feature map based on a spatial cross attention mode; fusing a first BEV feature corresponding to the feature map and a second BEV feature corresponding to the feature map to obtain a fused BEV feature image; and sending the fused BEV feature image to a detection head, so that the detection head performs target detection on the fused BEV feature image to obtain at least one preset target contained in the fused BEV feature image. By adopting the scheme provided by the invention, the generated BEV image not only ensures the global effect, but also improves the detail processing effect, thereby improving the construction and detection effects of the BEV.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a BEV image construction method, device, system and storage medium. Background Art

[0002] BEV (Bird's-Eye-View) is a bird's-eye view centered on vision. BEV perception is to project camera images from multiple perspectives into the same BEV space through a common feature extractor, playing an important role in the field of vehicle-mounted automatic navigation. This construction method has good generalization ability, but the detection effect for small targets is poor. Therefore, the reconstruction effect of detailed features is poor, which affects the overall construction and detection effect of BEV. Therefore, the existing technology still has a lot of room for improvement in the construction and detection effect of BEV. Summary of the invention

[0003] The present application provides a BEV image construction method, device, system and storage medium to improve the construction and detection effects of BEV.

[0004] The present application provides a BEV image construction method, comprising:

[0005] When the vehicle is driving, multiple images of the vehicle's surroundings are acquired through multiple on-board cameras;

[0006] Obtaining feature maps corresponding to the multiple images;

[0007] Constructing a first BEV feature corresponding to the feature map based on a convolution method, and constructing a second BEV feature corresponding to the feature map based on a spatial cross-attention method;

[0008] Fusing a first BEV feature corresponding to the feature map and a second BEV feature corresponding to the feature map to obtain a fused BEV feature image;

[0009] The fused BEV feature image is sent to a detection head, so that the detection head obtains at least one preset target contained in the fused BEV feature image by performing target detection on the fused BEV feature image.

[0010] The beneficial effects of the present application are: during the driving process of the vehicle, multiple images of the vehicle's surrounding environment are obtained through multiple on-board cameras; feature maps corresponding to the multiple images are obtained; the first BEV feature corresponding to the feature map is constructed based on the convolution method to ensure that the perception system can have a good global receptive field, and at the same time, the second BEV feature corresponding to the feature map is constructed based on the spatial cross-attention method to extract local information through the cross-attention method, thereby improving the processing effect of the constructed BEV on details; then, the first BEV feature corresponding to the feature map and the second BEV feature corresponding to the feature map are fused to obtain a fused BEV feature image, and the fused BEV feature image is sent to the detection head, so that the detection head performs target detection on the fused BEV feature image to obtain at least one preset target contained in the fused BEV feature image. Due to the fusion of the convolution method and the cross-attention method, the generated BEV image not only ensures the global effect, but also improves the detail processing effect, thereby improving the construction and detection effect of the BEV.

[0011] In one embodiment, the step of constructing the first BEV feature corresponding to the feature map based on a convolutional method includes:

[0012] Performing feature fusion on the feature map through a view encoder to obtain a first image;

[0013] Converting the first image from an image perspective to a BEV perspective to obtain a second image;

[0014] Perform feature encoding on the second image to obtain the first BEV feature.

[0015] In one embodiment, converting the first image from an image perspective to a BEV perspective to obtain a second image includes:

[0016] Constructing point cloud information corresponding to the first image, and constructing a viewing cone corresponding to the first image by performing dimension upgrading on the first image;

[0017] Performing voxel pooling on the points converted into the ego-vehicle coordinate system and the point cloud information corresponding to the first image, so as to convert the points in the ego-vehicle coordinate system and the point cloud information corresponding to the first image into BEV spatial features;

[0018] The BEV spatial features are fused to generate a second image.

[0019] In one embodiment, constructing the second BEV feature corresponding to the feature map based on the spatial cross attention method includes:

[0020] Extracting spatial features matching the preset BEV query conditions from the feature map through the preset BEV query conditions;

[0021] Calculating three-dimensional image points corresponding to the spatial features;

[0022] Obtain the projection points of the three-dimensional image points on the field of view plane through the parameters of the vehicle-mounted camera;

[0023] Collecting features in the visual field plane within a range with a preset distance as a radius and with the projection point as the center;

[0024] The collected features are aggregated to construct a second BEV feature corresponding to the feature graph.

[0025] In one embodiment, fusing the first BEV feature and the second BEV feature corresponding to the feature image to obtain a fused BEV feature image includes:

[0026] determining a common area corresponding to the first BEV feature and the second BEV feature;

[0027] The same area corresponding to the first BEV feature and the second BEV feature is superimposed to achieve fusion between the first BEV feature and the second BEV feature.

[0028] In one embodiment, determining the same area corresponding to the first BEV feature and the second BEV feature includes:

[0029] Calculating similarities between the first BEV feature and each region of the second BEV feature;

[0030] Regions in the first BEV feature and the second BEV feature where the similarity is greater than a preset similarity are regarded as the same region.

[0031] In one embodiment, obtaining feature maps corresponding to the multiple images includes:

[0032] Sending the multiple images to a convolutional neural network for convolution operation;

[0033] Determine that the convolution operation result output by the convolutional neural network is a feature map corresponding to the multiple images.

[0034] The present application also provides a BEV image construction device, comprising:

[0035] A first acquisition module is used to acquire multiple images of the vehicle's surrounding environment through multiple vehicle-mounted cameras during the vehicle's driving process;

[0036] A second acquisition module, used to acquire feature maps corresponding to the multiple images;

[0037] A construction module, used to construct a first BEV feature corresponding to the feature map based on a convolution method, and to construct a second BEV feature corresponding to the feature map based on a spatial cross-attention method;

[0038] A fusion module, used for fusing the first BEV feature corresponding to the feature map and the second BEV feature corresponding to the feature map to obtain a fused BEV feature image;

[0039] The sending module is used to send the fused BEV feature image to the detection head, so that the detection head can obtain at least one preset target contained in the fused BEV feature image by performing target detection on the fused BEV feature image.

[0040] In one embodiment, the building block comprises:

[0041] A fusion submodule, used for performing feature fusion on the feature map through a view encoder to obtain a first image;

[0042] A conversion submodule, configured to convert the first image from an image perspective to a BEV perspective to obtain a second image;

[0043] The encoding submodule is used to perform feature encoding on the second image to obtain the first BEV feature.

[0044] In one embodiment, the conversion submodule is used to:

[0045] Constructing point cloud information corresponding to the first image, and constructing a viewing cone corresponding to the first image by performing dimension upgrading on the first image;

[0046] The coordinates of the points in the viewing cone are converted using the parameters of the vehicle-mounted camera, so that the points in the viewing cone are correspondingly converted into points in the vehicle's own vehicle coordinate system;

[0047] Performing voxel pooling on the points converted into the ego-vehicle coordinate system and the point cloud information corresponding to the first image, so as to convert the points in the ego-vehicle coordinate system and the point cloud information corresponding to the first image into BEV spatial features;

[0048] The BEV spatial features are fused to generate a second image.

[0049] In one embodiment, the building block further includes:

[0050] An extraction submodule, configured to extract spatial features matching the preset BEV query conditions from the feature map through the preset BEV query conditions;

[0051] A calculation submodule, used for calculating the three-dimensional image points corresponding to the spatial features;

[0052] An acquisition submodule, used to acquire projection points of three-dimensional image points on the field of view plane through vehicle-mounted camera parameters;

[0053] A collection submodule, used for collecting features in the visual field plane within a range with a preset distance as a radius and with the projection point as the center;

[0054] The aggregation submodule is used to aggregate the collected features to construct a second BEV feature corresponding to the feature map.

[0055] In one embodiment, the fusion module includes:

[0056] A first determining submodule, configured to determine a common area corresponding to the first BEV feature and the second BEV feature;

[0057] The superposition submodule is used to superimpose the same area corresponding to the first BEV feature and the second BEV feature to achieve fusion between the first BEV feature and the second BEV feature.

[0058] In one embodiment, the determining submodule is used to:

[0059] Calculating similarities between the first BEV feature and each region of the second BEV feature;

[0060] Regions in the first BEV feature and the second BEV feature where the similarity is greater than a preset similarity are regarded as the same region.

[0061] In one embodiment, the second acquisition module includes:

[0062] An operation submodule, used for sending the multiple images into a convolutional neural network for convolution operation;

[0063] The second determination submodule is used to determine that the convolution operation result output by the convolutional neural network is a feature map corresponding to the multiple images.

[0064] The present application also provides a BEV image construction system, characterized in that it includes:

[0065] at least one processor; and,

[0066] a memory communicatively connected to the at least one processor; wherein,

[0067] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to implement the BEV image construction method described in any of the above embodiments.

[0068] The present application also provides a computer-readable storage medium, characterized in that when the instructions in the storage medium are executed by a processor corresponding to the BEV image construction system, the BEV image construction system can implement the BEV image construction method recorded in any of the above embodiments.

[0069] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings.

[0070] The technical solution of the present application is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] The accompanying drawings are used to provide a further understanding of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings:

[0072] Figure 1 This is a flow chart of a BEV image construction method in one embodiment of the present application;

[0073] Figure 2 This is a flowchart of a BEV image construction method in another embodiment of the present application;

[0074] Figure 3 This is a structural diagram of a BEV image construction device in one embodiment of the present application;

[0075] Figure 4 Schematic diagram of the hardware structure of a BEV image construction system in one embodiment of the present application. DETAILED DESCRIPTION

[0076] The preferred embodiments of the present application are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application and are not used to limit the present application.

[0077] Existing BEV perception methods often focus on important areas in the image and ignore unimportant areas. Therefore, although they can bring better global receptive fields, due to the neglect of local feature extraction, the existing BEV perception lacks the ability to extract local information, and the reconstruction effect of detail features is poor, which affects the overall construction and detection effect of BEV. Therefore, the present application provides a BEV image construction method, which first completes the extraction of multi-perspective feature maps through CNN, and then uses two different methods to realize BEV feature generation, taking into account the global receptive field and local receptive field of BEV perception, and finally the two different BEV features are fused and sent to the detection head to realize target detection. Since this method can obtain the advantages of two different BEV feature generation, better BEV features can be obtained, thereby improving the performance of target detection.

[0078] Figure 1 Flow chart of a BEV image construction method in one embodiment of the present application, as shown in FIG. Figure 1 As shown, the method can be implemented as the following steps S101-S105:

[0079] In step S101, during the driving of the vehicle, multiple images of the vehicle's surrounding environment are acquired through multiple vehicle-mounted cameras;

[0080] In step S102, feature maps corresponding to the multiple images are obtained;

[0081] In step S103, a first BEV feature corresponding to the feature map is constructed based on a convolution method, and a second BEV feature corresponding to the feature map is constructed based on a spatial cross-attention method;

[0082] In step S104, the first BEV feature corresponding to the feature map and the second BEV feature corresponding to the feature map are fused to obtain a fused BEV feature image;

[0083] In step S105, the fused BEV feature image is sent to a detection head, so that the detection head performs target detection on the fused BEV feature image to obtain at least one preset target contained in the fused BEV feature image.

[0084] In the present application, in order to complete the BEV image construction of the vehicle's environment, multiple images of the vehicle's surroundings are acquired through multiple on-board cameras during the vehicle's driving process.

[0085] Obtain feature maps corresponding to the multiple images. Since the vehicle-mounted camera acquires multiple frames of images continuously, in order to ensure the construction of the environment where the vehicle is located at the same time, extract the images acquired by multiple vehicle-mounted cameras at the same time. There are many ways to extract features from multiple images. Figure 2 FIG. 1 is a flow chart of a BEV image construction method in another embodiment of the present application. Figure 2 As shown, in this embodiment, the multi-view feature map extraction is completed by CNN (Convolutional Neural Network). Specifically, the multiple images are sent to the convolutional neural network for convolution operation; and the convolution operation results output by the convolutional neural network are determined to be the feature maps corresponding to the multiple images.

[0086] The first BEV feature corresponding to the feature map is constructed based on a convolution method, and the second BEV feature corresponding to the feature map is constructed based on a spatial cross-attention method. Figure 2 As shown, after the feature map extraction is completed through CNN, in this application, BEV feature generation is achieved in two different ways:

[0087] The left branch is based on the convolution method to construct the first BEV feature corresponding to the feature map. Since it can handle targets of different sizes and shapes, it has better generalization performance, thereby ensuring that the perception system can have a good global receptive field. Specifically, after obtaining the feature map, in order to maximize the extraction of image data of the same target collected by multiple cameras, the feature map is analyzed, processed and integrated through the perspective encoder to obtain the first image. After obtaining the first image, the projection format of the first image is converted through the perspective transformer (i.e., the perspective transformer), that is, the first image is mapped to the BEV bird's-eye view coordinates to obtain the second image in the BEV bird's-eye view format to achieve field of view conversion. For example, the point cloud information corresponding to the first image can be constructed, and the first image can be upgraded to construct the cone corresponding to the first image; then, the points in the cone are projected to the vehicle coordinate system according to the internal and external parameters of the camera; and then the BEV spatial features are constructed by voxel pooling through the transformed points and point cloud information of the vehicle coordinate system, and the BEV spatial features are fused to generate the second image. Finally, the second image is feature encoded to obtain the first BEV feature.

[0088] The right branch is composed of a spatial cross-attention module and a feedforward neural network. By focusing the image attention on local spatial features, the monitoring effect of small targets is improved, that is, the detail detection effect of the BEV image is improved. First, the spatial features matching the preset BEV query conditions are extracted from the feature map through the preset BEV query conditions; in order to gather spatial information, a predefined grid-shaped BEV is designed with a spatial cross-attention. Each BEV query extracts spatial features from the area of ​​interest in the camera view, that is, the image is processed through the spatial cross-attention module, and then the local spatial features are extracted through the attention mechanism. Then, based on the extracted spatial features, the depth calculation is added to obtain the corresponding three-dimensional image points, and by combining the parameters of the on-board camera, the projection points of the three-dimensional image points on the field of view plane in the vehicle's own coordinate system can be obtained. Finally, based on the projection point as the center, the features in the field of view plane are collected within the range of the preset distance as the radius, and the collected features are aggregated to construct the second BEV feature corresponding to the feature map.

[0089] The first BEV feature corresponding to the feature map and the second BEV feature corresponding to the feature map are fused to obtain a fused BEV feature image; specifically, the similarity between each region of the first BEV feature and the second BEV feature is calculated; the regions of the first BEV feature and the second BEV feature whose similarity is greater than a preset similarity are the same region; the same regions corresponding to the first BEV feature and the second BEV feature are superimposed to achieve the fusion between the first BEV feature and the second BEV feature. In the present application, in order to maintain the consistency of the image, different weights are assigned to the first BEV feature and the second BEV feature. Specifically, a trainable attention module (Transformer model) can be used to calculate the correlation between the two BEV features, and then the calculated weight is applied to the weighted sum of the two BEV features to obtain a new BEV feature map.

[0090] Finally, the fused BEV feature image is sent to the detection head, so that the detection head can obtain at least one preset target contained in the fused BEV feature image by performing target detection on the fused BEV feature image. Since the BEV feature image is obtained in two ways, better BEV features can be obtained, thereby improving the detection effect of the target.

[0091] The beneficial effects of the present application are: during the driving process of the vehicle, multiple images of the vehicle's surrounding environment are obtained through multiple on-board cameras; feature maps corresponding to the multiple images are obtained; the first BEV feature corresponding to the feature map is constructed based on the convolution method to ensure that the perception system can have a good global receptive field, and at the same time, the second BEV feature corresponding to the feature map is constructed based on the spatial cross-attention method to extract local information through the cross-attention method, thereby improving the processing effect of the constructed BEV on details; then, the first BEV feature corresponding to the feature map and the second BEV feature corresponding to the feature map are fused to obtain a fused BEV feature image, and the fused BEV feature image is sent to the detection head, so that the detection head performs target detection on the fused BEV feature image to obtain at least one preset target contained in the fused BEV feature image. Due to the fusion of the convolution method and the cross-attention method, the generated BEV image not only ensures the global effect, but also improves the detail processing effect, thereby improving the construction and detection effect of the BEV.

[0092] In one embodiment, in the above step S103, the first BEV feature corresponding to the feature map is constructed based on the convolution method, which can be implemented as the following steps A1-A3:

[0093] In step A1, feature fusion is performed on the feature map through a view encoder to obtain a first image;

[0094] In step A2, the first image is converted from an image perspective to a BEV perspective to obtain a second image;

[0095] In step A3, feature encoding is performed on the second image to obtain the first BEV feature.

[0096] In this embodiment, the feature map is fused through the view encoder. After obtaining the feature map, in order to maximize the extraction of image data of the same target collected by multiple cameras, it is necessary to analyze, process and integrate the feature map through the view encoder to obtain a first image, and then the information of multiple images can be complemented to generate a high-quality image.

[0097] The first image is converted from the image perspective to the BEV perspective to obtain the second image. Specifically, after obtaining the first image, the projection format of the image needs to be converted through the perspective transformer (i.e., the perspective converter), that is, the first image is mapped to the BEV bird's-eye view coordinates to obtain the image in the BEV bird's-eye view format to achieve the field of view conversion. There are many ways to implement the conversion process. For example, the depth estimation algorithm in LSS is used to first construct the point cloud information corresponding to the first image, and then the first image is dimensionally upgraded to construct the cone to predict the depth of the image; then, the points in the cone are projected to the vehicle coordinate system according to the internal and external parameters of the camera; and then the BEV spatial features are constructed by Voxel Pooling through the transformed points and point cloud information of the vehicle coordinate system, and the BEV spatial features are fused to generate the second image.

[0098] Finally, the second image is feature encoded to obtain the first BEV feature. The function of the BEV encoder is to feature encode the BEV to capture spatial features of different scales and directions, while compressing the dimensions of the BEV feature map, improving the computational efficiency of the model and reducing the number of model parameters, and generating more expressive BEV features. These feature representations can be used for subsequent target detection tasks.

[0099] The beneficial effect of this embodiment is that the first BEV feature corresponding to the feature map is constructed based on the convolution method, which can process targets of different sizes and shapes, and has better generalization performance, thereby ensuring that the perception system can have a better global receptive field.

[0100] In one embodiment, the above step A2 may be implemented as the following steps A21-A24:

[0101] In step A21, point cloud information corresponding to the first image is constructed, and a viewing cone corresponding to the first image is constructed by performing dimension upscaling on the first image;

[0102] In step A22, the coordinates of the points in the viewing cone are converted using the parameters of the vehicle-mounted camera, so that the points in the viewing cone are correspondingly converted into points in the vehicle coordinate system;

[0103] In step A23, voxel pooling is performed on the points converted into the ego-vehicle coordinate system and the point cloud information corresponding to the first image, so as to convert the points in the ego-vehicle coordinate system and the point cloud information corresponding to the first image into BEV spatial features;

[0104] In step A24, the BEV spatial features are fused to generate a second image.

[0105] Construct the point cloud information corresponding to the first image, and construct the visual cone corresponding to the first image by upgrading the dimension of the first image; the visual cone is the space visible to the camera, which looks like a pyramid with the top cut off. For the camera, in order to prevent the object from being too close to the camera, a near clipping plane is set; at the same time, in order to prevent the object from being too far away from the camera and not visible, a far clipping plane is set; the four lines diverging from the camera and the two clipping planes form a space, which is the visual cone of the camera. After obtaining the first image, in order to convert the first image into an image in the BEV bird's-eye view format, a preset algorithm, such as the depth estimation algorithm in LSS, is used to explicitly estimate the depth distribution of the feature points after the image plane is downsampled for each camera image, predict the depth of the image, and then realize the dimensionality upgrade of the first image to form the corresponding visual cone.

[0106] The coordinates of the points in the view cone are transformed using the parameters of the vehicle-mounted camera so that the points in the view cone are correspondingly transformed into points in the vehicle's own vehicle coordinate system; in order to match the points in the image with the current vehicle, a view cone is generated, and the points in the view cone are projected to the own vehicle coordinate system based on the camera's internal and external parameters.

[0107] Voxel pooling is performed on the points converted into the ego-vehicle coordinate system and the point cloud information corresponding to the first image to convert the points in the ego-vehicle coordinate system and the point cloud information corresponding to the first image into BEV spatial features; different image features are aggregated into a complete BEV feature by voxel pooling the points converted into the ego-vehicle coordinate system and the point cloud information. Specifically, the ego-vehicle space is divided into several evenly distributed grids, and then the image features are summarized in the corresponding grids, for example, voxel pooling is performed on multiple cone points in each grid to reduce the dimension to obtain a bird's-eye view, which constitutes the corresponding BEV spatial features.

[0108] Finally, the BEV spatial features are fused to generate a second image.

[0109] In one embodiment, in the above step S103, the second BEV feature corresponding to the feature map is constructed based on the spatial cross attention method, which can be implemented as the following steps B1-B5:

[0110] In step B1, a spatial feature matching the preset BEV query condition is extracted from the feature map through the preset BEV query condition;

[0111] In step B2, the three-dimensional image points corresponding to the spatial features are calculated;

[0112] In step B3, the projection points of the three-dimensional image points on the field of view plane are obtained through the vehicle-mounted camera parameters;

[0113] In step B4, the features in the visual field plane are collected within a range with a preset distance as a radius and the projection point as the center;

[0114] In step B5, the collected features are aggregated to construct a second BEV feature corresponding to the feature map.

[0115] In this embodiment, if Figure 2 As shown, in the right branch, it is composed of a spatial cross-attention module and a feedforward neural network. First, the spatial features matching the preset BEV query conditions are extracted from the feature map through the preset BEV query conditions; in order to gather spatial information, a predefined grid-shaped BEV is designed with a spatial cross-attention. Each BEV query extracts spatial features from the area of ​​interest in the camera view, that is, the image is processed through the spatial cross-attention module, and then the local spatial features are extracted through the attention mechanism. Then, based on the extracted spatial features, the depth calculation is added to obtain the corresponding three-dimensional stereo image points, and by combining the on-board camera parameters, the projection points of the three-dimensional stereo image points on the field of view plane in the vehicle's own coordinate system can be obtained. Finally, based on the projection point as the center and the preset distance as the radius, the features in the field of view plane are collected, and the collected features are aggregated to construct the second BEV feature corresponding to the feature map.

[0116] The beneficial effect of this embodiment is that: through the spatial attention module, the spatial features of part of the image area are pre-queried, so that the image attention is focused on the local spatial features, which improves the monitoring effect of small targets, that is, improves the detail detection effect of the BEV image.

[0117] In one embodiment, the above step S104 may be implemented as the following steps C1-C2:

[0118] In step C1, determining a common area corresponding to the first BEV feature and the second BEV feature;

[0119] In step C2, the same area corresponding to the first BEV feature and the second BEV feature is superimposed to achieve fusion between the first BEV feature and the second BEV feature.

[0120] In this embodiment, after obtaining the first BEV feature and the second BEV feature, in order to complement the advantages of the two BEV images, the two BEV images need to be fused. Therefore, it is first necessary to determine the same area corresponding to the first BEV feature and the second BEV feature. Specifically, since the constructed BEV images have the same coordinate system, the first BEV feature and the second BEV feature are divided into several areas of the same size in the same coordinate system, and the similarity of different areas of the first BEV feature and the second BEV feature is calculated; when the similarity is greater than a preset value, it means that the two images correspond to the same area or the same target, and then the two images need to be fused.

[0121] Then, the same area corresponding to the first BEV feature and the second BEV feature is superimposed to achieve the fusion between the first BEV feature and the second BEV feature. The image fusion can be directly superimposed on the two BEV features. In the present application, in order to maintain the consistency of the image, different weights are assigned to the first BEV feature and the second BEV feature. Specifically, a trainable attention module (Transformer model) can be used to calculate the correlation between the two BEV features, and then the calculated weight is applied to the weighted sum of the two BEV features to obtain a new BEV feature map.

[0122] In one embodiment, the above step C1 can be implemented as the following steps C21-C22:

[0123] In step C21, the similarity between each region of the first BEV feature and the second BEV feature is calculated;

[0124] In step C22, the regions in the first BEV feature and the second BEV feature whose similarity is greater than a preset similarity are regarded as the same region.

[0125] Specifically, the BEV feature is a multidimensional matrix corresponding to the BEV feature image, and each element corresponds to the coordinates of a feature point in the BEV image. Therefore, when calculating the similarity between the first BEV feature and the second BEV feature, the similarity of multiple adjacent matrix elements representing the same BEV image area in the matrix can be compared. For example, among 20 adjacent matrix elements, there are 19 identical elements, then it can be determined that the similarity of the BEV image areas corresponding to these 20 adjacent matrix elements is 95%.

[0126] In one embodiment, the above step S102 may be implemented as the following steps D1-D2:

[0127] In step D1, the multiple images are sent to a convolutional neural network for convolution operation;

[0128] In step D2, it is determined that the convolution operation result output by the convolutional neural network is a feature map corresponding to the multiple images.

[0129] Figure 3 : is a structural diagram of a BEV image construction device in one embodiment of the present application, such as Figure 3 As shown, the device comprises:

[0130] The first acquisition module 301 is used to acquire multiple images of the vehicle's surrounding environment through multiple vehicle-mounted cameras during the vehicle's driving process;

[0131] A second acquisition module 302 is used to acquire feature maps corresponding to the multiple images;

[0132] A construction module 303 is used to construct a first BEV feature corresponding to the feature map based on a convolution method, and to construct a second BEV feature corresponding to the feature map based on a spatial cross-attention method;

[0133] A fusion module 304 is used to fuse the first BEV feature corresponding to the feature map and the second BEV feature corresponding to the feature map to obtain a fused BEV feature image;

[0134] The sending module 305 is used to send the fused BEV feature image to the detection head, so that the detection head can obtain at least one preset target contained in the fused BEV feature image by performing target detection on the fused BEV feature image.

[0135] In one embodiment, the building block comprises:

[0136] A fusion submodule, used for performing feature fusion on the feature map through a view encoder to obtain a first image;

[0137] A conversion submodule, configured to convert the first image from an image perspective to a BEV perspective to obtain a second image;

[0138] The encoding submodule is used to perform feature encoding on the second image to obtain the first BEV feature.

[0139] In one embodiment, the conversion submodule is used to:

[0140] Constructing point cloud information corresponding to the first image, and constructing a viewing cone corresponding to the first image by performing dimension upgrading on the first image;

[0141] The coordinates of the points in the viewing cone are converted using the parameters of the vehicle-mounted camera, so that the points in the viewing cone are correspondingly converted into points in the vehicle's own vehicle coordinate system;

[0142] Performing voxel pooling on the points converted into the ego-vehicle coordinate system and the point cloud information corresponding to the first image, so as to convert the points in the ego-vehicle coordinate system and the point cloud information corresponding to the first image into BEV spatial features;

[0143] The BEV spatial features are fused to generate a second image.

[0144] In one embodiment, the building block further includes:

[0145] An extraction submodule, configured to extract spatial features matching the preset BEV query conditions from the feature map through the preset BEV query conditions;

[0146] A calculation submodule, used for calculating the three-dimensional image points corresponding to the spatial features;

[0147] An acquisition submodule, used to acquire projection points of three-dimensional image points on the field of view plane through vehicle-mounted camera parameters;

[0148] A collection submodule, used for collecting features in the visual field plane within a range with a preset distance as a radius and with the projection point as the center;

[0149] The aggregation submodule is used to aggregate the collected features to construct a second BEV feature corresponding to the feature map.

[0150] In one embodiment, the fusion module includes:

[0151] A first determining submodule, configured to determine a common area corresponding to the first BEV feature and the second BEV feature;

[0152] The superposition submodule is used to superimpose the same area corresponding to the first BEV feature and the second BEV feature to achieve fusion between the first BEV feature and the second BEV feature.

[0153] In one embodiment, the determining submodule is used to:

[0154] Calculating similarities between the first BEV feature and each region of the second BEV feature;

[0155] Regions in the first BEV feature and the second BEV feature where the similarity is greater than a preset similarity are regarded as the same region.

[0156] In one embodiment, the second acquisition module includes:

[0157] An operation submodule, used for sending the multiple images into a convolutional neural network for convolution operation;

[0158] The second determination submodule is used to determine that the convolution operation result output by the convolutional neural network is a feature map corresponding to the multiple images.

[0159] Figure 4 FIG. 1 is a schematic diagram of the hardware structure of a BEV image construction system in one embodiment of the present application. Figure 4 As shown, the BEV image construction system includes:

[0160] at least one processor 420; and,

[0161] A memory 404 in communication with the at least one processor 420; wherein,

[0162] The memory 404 stores instructions that can be executed by the at least one processor 420 , and the instructions are executed by the at least one processor 420 to implement the BEV image construction method described in any of the above embodiments.

[0163] Reference Figure 4 The BEV image construction system 400 may include one or more of the following components: a processing component 402 , a memory 404 , a power component 406 , a multimedia component 408 , an audio component 410 , an input / output (I / O) interface 412 , a sensor component 414 , and a communication component 416 .

[0164] The processing component 402 generally controls the overall operation of the BEV image construction system 400. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 402 may include one or more modules to facilitate the interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate the interaction between the multimedia component 408 and the processing component 402.

[0165] The memory 404 is configured to store various types of data to support the operation of the BEV image construction system 400. Examples of such data include instructions for any application or method operating on the BEV image construction system 400, such as text, pictures, videos, etc. The memory 404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0166] The power supply assembly 406 provides power to various components of the BEV image construction system 400. The power supply assembly 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the onboard control system 400.

[0167] The multimedia component 408 includes a screen that provides an output interface between the BEV image construction system 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 may also include a front camera and / or a rear camera. When the BEV image construction system 400 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.

[0168] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC), and when the BEV image construction system 400 is in an operating mode, such as an alarm mode, a recording mode, a voice recognition mode, and a voice output mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 404 or sent via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting an audio signal.

[0169] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0170] The sensor assembly 414 includes one or more sensors for providing various aspects of status assessment for the BEV image construction system 400. For example, the sensor assembly 414 may include a sound sensor. In addition, the sensor assembly 414 may detect the open / closed state of the BEV image construction system 400, the relative positioning of the components, such as the display and keypad of the BEV image construction system 400, and the sensor assembly 414 may also detect the operating state of the BEV image construction system 400 or a component of the BEV image construction system 400, such as the operating state of the wind plate, the structural state, the operating state of the discharge scraper, etc., the BEV image construction system 400 orientation or acceleration / deceleration and the temperature change of the BEV image construction system 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, a material stacking thickness sensor or a temperature sensor.

[0171] The communication component 416 is configured to enable the BEV image construction system 400 to provide the ability to communicate with other devices and cloud platforms in a wired or wireless manner. The BEV image construction system 400 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0172] In an exemplary embodiment, the BEV image construction system 400 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the BEV image construction method described in any of the above embodiments.

[0173] The present application also provides a computer-readable storage medium, characterized in that when the instructions in the storage medium are executed by a processor corresponding to the BEV image construction system, the BEV image construction system can implement the BEV image construction method recorded in any of the above embodiments.

[0174] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.

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

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

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

[0178] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A BEV image construction method, characterized in that: include: When the vehicle is driving, multiple images of the vehicle's surroundings are acquired through multiple on-board cameras; Obtaining feature maps corresponding to the multiple images; Constructing a first BEV feature corresponding to the feature map based on a convolution method, and constructing a second BEV feature corresponding to the feature map based on a spatial cross-attention method; Fusing a first BEV feature corresponding to the feature map and a second BEV feature corresponding to the feature map to obtain a fused BEV feature image; The fused BEV feature image is sent to a detection head, so that the detection head obtains at least one preset target contained in the fused BEV feature image by performing target detection on the fused BEV feature image.

2. The method according to claim 2, characterized in that The step of constructing the first BEV feature corresponding to the feature map based on a convolutional method includes: Performing feature fusion on the feature map through a view encoder to obtain a first image; Converting the first image from an image perspective to a BEV perspective to obtain a second image; Perform feature encoding on the second image to obtain the first BEV feature.

3. The method according to claim 2, characterized in that The converting the first image from an image perspective to a BEV perspective to obtain a second image includes: Constructing point cloud information corresponding to the first image, and constructing a viewing cone corresponding to the first image by performing dimension upgrading on the first image; The coordinates of the points in the viewing cone are converted using the parameters of the vehicle-mounted camera, so that the points in the viewing cone are correspondingly converted into points in the vehicle's own vehicle coordinate system; Performing voxel pooling on the points converted into the ego-vehicle coordinate system and the point cloud information corresponding to the first image, so as to convert the points in the ego-vehicle coordinate system and the point cloud information corresponding to the first image into BEV spatial features; The BEV spatial features are fused to generate a second image.

4. The method according to claim 1, characterized in that The second BEV feature corresponding to the feature map is constructed based on the spatial cross attention method, including: Extracting spatial features matching the preset BEV query conditions from the feature map through the preset BEV query conditions; Calculating three-dimensional image points corresponding to the spatial features; Obtain the projection points of the three-dimensional image points on the field of view plane through the parameters of the vehicle-mounted camera; Collecting features in the visual field plane within a range with a preset distance as a radius and with the projection point as the center; The collected features are aggregated to construct a second BEV feature corresponding to the feature graph.

5. The method according to claim 1, characterized in that The step of fusing the first BEV feature and the second BEV feature corresponding to the feature image to obtain a fused BEV feature image includes: determining a common area corresponding to the first BEV feature and the second BEV feature; The same area corresponding to the first BEV feature and the second BEV feature is superimposed to achieve fusion between the first BEV feature and the second BEV feature.

6. The method according to claim 5, characterized in that The determining the same area corresponding to the first BEV feature and the second BEV feature includes: Calculating similarities between the first BEV feature and each region of the second BEV feature; Regions in the first BEV feature and the second BEV feature where the similarity is greater than a preset similarity are regarded as the same region.

7. The method according to claim 1, characterized in that The obtaining of feature maps corresponding to the multiple images includes: Sending the multiple images to a convolutional neural network for convolution operation; Determine that the convolution operation result output by the convolutional neural network is a feature map corresponding to the multiple images.

8. A BEV image construction device, characterized in that: include: A first acquisition module is used to acquire multiple images of the vehicle's surrounding environment through multiple vehicle-mounted cameras during the vehicle's driving process; A second acquisition module, used to acquire feature maps corresponding to the multiple images; A construction module, used to construct a first BEV feature corresponding to the feature map based on a convolution method, and to construct a second BEV feature corresponding to the feature map based on a spatial cross-attention method; A fusion module, used for fusing the first BEV feature corresponding to the feature map and the second BEV feature corresponding to the feature map to obtain a fused BEV feature image; The sending module is used to send the fused BEV feature image to the detection head, so that the detection head can obtain at least one preset target contained in the fused BEV feature image by performing target detection on the fused BEV feature image.

9. A BEV image construction system, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to implement the BEV image construction method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor corresponding to the BEV image construction system, the BEV image construction system can implement the BEV image construction method as described in any one of claims 1 to 7.

Citation Information

Cited By

  • Image processing method, readable storage medium, program product and vehicle-mounted equipment

    CN120014605A

  • Variable compute image backbones

    US12579802B1