Monocular three-dimensional target detection method and system fusing object imaging

By integrating object imaging technology, redundant features are extracted and filtered, and target features of interest are strengthened, which solves the problem of redundant information interference in monocular 3D target detection and improves detection performance and speed.

CN118629027APending Publication Date: 2024-09-10SOUTH CHINA NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410753134.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Due to the interference of redundant information in complex traffic road scenes, monocular 3D target detection results in slow model inference speed and poor performance. Existing methods have insufficient robustness and generalization and cannot achieve fast and accurate screening of regions of interest.

Method used

Using the method of fusion object imaging, the first feature map is generated through feature extraction and compression coding processing, two-dimensional target detection is performed to obtain two-dimensional frame position information, redundant feature filtering and target object feature extraction are performed, and feature fusion processing is performed, using the target The object imaging network reconstructs the feature map to reduce the amount of calculation and enhance the features of the target of interest.

Benefits of technology

It improves the performance and speed of monocular 3D target detection, reduces the amount of calculation, enhances the model's feature extraction capability for targets of interest, and improves the accuracy and robustness of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629027A
    Figure CN118629027A
Patent Text Reader

Abstract

The invention discloses a monocular three-dimensional target detection method and system fused with object imaging, and the method comprises the steps: carrying out the feature extraction and compression coding processing of an input monocular image, and obtaining a first feature map; performing two-dimensional target detection on the first feature map to obtain two-dimensional frame position information of the target object in the monocular image; according to the two-dimensional frame position information, redundant feature filtering and target object feature extraction processing are carried out on the region of interest of the first feature map, and a second feature map is obtained; performing feature fusion processing on the second feature map to obtain a third feature map; according to the two-dimensional frame position information, a target object imaging network is adopted to reconstruct the third feature map, and a target imaging result is obtained; and obtaining a target detection result according to the target imaging result. By filtering useless features and enhancing the features of the interested target, the calculation amount is reduced, the performance and speed of monocular three-dimensional target detection are improved, and the method can be widely applied to the technical field of target detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of target detection technology, and in particular to a monocular three-dimensional target detection method and system that integrates object imaging. Background Art

[0002] Monocular 3D object detection in autonomous driving scenarios aims to quickly and accurately detect obstacle targets in complex traffic road scenes through a monocular camera, and determine information including its category, three-dimensional coordinates in the camera coordinate system, and direction angle.

[0003] At present, the performance of monocular 3D object detection is heavily dependent on the performance of the monocular depth estimation part. Sufficient and accurate depth information helps to improve the detection performance of 3D tasks. However, since the traditional imaging method is passive and indiscriminate imaging, useless redundant information has always existed at the beginning of data capture. These redundant information are input into the feature extraction backbone of the model together with the effective information, resulting in the output feature map itself containing a large number of redundant features, and causing interference to the subsequent feature extraction, feature fusion, and final 3D detection based on the feature map, increasing the amount of calculation required for the operation, burdening the model reasoning, and slowing down the reasoning speed of the model. In addition, there is a large amount of noise in the redundant information, which seriously interferes with the model learning the features of the target of interest, increases the difficulty of model training, hinders the convergence of the model, and seriously affects the performance of the model. Therefore, it is very necessary and effective to screen the region of interest, but the current method of screening the region of interest is relatively rough, which can only screen out the approximate range of the object of interest, and cannot achieve fast and accurate filtering. In addition, the method used has poor robustness and generalization, and is highly dependent on the scene, which also affects the performance of monocular 3D object detection. Summary of the invention

[0004] The main purpose of the embodiments of the present application is to propose a monocular three-dimensional target detection method and system that integrates object imaging, aiming to achieve faster and better monocular 3D target detection.

[0005] To achieve the above-mentioned purpose, an embodiment of the present application provides a monocular three-dimensional target detection method fused with object imaging, the method comprising:

[0006] Performing feature extraction and compression encoding processing on the input monocular image to obtain a first feature map;

[0007] Performing two-dimensional target detection on the first feature map to obtain two-dimensional frame position information of the target object in the monocular image;

[0008] According to the two-dimensional frame position information, redundant feature filtering and target object feature extraction processing are performed on the region of interest of the first feature map to obtain a second feature map;

[0009] Performing feature fusion processing on the second feature map to obtain a third feature map;

[0010] According to the two-dimensional frame position information, the third feature map is reconstructed using a target object imaging network to obtain a target imaging result;

[0011] According to the target imaging result, a target detection result is obtained.

[0012] In some embodiments, the step of extracting features and performing compression coding on the input monocular image to obtain a first feature map includes:

[0013] A lightweight network based on a deep structure is used to extract features from the input monocular image and generate multi-scale feature maps with five different resolutions.

[0014] Using a deep hierarchical aggregation network with upsampling function to integrate the multi-scale feature maps to obtain a first detail feature map and a first abstract feature map;

[0015] The first detail feature map and the first abstract feature map are integrated into a first feature map.

[0016] In some embodiments, performing two-dimensional target detection on the first feature map to obtain two-dimensional frame position information of the target object in the monocular image includes:

[0017] Performing two-dimensional target detection on the first abstract feature map in the first feature map to obtain a two-dimensional heat map, a two-dimensional offset, and a two-dimensional size of the target;

[0018] The two-dimensional heat map, the two-dimensional offset, and the two-dimensional size are integrated into two-dimensional frame position information.

[0019] In some embodiments, performing feature fusion processing on the second feature map to obtain a third feature map includes:

[0020] Performing a first processing on the first detail feature map and the first abstract feature map in the second feature map to obtain a second detail feature map and a second abstract feature map; wherein the first processing includes convolution processing, batch normalization processing, and activation processing;

[0021] Performing a second processing on the second detail feature map and the second abstract feature map to obtain a third detail feature map and a third abstract feature map; wherein the second processing includes layer normalization processing, window division processing and linear projection;

[0022] Using the third abstract feature map as an autonomous query and the third detail feature map as a key-value pair, performing multi-head self-attention processing and multi-layer perceptron processing to obtain a converged feature map;

[0023] The converged feature map, the second detail feature map and the third detail feature map are fused to obtain a third feature map.

[0024] In some embodiments, in the step of reconstructing the third feature map using a target object imaging network according to the two-dimensional frame position information to obtain a target imaging result, the working steps of the target object imaging network include:

[0025] Performing convolution processing on the third feature map through a combination structure of a first convolution layer and an activation function to obtain a fourth feature map;

[0026] Performing a first feature channel number transformation process on the fourth feature map to obtain a fifth feature map;

[0027] Performing upsampling processing on the fifth feature map to obtain a sixth feature map containing detail feature information of the target object;

[0028] Performing a second feature channel number conversion process on the sixth feature map to obtain a seventh feature map;

[0029] The information of all channels in the seventh feature map is integrated through the convolution layer to obtain the target imaging result.

[0030] In some embodiments, the step of training the target object imaging network includes:

[0031] Get the two-dimensional box information annotated in the training data set;

[0032] Determining a position of a target object in an initial training image according to the two-dimensional frame information, and intercepting the target object from the training image to obtain a first training image;

[0033] Performing redundant background filtering on the first training image to obtain a second training image;

[0034] Performing a bilinear interpolation operation on the second training image to obtain a training label image;

[0035] Reconstructing the initial training image through the target object imaging network to obtain a plurality of reconstructed images containing only the target object;

[0036] Calculating the loss value of the reconstructed image and the training label image according to a preset loss function;

[0037] Parameters of the target object imaging network are adjusted according to the loss value.

[0038] In some embodiments, in the step of calculating the loss value of the reconstructed image and the training label map according to a preset loss function, the loss function is:

[0039]

[0040] in, Represents the reconstructed image S and the training label map The loss value between ; SmoothL1loss() represents the regression loss; S i,j Represents the pixel value at the index position of the i-th row and j-th column in the reconstructed image S; Represents the training label map The pixel value at the index position of the i-th row and j-th column in ; m represents the length of the image; n represents the width of the image.

[0041] To achieve the above purpose, another aspect of the embodiment of the present application provides a monocular three-dimensional target detection system fused with object imaging, the system comprising:

[0042] The first module is used to perform feature extraction and compression coding processing on the input monocular image to obtain a first feature map;

[0043] A second module is used to perform two-dimensional target detection on the first feature map to obtain two-dimensional frame position information of the target object in the monocular image;

[0044] A third module is used to perform redundant feature filtering and target object feature extraction processing on the region of interest of the first feature map according to the two-dimensional frame position information to obtain a second feature map;

[0045] A fourth module is used to perform feature fusion processing on the second feature map to obtain a third feature map;

[0046] A fifth module is used to reconstruct the third feature map using a target object imaging network according to the two-dimensional frame position information to obtain a target imaging result;

[0047] The sixth module is used to obtain a target detection result according to the target imaging result.

[0048] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above-mentioned method when executing the computer program.

[0049] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.

[0050] The embodiments of the present application include at least the following beneficial effects: The present application provides a monocular three-dimensional target detection method and system for fused object imaging, which processes the monocular image into a second feature map about the target of interest based on the two-dimensional frame position information of the target object in the monocular image, and then performs feature fusion processing on the second feature map. Through such a post-fusion method, the amount of calculation brought about by the fusion is reduced, the filtering of useless features and the enhancement of the features of the target of interest are achieved, and the performance and speed of the monocular three-dimensional target detection process are further improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The accompanying drawings are used to provide further understanding of the technical solution 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 technical solution of the present application and do not constitute a limitation on the technical solution of the present application.

[0052] Figure 1 It is a step diagram of a monocular three-dimensional target detection method for fusion object imaging provided in an embodiment of the present application;

[0053] Figure 2 This is an overall flow chart of a monocular three-dimensional target detection with fusion object imaging provided in an embodiment of the present application;

[0054] Figure 3 is a schematic diagram of the structure of the DAAM module provided in an embodiment of the present application;

[0055] Figure 4 is a calculation flow chart of multi-head attention provided in an embodiment of the present application;

[0056] Figure 5 It is a schematic diagram of the model architecture of the DAA-D model provided in the embodiment of the present application;

[0057] Figure 6 is a schematic diagram of the structure of the feature extraction backbone provided in an embodiment of the present application;

[0058] Figure 7 is a schematic diagram of target object imaging provided by an embodiment of the present application;

[0059] Figure 8 is the original road scene graph provided by the embodiment of the present application;

[0060] Fig. 9 It is a car category object imaging label map provided in an embodiment of the present application;

[0061] Fig.10 This is a diagram of the overall architecture of the common feature extraction backbone for implementing compression coding provided by the embodiment of the present application;

[0062] Fig.11 This is a flow chart of the traditional fusion method provided in the embodiment of the present application;

[0063] Fig.12 is a flow chart of the post-fusion method provided in the embodiment of the present application;

[0064] Fig.13 is a structural diagram of a reconstruction decoding module provided in an embodiment of the present application;

[0065] Fig.14 This is a flow chart of making a target object imaging label provided by an embodiment of the present application;

[0066] Fig.15 is a flowchart of making an obscured target label provided by an embodiment of the present application;

[0067] Fig.16 is a training flow chart of the OI-DAAD model provided in an embodiment of the present application;

[0068] Fig.17 is a schematic diagram of the reconstruction result and the corresponding binary mask provided in an embodiment of the present application;

[0069] Fig.18 is a schematic diagram of the bilinear interpolation transformation size provided in an embodiment of the present application;

[0070] Fig.19 is a feature enhancement flow chart provided in an embodiment of the present application;

[0071] Fig. 20 It is a comparison diagram of the screening results of the target object imaging and the depth-based foreground and background screening strategy provided in the embodiment of the present application;

[0072] Fig.21 It is a module schematic diagram of a monocular three-dimensional target detection system fused with object imaging provided in an embodiment of the present application;

[0073] Fig. 22 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0074] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.

[0075] Although the functional modules are divided in the system schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the system or the order in the flowchart. The terms "first / S100", "second / S200", etc. in the specification, claims and the above drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0076] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".

[0077] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.

[0078] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0079] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application. In addition, "target object imaging" in this application may also be referred to as "specific object imaging".

[0080] In the embodiment of the present application, a monocular three-dimensional target detection method and system integrating object imaging are provided. The scheme proposes an object imaging network, and enables the target detection network and the object imaging network to share a feature extraction backbone. The input monocular image will be subjected to feature extraction and compression coding processing through the feature extraction backbone. Subsequently, based on the post-fusion processing method, the feature map output by the feature extraction backbone is used for the first stage of 2D detection to obtain the 2D box position information of the target object in the image, and realize the rough screening of the region of interest; subsequently, the features of the region of interest are extracted and feature fused through the DAAM feature fusion module to enrich the semantics and detail information; finally, the fused features will be used for the reconstruction operation of the object imaging network and the detection operation of the 3D detection head respectively. When processing the full scene features, the scheme only reconstructs the features of the object of interest and filters out the redundant object features, which can achieve the active imaging effect of a specific object and reduce the amount of calculation, which is conducive to the accurate and rapid realization of monocular 3D target detection.

[0081] In addition, when training the above-mentioned target object imaging network, the model learning target is defined by screening the label graph after the target of interest, and the deep convolutional neural network is trained with data supervision, so that the deep convolutional neural network learns the key features of the target of interest and constructs a filter that only responds to the target.

[0082] A monocular three-dimensional target detection method for fusion object imaging provided in an embodiment of the present application relates to the field of target detection technology. A monocular three-dimensional target detection method for fusion object imaging provided in an embodiment of the present application can be applied to a terminal, can be applied to a server, or can be software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a car terminal, etc., but is not limited to this; the server side can be configured as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, and can also be configured to provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms and other basic cloud computing services. The server can also be a node server in a blockchain network; the software can be an application that implements a monocular three-dimensional target detection method for fusion object imaging, etc., but is not limited to the above forms.

[0083] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0084] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.

[0085] Figure 1 is an optional step diagram of a monocular three-dimensional target detection method for fusion object imaging provided in an embodiment of the present application, Figure 1 The method may include but is not limited to steps S100 to S600:

[0086] Step S100, performing feature extraction and compression coding processing on the input monocular image to obtain a first feature map;

[0087] Step S200, performing two-dimensional target detection on the first feature map to obtain two-dimensional frame position information of the target object in the monocular image;

[0088] Step S300, performing redundant feature filtering and target object feature extraction processing on the region of interest of the first feature map according to the two-dimensional frame position information to obtain a second feature map;

[0089] Step S400, performing feature fusion processing on the second feature map to obtain a third feature map;

[0090] Step S500, reconstructing the third feature map using a target object imaging network according to the two-dimensional frame position information to obtain a target imaging result;

[0091] Step S600, obtaining a target detection result according to the target imaging result.

[0092] In steps S100 to S600 shown in the embodiment of the present application, the monocular image is processed into a second feature map of the target of interest based on the two-dimensional box position information of the target object in the monocular image, and then feature fusion processing is performed on the second feature map. Through such a post-fusion method, the amount of calculation brought about by the fusion is reduced, the filtering of useless features and the enhancement of features of interest are achieved, and the performance and speed of the monocular three-dimensional target detection process are further improved.

[0093] In some embodiments, step S100 includes but is not limited to the following steps S110 to S130:

[0094] Step S110, using a lightweight network based on a deep structure to extract features from the input monocular image, and generating multi-scale feature maps of five different resolutions;

[0095] Step S120, integrating the multi-scale feature maps using a deep hierarchical aggregation network with an upsampling function to obtain a first detail feature map and a first abstract feature map;

[0096] Step S130: Integrate the first detail feature map and the first abstract feature map into a first feature map.

[0097] In some embodiments, step S200 may include but is not limited to the following steps S210 to S220:

[0098] Step S210, performing two-dimensional target detection on the first abstract feature map in the first feature map to obtain a two-dimensional heat map, a two-dimensional offset, and a two-dimensional size of the target;

[0099] Step S220: Integrate the two-dimensional heat map, the two-dimensional offset, and the two-dimensional size into two-dimensional frame position information.

[0100] In some embodiments, step S400 may include but is not limited to the following steps S410 to S440:

[0101] Step S410, performing a first processing on the first detail feature map and the first abstract feature map in the second feature map to obtain a second detail feature map and a second abstract feature map; wherein the first processing includes convolution processing, batch normalization processing, and activation processing;

[0102] Step S420, performing a second processing on the second detail feature map and the second abstract feature map to obtain a third detail feature map and a third abstract feature map; wherein the second processing includes layer normalization processing, window division processing and linear projection;

[0103] Step S430, using the third abstract feature map as an autonomous query and the third detail feature map as a key-value pair, performing multi-head self-attention processing and multi-layer perceptron processing to obtain a converged feature map;

[0104] Step S440: Fusing the converged feature map, the second detail feature map and the third detail feature map to obtain a third feature map.

[0105] In step S500 of some embodiments, the working steps of the target object imaging network include but are not limited to the following steps S510 to S550:

[0106] Step S510, performing convolution processing on the third feature map through a combination structure of a first convolution layer and an activation function to obtain a fourth feature map;

[0107] Step S520, performing a first feature channel number conversion process on the fourth feature map to obtain a fifth feature map;

[0108] Step S530, performing upsampling processing on the fifth feature map to obtain a sixth feature map containing detail feature information of the target object;

[0109] Step S540, performing a second feature channel number conversion process on the sixth feature map to obtain a seventh feature map;

[0110] Step S550, integrating the information of all channels in the seventh feature map through a convolutional layer to obtain a target imaging result.

[0111] In step S500 of some embodiments, the training step of the target object imaging network includes but is not limited to the following steps a to g:

[0112] a. Obtain the two-dimensional box information annotated in the training data set;

[0113] b. determining the position of the target object in the initial training image according to the two-dimensional frame information, and intercepting the target object from the training image to obtain a first training image;

[0114] c. performing redundant background filtering on the first training image to obtain a second training image;

[0115] d. Performing a bilinear interpolation operation on the second training image to obtain a training label image;

[0116] e. reconstructing the initial training image through the target object imaging network to obtain a plurality of reconstructed images containing only the target object;

[0117] f. Calculate the loss value of the reconstructed image and the training label image according to a preset loss function;

[0118] g. Adjusting parameters of the target object imaging network according to the loss value.

[0119] In step f of some embodiments, the loss function is:

[0120]

[0121] in, Represents the reconstructed image S and the training label map The loss value between ; SmoothL1loss() represents the regression loss; S i,j Represents the pixel value at the index position of the i-th row and j-th column in the reconstructed image S; Represents the training label map The pixel value at the index position of the i-th row and j-th column in the image; m represents the length of the image; n represents the width of the image. m×n represents the size of the image.

[0122] The following takes a vehicle as an example to describe and explain the solution of the embodiment of the present invention in detail:

[0123] In an embodiment of the present application, a monocular three-dimensional target detection method for fusion object imaging is provided, which can be applied to accurately and quickly detect the target object. Figure 2 , according to this method, a fused object imaging monocular 3D target detection model can be constructed, called the OI-DAAD model, in which the target detection network and the target object imaging network share the feature extraction backbone, and the input monocular image will be processed by the feature extraction backbone for feature extraction and compression encoding; then, based on the post-fusion processing method, the feature map output by the feature extraction backbone will be used for the first stage of 2D detection to obtain the 2D box position information of the target object in the image, and realize the rough screening of the region of interest. Then, the features of the region will be extracted and feature fusion will be performed through the DAAM feature fusion module to enrich the semantics and detail information. Finally, the fused features will be used for the reconstruction operation of the target object imaging network and the detection operation of the 3D detection head, respectively, to obtain the target detection result.

[0124] Furthermore, the full name of the above DAAM is Detail Abstract Attention Module, which is a detail abstract attention module. DAAM is a detail abstract feature fusion module based on Swin TransformeV2 window multi-head attention and jump connection. DAAM uses window multi-head attention and relies on the fusion method of jump connection to focus attention with high-level features as autonomous queries and detail features as key-value pairs. By calculating the correlation weights between high-level features (abstract features) and all underlying features (detail features), it captures long-distance dependency information and supplements the underlying features lost after continuous abstraction, thereby enriching the feature semantics, obtaining more representative and delicate features, and achieving more accurate and intensive predictions.

[0125] The DAAM module structure is as follows Figure 3 As shown, the calculation process of multi-head attention is as follows Figure 4 As shown, Figure 3 CBL represents the combined structure of convolution layer + batch normalization layer + Relu activation function.

[0126] First, the input image will pass through four Swin TransformerV2 blocks for attention feature extraction. The output feature map resolutions after passing through four Swin TransformerV2 blocks are respectively Based on the sliding window self-attention method, the feature map can obtain a global receptive field, which is richer and more representative. Then, the resolution is the initial image The feature map is sent to the pixel initial query module PQI[7]. The pixel initial query module uses pyramid pooling to adaptively pool the feature map, integrating feature map information of different scales while maintaining the resolution to facilitate the prediction of the depth block distribution of each pixel.

[0127] Subsequently, the feature map output by the pixel initial query module is used as the high-level feature, and the feature map output by the Swin TransformerV2 module 4 is used as the low-level feature. The feature fusion is performed through the DAAM module 4, and the fused feature map is upsampled to double its resolution. The output feature map is also fused with the feature map of the Swin TransformerV2 module 3, and the same operation is performed. After passing through four more DAAM blocks, the feature map continuously fuses the low-level features of different scales, supplements the missing detail information, and restores the initial resolution.

[0128] Finally, the output of PQI is accepted by the block compression prediction module, namely the BCP module, and the distance distribution of the depth block is predicted through a multi-layer perceptron processing. Finally, the image depth is discretized into a fixed number of intervals of the depth block center. The final single pixel depth is obtained by normalizing the probability of each depth block with softmax from the feature map restored to the initial resolution, and the linear combination of the depth block center weighted by the probability value is used to obtain the final depth value.

[0129] Furthermore, the embodiment of the present application can use the DAA-D model as the basic model to fuse the target object imaging method. DAA-D is a monocular 3D target detection model based on the detail abstraction attention module (DAAM). Its model architecture Figure 5 As shown, DAA-D is a two-stage monocular 3D object detection model. First, the input RGB image is extracted through the DLA34 and DLAUp feature extraction backbones, and two types of feature maps are output: the second-level feature map C2 and the fifth-level feature map C5. C2 and C5 are both original input image resolutions. The generated C5 feature map will be used for 2D target detection to obtain the 2D position information of the target. Then, based on the known 2D bounding box, the Roi_Align operation is performed on the feature regions of interest in the 2D box positions in C2 and C5 to obtain two types of compressed feature maps. It will be sent to the DAAM module for feature fusion, and the final output fusion features will be used for 3D information prediction.

[0130] Reference Figure 6 As shown in the figure, the feature extraction backbone of the DAA-D model uses the DLA34 and DLAUp modules. DLA34 uses a lightweight network based on a deep residual structure with a depth of 34 layers. Each deep residual block of DLA34 consists of multiple convolutional layers and batch normalization layers. This structure can effectively extract image features while maintaining the lightweight and efficient performance of the network. DLAUp performs multiple upsampling and convolutional layer operations on the multi-scale features output by different levels of DLA34 to aggregate information at each scale.

[0131] Furthermore, the embodiment of the present application proposes a new target object imaging method that combines the attention mechanism with the compression imaging technology. By integrating the target object imaging technology, it is possible to perform imaging operations on only the target while detecting the table of interest, actively filter out irrelevant redundant background, and effectively reduce the amount of information that needs to be processed by subsequent tasks and reduce the burden of transmission and storage.

[0132] In the training phase, a manually crafted label map after filtering out the target of interest can be obtained to define the model learning target, and supervised training can be performed on the deep convolutional neural network, so that the deep convolutional neural network can learn the key features of interest and construct a feature filter that only responds to the target. When the filter is applied to process the full scene features, only the features of the object of interest are reconstructed, and the redundant object features are filtered out to achieve the active imaging effect of the target object. Specifically, refer to Figure 7 , the implementation principle and process of target object imaging are as follows:

[0133] First, when the imaged scene has f i (i=1,2…,M) targets, the imaged scene can be described using equation (1):

[0134]

[0135] Where M is a natural number, indicating the total number of targets.

[0136] According to the compressed sensing theory, each object f i can all be expressed as coefficients in an N-dimensional sparse space, as shown in formula (2):

[0137]

[0138] Among them, ψ represents the sparse basis in the sparse space, x represents the sparse basis in the sparse space, and all the eigenvectors of the sparse space can be represented by sparse weighting, and the target object changes with the change of the coefficient.

[0139] If a feature filter Φ for the target object f0 can be designed, then the feature filter can be used to perform feature filtering on all targets in the imaged scene, retaining only the features of the target object and filtering the target object f0 out of the scene, as shown in formula (3):

[0140]

[0141] Based on formula (3), it can be seen that in order to achieve the goal of imaging only the target object, a reasonable feature filter needs to be designed. The feature filter Φ contains the feature information of the object of interest. When the full scene image f is sparsely transformed, the sparse coefficient x0 of the target object in the sparse space can be matched, thereby obtaining a sparse basis projection in the sparse space, and realizing the function of extracting only the features of the target object. By filtering with the feature filter, the target object f0 can be screened out from the scene f with many targets.

[0142] Taking the traditional city streets in the autonomous driving scene as the background, the target objects of interest in the monocular 3D object detection task are usually common obstacles such as cars. In order to achieve the imaging effect of the target object of the car category, it is necessary to supervise the training of the convolutional neural network by making labels. First, filter out the objects of interest (cars) in the complex road scene, and make a specific imaging label map for the car category. Figure 8 and Fig. 9 In contrast, in the original road scene, all information in the street scene is collected, while in the label map, only the object of interest (car) is included. It can be seen that the number of pixels in the area where the object of interest (car) is located often does not exceed 50% of the number of pixels in the entire image. This means that nearly half of the area is useless redundant information, which is noise for the task of detecting vehicles. These noises will increase the difficulty of model learning and screening. Through these one-to-one corresponding input-label maps, the neural network is supervised for learning, and the feature filters of targets such as cars are fitted. When reconstructing the image, useless redundant features are filtered out, thereby achieving the imaging effect of the target object of the car. Based on this processing, target imaging can also enhance and highlight the features of the target object of interest, help the model learn more useful feature representations, improve the learning efficiency and convergence speed of the model, and further improve the performance of monocular 3D target detection.

[0143] The basic idea of ​​target object imaging is to image only the target object of interest and filter out useless background features, thereby reducing the noise interference of redundant features, strengthening the effect of effective features of interest, and improving the accuracy and robustness of detection. The embodiment of the present application performs a systematic fusion design based on the DAA-D model, proposes a monocular three-dimensional target detection method for autonomous driving scenarios that integrates object imaging, and proposes the OI-DAAD model.

[0144] First, to realize the imaging of the target object based on deep learning, it is necessary to design a convolutional neural network, use the convolutional neural network as a feature decoder, fit the feature filter Φ of the target object of interest, and learn the feature screening of the target of interest and the reconstruction of information through data supervision neural network learning, so as to achieve the goal of filtering a large amount of redundant information in the scene. The embodiment of the present application adopts the feature map output by the feature extraction backbone of DAA-D as the input of the object imaging task, achieving a more concise and efficient fusion of the two, and reducing the computational workload and training burden brought to the model by the target object imaging technology.

[0145] The input image is encoded through the DAA-D feature extraction backbone, and its output feature map is supplemented with lost underlying details after feature fusion by the DAAM module. It has rich semantic representation and discrimination, fully meeting the feature requirements of intensive prediction tasks such as depth estimation and target object imaging, so the feature backbone can be shared. The use of a shared feature extraction backbone can not only improve the additional computation caused by building a compression module for the target object separately, but also achieve a simple and efficient fusion with the 3D detection model. The process can be briefly summarized as follows: the input image is compressed and encoded through the DAA-D feature extraction backbone, and the output feature map contains all the information of the complex scene, which not only serves the subsequent 3D detection operations, but also serves as the input of the target object imaging reconstruction operation.

[0146] Since the target object imaging task and depth estimation are both intensive prediction tasks and have similar feature requirements, they can be naturally integrated into the DAAM module for feature fusion. After receiving the input of C2 and C5, the DAAM module effectively aggregates and aggregates the features of different levels through the self-attention mechanism to generate fusion features that integrate different scales and levels. By supplementing the underlying detail information lost after excessive compression, the accuracy of object imaging is improved. The overall architecture of the shared feature extraction backbone to achieve compression coding is as follows: Fig.10 As shown, in Fig.10 In the above, the input image is firstly processed by the feature extraction backbone DLA34 to continuously abstract semantic information and generate five multi-scale feature maps with different resolutions. Then, the different multi-scale feature maps are continuously upsampled and added by DLAUp to integrate them, and the original low-level detail features and the integrated high-level abstract features are output, which are represented as Fig.10 The second-level feature map (i.e., C2) and the fifth-level feature map (i.e., C5) of the target object are obtained by the target object imaging decoder composed of multiple convolutional layers. The features of the two different levels will be used as the input of the DAAM module, and the features will be fused through DAAM attention convergence to obtain the final output features. These output feature maps encode the features of the object of interest and other redundant features. Then, the features output by DAAM are decoded by the target object imaging decoder composed of multiple convolutional layers. Multiple deep convolutional layers will learn to analyze and extract the features of the target object of interest, realize the filtering operation of the features of the object of interest, and thus achieve the final imaging effect of the target object.

[0147] The shared feature extraction backbone strategy of the embodiment of the present application enables the monocular 3D target detection task and the target object imaging task to be executed in parallel and synchronously in the same network. It not only improves the coordination of task execution, but also significantly reduces the amount of calculation added by introducing the target object imaging task, reduces the overall complexity of the fusion model, and thus improves the real-time performance and resource efficiency of the system.

[0148] Furthermore, after the full scene image is compressed and encoded by the feature extraction backbone, the output feature map needs to pass through the reconstruction part composed of convolution and upsampling operations to filter out redundant features and reconstruct the object of interest. In the simple target object imaging task, the reconstruction operation needs to decode the compressed image information and restore it to the original image resolution through upsampling operations. Therefore, the amount of computation brought to the model by the convolution part cannot be ignored. The fusion design needs to be reasonably adjusted based on the autonomous driving scenario and the structure of the 3D object detection model DAA-D.

[0149] For the monocular 3D target detection model DAA-D, there are two fusion methods based on object imaging for feature enhancement and redundant data filtering. The traditional method is to directly image the target object on the original feature map, so as to obtain a target object imaging result with the same resolution as the original feature map. Subsequently, the full-size feature map is directly operated through the target object imaging result to filter out irrelevant redundant features in the entire scene. The post-fusion processing method proposed in this application relies on the 2D detection part of DAA-D to first implement the detection of the target object and obtain the approximate predicted area of ​​the target object of interest. Subsequently, the reconstruction operation of the target object imaging is performed in the approximate feature area of ​​the target of interest, thereby generating the target object imaging result for the 2D detection area.

[0150] like Fig.11 and Fig.12 As shown in the figure, by comparison, it can be seen that the main difference between the two reconstruction methods lies in the object of reconstruction decoding. Taking the target of interest as a car as an example, in the traditional method, the reconstruction module of the target object imaging network needs to filter and reconstruct the panoramic information of the entire picture, and the charging module needs to identify the car category from the compressed panoramic information to achieve the object imaging effect of the car. However, imaging the target object of the full scene information means that the reconstruction module requires more calculation and difficulty. The full scene information contains more complex and redundant information, and the amount of data is very large. The effective information of the car category accounts for a small proportion. A large amount of computing resources are consumed on useless information, and it is more difficult to learn the main features of the car category from this huge data.

[0151] However, in the post-fusion processing method of the embodiment of the present application, the car is pre-screened through mature 2D detection to obtain the rough position information of the car in the picture. Through this pre-information, the reconstruction module of the target object imaging only needs to filter and reconstruct the features of the filtered position area. After the pre-screening of the 2D detection, most of the features of the area include the car, which has a smaller effective calculation amount and higher efficiency. Moreover, since the proportion of interference features is relatively small, it is simpler for the reconstruction module to learn the main features of the car. In addition, the reconstruction module DAA-D of the post-fusion processing method has a better structure itself. Therefore, based on the essential considerations of the autonomous driving scenario and target detection, the target object imaging reconstruction module of the embodiment of the present application adopts a combined post-processing method.

[0152] Fig.12 In the above, the convolutional neural network of the target object imaging reconstruction decoding module based on the post-fusion processing method can be as follows Fig.13 The reconstruction module learns the main features of the object of interest through a convolutional neural network, responds to the features of this type of object, and fits the feature filter to achieve the effect of feature filtering.

[0153] Based on the above post-fusion processing method, it can be seen that in the DAA-D model, after the image features are compressed and encoded by the feature extraction backbone, they will be 2D detected by the 2D detection head to roughly screen out the features of the target area of ​​interest. Subsequently, the features of the area will be extracted and compressed to a uniform 7×7 size through the Roi Align operation. Among them, the Roi_Align (region of interest alignment) operation is used to extract the region of interest from the input feature map and align it. That is, the bilinear interpolation method is used to align the image.

[0154] The unified feature map will be fused through the DAAM module to add detailed information and will be input into Fig.13 In the reconstruction decoder, the image is first processed through a combination of two groups of convolutional layers with a convolutional kernel size of 3×3 and a stride of 1 and a Relu activation function, and the main features of the object of interest are learned based on the convolutional neural network, and the number of feature channels is transformed to 128. Then, the feature map is upsampled to a size of 14×14 through a deconvolutional layer with a convolutional kernel size of 2×2 and a stride of 2, so as to reconstruct and restore the detailed feature information of the object of interest, and the number of channels is transformed to the original size of 64. Finally, a convolutional layer with a convolutional kernel size of 1×1 is used to integrate the feature information of all channels, summarize the feature information of different representations, and generate a reconstructed image corresponding to the RGB three channels. Based on this processing flow, relying on convolution and upsampling operations, the decoding module of specific object imaging realizes the filtering of redundant features and reconstructs an image that filters out redundant background and only contains the category of the object of interest (car).

[0155] An embodiment of the training process of the method of the embodiment of the present application is described below:

[0156] In OI-DAAD, the training and optimization process of the 3D object detection part is the same as that of the DAA-D model. However, the fused target object imaging network needs to be optimized and trained separately. The reconstructed image output by the target object imaging network in OI-DAAD can be 14×14 in size. Therefore, it is necessary to make a target object imaging label corresponding to the output.

[0157] First, based on the annotation information of the dataset, the target vehicle’s position in the image is determined through the annotated 2D box information, the target vehicle is cut out from the original image, and the redundant background outside the target object is filtered out through software operations. Finally, the size is transformed to the same 14×14 size through bilinear interpolation operations to complete the production of the label map. The specific process is as follows Fig.14 As shown in the figure, each valid detection target in the data set will produce a corresponding target object imaging label. In the case where the detection target is blocked in a large area, the corresponding target label can still be produced by filtering out the part blocking the target vehicle through software operation, such as Fig.15 shown.

[0158] If there are many obscured vehicles to be detected in the data set, it is easy to cause serious interference to the accurate detection and feature learning of the model. The obstacles that obstruct the detection vehicles can be filtered out by screening. Supervised training based on this type of data can prompt the target object imaging network to learn the reconstruction rules of the real target of interest when the vehicle to be detected is obscured, so that it can focus on the real target to be detected and achieve more flexible screening operations.

[0159] The reconstructed image containing only the target object of interest output by the target object imaging network of OI-DAAD will be calculated with the label loss, so as to train and optimize the entire object imaging network and fit the feature filter of the target of interest, such as Fig.16 As shown in the figure, after each image is input into the OI-DAAD network, the reconstruction module of the target object imaging will reconstruct the corresponding 14×14 size image containing only the object of interest (car) for the N valid detection targets in the training image. At the same time, the target object imaging network is trained in a supervised manner by calculating the loss of these corresponding reconstructed image-target label combinations.

[0160] In addition, the target object imaging network can also be used for feature filtering and feature enhancement. By fusing the target object imaging network, the redundant data around the target object of interest is filtered out, and the position information corresponding to its features is obtained. Based on this position information, the features of the object of interest can be enhanced, and irrelevant redundant features can be filtered out, thereby reducing the interference of noise on the model and reducing the prediction difficulty of subsequent 3D detection tasks. Therefore, the reconstruction result of the target object imaging is used as a mask, and subsequent enhancement operations can be performed on the corresponding feature map. Specifically, the reconstruction result of the target object imaging filters out the redundant background and only the target object of interest, so it can provide its accurate position information, with a size of 14×14.

[0161] First, for the reconstruction result of the target object imaging, a binarization operation is performed through a set threshold to create a position mask, so that the value of the target area of ​​interest is 1 and the value of the redundant background area is 0, such as Fig.17 Then, a bilinear interpolation operation is performed on the 14×14 mask of the location of interest to transform it into the same 7×7 size as the feature map required for subsequent 3D detection, as shown in Fig.18 shown.

[0162] The value of each pixel position of the transformed mask image represents the proportion of the current pixel position belonging to the target object of interest. Through this processing, the prior position information of whether each pixel position belongs to the target object of interest on the feature map that will be used for 3D detection is obtained. By performing element-by-element multiplication of the processed object imaging result and the feature map, the calculation formula is shown in formula (4), and the weighted feature map based on the target object imaging screening is obtained.

[0163] Out=V×C (4)

[0164] The output feature map has effectively filtered out the features of uninteresting objects, retained the features of interesting objects, and greatly weakened the features of uninteresting objects. Finally, in order to prevent the gradient from disappearing and ensure the normal transmission of the gradient, the weighted feature map is added pixel by pixel to the original feature map to obtain the final output feature map, as shown in the following formula (5):

[0165] Out=Out+C (5)

[0166] In equations (4) and (5), out represents the output feature map; V represents the imaging result of the target object; and C represents the original feature map.

[0167] The target object imaging feature enhancement process of the embodiment of the present application can refer to Fig.19As shown in the figure, through the target object imaging feature enhancement operation, the interference of irrelevant redundant features on model reasoning is effectively reduced, so that the model can learn more effective feature representation and improve the performance of model detection.

[0168] In order to determine the difference between the reconstruction result of the target object imaging and the corresponding label, the present invention uses the regression loss SmoothL1loss to calculate the loss. The loss function is shown in formula (6):

[0169]

[0170] The reconstruction result of the target object imaging is represented by S, and its corresponding label is The final loss calculation can be expressed as the following formula (7), where They represent the pixel values ​​at the corresponding i-th row and j-th column index positions in the reconstruction results and labels respectively. Finally, the loss at each pixel position will be summed and the average will be calculated.

[0171]

[0172] By calculating the loss between the two, the weights of the target object imaging network are continuously trained and optimized in a supervised manner, thereby fitting the target object feature filter and completing the screening and reconstruction tasks of the target object.

[0173] In order to better explore the screening effect of target object imaging, the target object imaging of this embodiment is qualitatively compared with the depth-based foreground and background screening strategy. By visualizing the binary mask results after screening the target of interest in the same scene, the performance gap between the two in target screening is analyzed.

[0174] The results are as follows Fig. 20 As shown, the first row represents the input monocular image of the model, the second row represents the result after screening by the depth-based foreground and background screening strategy, and the third row represents the result after screening the target of interest based on target object imaging in this application.

[0175] It can be clearly seen that the screening of targets of interest based on target object imaging is more delicate, and the regional edges are wrapped more accurately. In addition, the defects of the depth-based foreground and background screening strategy can be clearly seen from the second column of examples: when the depth distance of the detected target and other targets is very close, the depth-based foreground and background screening will not be able to effectively distinguish the target to be detected, which is very common in road scenes of autonomous driving. When the vehicle to be detected is blocked by other vehicles, this method will not be able to effectively screen the object of interest. The method based on target object imaging technology can more effectively and accurately screen the target to be detected, filter redundant information, and enhance the effect of effective information.

[0176] In summary, the embodiments of the present application have at least the following beneficial effects: by supervising the convolutional neural network through a deep learning method to learn the features of the target of interest, and by fitting the feature filter of the target of interest through the convolutional neural network, the model only responds to the target of interest, thereby achieving the screening of the target of interest and the filtering of useless redundant information. The imaging of the target object is fused with the DAA-D model, and the amount of calculation and the difficulty of prediction during fusion are reduced by sharing the feature backbone and post-fusion, thereby achieving the filtering of useless features and the strengthening of features of interest, and further improving the performance and convergence speed of DAA-D, so that the method of the embodiments of the present application can quickly and accurately perform monocular 3D target detection.

[0177] See also Fig.21 The embodiment of the present application further provides a monocular three-dimensional target detection system for fusion object imaging, which can implement the above-mentioned monocular three-dimensional target detection method for fusion object imaging, and the system includes:

[0178] The first module 101 is used to perform feature extraction and compression coding processing on the input monocular image to obtain a first feature map;

[0179] The second module 102 is used to perform two-dimensional target detection on the first feature map to obtain two-dimensional frame position information of the target object in the monocular image;

[0180] The third module 103 is used to perform redundant feature filtering and target object feature extraction processing on the region of interest of the first feature map according to the two-dimensional frame position information to obtain a second feature map;

[0181] The fourth module 104 is used to perform feature fusion processing on the second feature map to obtain a third feature map;

[0182] A fifth module 105 is used to reconstruct the third feature map using a target object imaging network according to the two-dimensional frame position information to obtain a target imaging result;

[0183] The sixth module 106 is used to obtain a target detection result according to the target imaging result.

[0184] It can be understood that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0185] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned monocular three-dimensional target detection method of fusion object imaging when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0186] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0187] See also Fig. 22 , Fig. 22 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0188] The processor 201 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0189] The memory 202 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 202 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 202, and the processor 201 calls and executes a monocular three-dimensional target detection method for fusion object imaging in the embodiment of this application;

[0190] Input / output interface 203, used to implement information input and output;

[0191] The communication interface 204 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);

[0192] Bus 205 , which transmits information between various components of the device (e.g., processor 201 , memory 202 , input / output interface 203 , and communication interface 204 );

[0193] The processor 201 , the memory 202 , the input / output interface 203 and the communication interface 204 are connected to each other in communication within the device via the bus 205 .

[0194] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the above-mentioned monocular three-dimensional target detection method with fused object imaging.

[0195] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0196] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0197] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0198] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0199] The system embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0200] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0201] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0202] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0203] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0204] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0205] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0206] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or 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 multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0207] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A monocular 3D target detection method integrating object imaging, characterized in that: include: Performing feature extraction and compression encoding processing on the input monocular image to obtain a first feature map; Performing two-dimensional target detection on the first feature map to obtain two-dimensional frame position information of the target object in the monocular image; According to the two-dimensional frame position information, redundant feature filtering and target object feature extraction processing are performed on the region of interest of the first feature map to obtain a second feature map; Performing feature fusion processing on the second feature map to obtain a third feature map; According to the two-dimensional frame position information, the third feature map is reconstructed using a target object imaging network to obtain a target imaging result; According to the target imaging result, a target detection result is obtained.

2. The method according to claim 1, characterized in that The step of extracting features and performing compression coding on the input monocular image to obtain a first feature map includes: A lightweight network based on a deep structure is used to extract features from the input monocular image and generate multi-scale feature maps with five different resolutions. Using a deep hierarchical aggregation network with upsampling function to integrate the multi-scale feature maps to obtain a first detail feature map and a first abstract feature map; The first detail feature map and the first abstract feature map are integrated into a first feature map.

3. The method according to claim 1, characterized in that The performing two-dimensional target detection on the first feature map to obtain two-dimensional frame position information of the target object in the monocular image includes: Performing two-dimensional target detection on the first abstract feature map in the first feature map to obtain a two-dimensional heat map, a two-dimensional offset, and a two-dimensional size of the target; The two-dimensional heat map, the two-dimensional offset, and the two-dimensional size are integrated into two-dimensional frame position information.

4. The method according to claim 1, characterized in that: The performing feature fusion processing on the second feature map to obtain a third feature map includes: Performing a first processing on the first detail feature map and the first abstract feature map in the second feature map to obtain a second detail feature map and a second abstract feature map; wherein the first processing includes convolution processing, batch normalization processing, and activation processing; Performing a second processing on the second detail feature map and the second abstract feature map to obtain a third detail feature map and a third abstract feature map; wherein the second processing includes layer normalization processing, window division processing and linear projection; Using the third abstract feature map as an autonomous query and the third detail feature map as a key-value pair, performing multi-head self-attention processing and multi-layer perceptron processing to obtain a converged feature map; The converged feature map, the second detail feature map and the third detail feature map are fused to obtain a third feature map.

5. The method according to claim 1, characterized in that In the step of reconstructing the third feature map using a target object imaging network according to the two-dimensional frame position information to obtain a target imaging result, the working steps of the target object imaging network include: Performing convolution processing on the third feature map through a combination structure of a first convolution layer and an activation function to obtain a fourth feature map; Performing a first feature channel number transformation process on the fourth feature map to obtain a fifth feature map; Performing upsampling processing on the fifth feature map to obtain a sixth feature map containing detail feature information of the target object; Performing a second feature channel number conversion process on the sixth feature map to obtain a seventh feature map; The information of all channels in the seventh feature map is integrated through the convolution layer to obtain the target imaging result.

6. The method according to claim 1, characterized in that The training steps of the target object imaging network include: Get the two-dimensional box information annotated in the training data set; Determining a position of a target object in an initial training image according to the two-dimensional frame information, and intercepting the target object from the training image to obtain a first training image; Performing redundant background filtering on the first training image to obtain a second training image; Performing a bilinear interpolation operation on the second training image to obtain a training label image; Reconstructing the initial training image through the target object imaging network to obtain a plurality of reconstructed images containing only the target object; Calculating the loss value of the reconstructed image and the training label image according to a preset loss function; Parameters of the target object imaging network are adjusted according to the loss value.

7. The method according to claim 6, characterized in that In the step of calculating the loss value of the reconstructed image and the training label image according to a preset loss function, the loss function is: in, Represents the reconstructed image S and the training label map The loss value between ; SmoothL1loss() represents the regression loss; S i,j Represents the pixel value at the index position of the i-th row and j-th column in the reconstructed image S; Represents the training label map The pixel value at the index position of the i-th row and j-th column in ; m represents the length of the image; n represents the width of the image.

8. A monocular 3D target detection system integrating object imaging, characterized in that: include: The first module is used to perform feature extraction and compression coding processing on the input monocular image to obtain a first feature map; A second module is used to perform two-dimensional target detection on the first feature map to obtain two-dimensional frame position information of the target object in the monocular image; A third module is used to perform redundant feature filtering and target object feature extraction processing on the region of interest of the first feature map according to the two-dimensional frame position information to obtain a second feature map; A fourth module is used to perform feature fusion processing on the second feature map to obtain a third feature map; A fifth module is used to reconstruct the third feature map using a target object imaging network according to the two-dimensional frame position information to obtain a target imaging result; The sixth module is used to obtain a target detection result according to the target imaging result.

9. An electronic device, characterized in that: including a processor and a memory; The memory is used to store programs; The processor executes the program to implement the method according to any one of claims 1 to 7.

10. A computer storage medium storing a program executable by a processor, characterized in that: The program executable by the processor is used to implement the method according to any one of claims 1 to 7 when executed by the processor.