A 3D point cloud target detection method and device based on 3D heat map
Through a method based on three-dimensional heat maps, bilinear interpolation and fully connected neural networks are used to predict thermal response values and object characteristics, combined with three-dimensional Gaussian distribution regression center coordinates, to solve the problem of spatial structure information loss caused by sparse convolution in the existing technology. , improving target detection accuracy and classification capabilities.
Patent Information
- Application Number
- CN202011633077.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-31
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-12-31
AI Technical Summary
Existing 3D target detection algorithms based on 3D sparse convolution will cause the loss of spatial structure information after multi-layer sparse convolution, resulting in low target detection accuracy.
A three-dimensional point cloud target detection method based on three-dimensional heat maps is adopted. Through the steps of point cloud processing, prediction and center coordinate determination, the bilinear interpolation method and fully connected neural network are used to predict the thermal response value and object characteristics, and the three-dimensional Gaussian distribution is combined to return the center. coordinates to achieve target detection.
It retains the spatial structure information of the original point cloud, improves target detection accuracy and classification capabilities, and is significantly improved compared to current high-speed target detection methods.
Smart Images

Figure CN112699806B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of target detection, and in particular to a three-dimensional point cloud target detection method and device based on a three-dimensional heat map. Background Art
[0002] The object detection algorithm based on 3D point cloud is an important tool for exploring unmanned driving tasks. The task of the front object detection algorithm is to detect three categories: cars, pedestrians and bicycles. Deep learning based on neural networks has achieved fruitful results in object detection research. In traditional object recognition algorithms, most of them are aimed at image datasets with rich semantic information, but the three-dimensional spatial structure features in the image dataset are discarded. Therefore, the model generated using the two-dimensional dataset cannot complete efficient detection when applied to the real scene of autonomous driving. The three-dimensional point cloud data scanned by LiDAR meets the needs of front object detection.
[0003] The on-board LiDAR performs laser scanning of the space in front of the vehicle to obtain a three-dimensional point cloud of the object, which provides data support for a stable detection algorithm. However, the disorder and sparsity of the point cloud bring new challenges to point cloud processing. When faced with the problem of vehicle detection based on point clouds, the mainstream algorithms include point-based, voxel-based, and both point-based and voxel-based algorithms. Point-based algorithms use PointNet to learn point-by-point features of point clouds. These methods obtain feature representations for each point and use convolutional neural networks to obtain richer semantic features. Voxel-based algorithms use voxels to replace point cloud representations by dividing point clouds into voxels, which can solve the problems of disorder and sparsity. At the same time, point-based and voxel-based algorithms combine the advantages of point-based and voxel-based algorithms to form a fast and effective target detection algorithm.
[0004] At present, the more popular target detection algorithms can be roughly divided into the following two categories: one is a single-stage target detection algorithm, and the other is a two-stage target detection algorithm.
[0005] In 2019, Shi Shaoshuai et al. proposed PointRCNN, the first two-stage 3D point cloud object detection network. The PointRCNN network is a point-based algorithm that uses a bottom-up detection method. This method obtains candidate regions by dividing foreground points, and then expands the range of candidate regions to obtain regions of interest. The detection frame is refined in the region of interest, and finally the prediction box is obtained by the anchor-free method. However, the results obtained by PointRCNN after the pooling operation performed on the region of interest in the second stage are ambiguous. Shi Shaoshuai et al. found that point clouds contain data supervision information, so they further proposed a new two-stage network: Part-A2 network. The first stage of the Part-A2 network uses a network structure similar to V-Net to perform semantic segmentation on the original point cloud to obtain a rough candidate box. In the second stage, a local pooling method is used to improve the ambiguity caused by PointRCNN pooling. In 2020, Shi Shaoshuai et al. proposed PV-RCNN. This network combines the advantages of point-based and voxel-based, which temporarily puts the detection results in an advantageous position in the KITTI detection task. PV-RCNN takes full advantage of the efficiency and speed of voxel-based networks in the first-level network, and generates candidate boxes with 3D sparse convolution as the backbone. In the second stage, super points are used to replace the original point cloud, and the amount of calculation is greatly reduced while retaining the spatial structure of the original point cloud. The candidate box is refined by learning the features of super integrals. Finally, the anchor-free method is used to generate high-quality prediction results.
[0006] Relatively speaking, the detection accuracy of the secondary network is higher than that of the primary network, but the running speed is slower. Therefore, it is difficult to achieve real-time detection. Therefore, the research of high-precision single-stage networks is crucial. In 2017, Voxelnet, an end-to-end object detection network based on traditional 3D convolution, was proposed. Voxelnet first voxelizes the original point cloud so that the disordered and sparse point cloud can be converted into regular voxels that can be learned. Voxelnet pioneered the single-stage target detection algorithm, but it still cannot detect the target position quickly. However, due to the existence of 3D convolution, the speed of most algorithms is greatly limited. And the sparsity of the point cloud leads to a large number of zero values. These zero values will generate a lot of unnecessary calculations. SECOND proposed a sparse convolution algorithm to effectively solve the problem. The sparse convolution algorithm is still a special type of 3D convolution, which cannot overcome the bottleneck of slow 3D convolution. Using 2D convolution to solve the target detection problem of 3D point clouds is a new challenge. PointPillars proposed a different point cloud processing method. According to the meaning of these points, the entire point cloud scene is compressed to the xy plane to obtain a pseudo image that can represent the semantic information of the entire point cloud scene. PointPillras uses 2D convolution on the pseudo image and realizes fast and effective detection of objects in front of the vehicle. SASSD proposes a new idea. During the model training process, an auxiliary network is used to convert the voxel features in the single-stage detector into point-level features, supplemented by supervision signals. During the model reasoning process, the auxiliary network does not need to participate in the calculation, and finally achieves both speed and accuracy. Summary of the invention
[0007] In view of the above-mentioned problems that the original data of the 3D target detection algorithm based on 3D sparse convolution in the prior art will lead to the loss of spatial structure information and low target detection accuracy after multiple layers of sparse convolution, the purpose of the embodiments of the present application is to propose a 3D point cloud target detection method and device based on 3D heat map to solve the technical problems mentioned in the above background technology section.
[0008] In a first aspect, an embodiment of the present application provides a three-dimensional point cloud target detection method based on a three-dimensional heat map, comprising the following steps:
[0009] Point cloud processing step: input the point cloud into multi-layer sparse convolution to obtain the first feature map, use bilinear interpolation to sequentially interpolate the first feature map to the original spatial position of the point cloud to obtain the second feature map, splice the second feature map, and output an N*C dimensional feature map, where N refers to the number of points in the point cloud and C refers to the number of channels;
[0010] In a first prediction step, an N*C dimensional feature map is input into a first fully connected neural network, and an N*4 dimensional feature map is output, wherein the output data includes the coordinates of the predicted point cloud and the predicted thermal response value, wherein the thermal response value of each point represents the relationship between the position information of the point in the object and the center position of the object;
[0011] In the second prediction step, the N*C dimensional feature map is input into the second fully connected neural network, and a five-dimensional vector is output, which respectively represents the length, width, height, category and deflection angle of the predicted object;
[0012] a center coordinate determination step, regressing the predicted thermal response value through a three-dimensional Gaussian distribution to obtain the mean of the Gaussian distribution, i.e., the predicted center coordinate of the object; and
[0013] The target detection result output step combines the predicted length, width, height, category, deflection angle, and center coordinates of the object to obtain the target detection result.
[0014] In some embodiments, in a world coordinate system with the radar scanner as the origin, assuming that the center coordinates of the object are u(a, b, c), and the coordinates of any point in the object are q(m, n, t), the thermal response value of the point is:
[0015]
[0016] The above formula converts the thermal response value into a quantitative indicator, which is convenient for calculation.
[0017] In some embodiments, in the first prediction step, the real thermal response value of each point is calculated by the spatial position of the point cloud, and the first fully connected neural network is trained using the real thermal response value. The original point cloud is processed using a three-dimensional sparse convolution backbone network to predict the thermal response value of the original scene point cloud.
[0018] In some embodiments, the step of determining the center coordinates specifically includes: assuming that the predicted thermal response value of the i-th point is Y i , the coordinates of this point are q i (m i ,n i ,t i ), then the mean of the three-dimensional normal distribution of the point is μ(μ1,μ2,μ3), where the covariance matrix variance of the normal distribution is a diagonal matrix, and the values of the diagonal lines set the hyperparameters σ1, σ2, σ3,
[0019] Then we have:
[0020]
[0021]
[0022] make Then the original formula is expanded:
[0023]
[0024] for have:
[0025]
[0026] Using the least squares method:
[0027]
[0028] Regress the mean of the Gaussian distribution, which is the predicted center coordinate of the object.
[0029] The three-dimensional normal distribution is regressed from the thermal response value, and the mean of the three-dimensional normal distribution is the center point position of the object.
[0030] In some embodiments, splicing the second feature maps in the point cloud processing step specifically includes: adding feature values of corresponding positions of the second feature maps.
[0031] In some embodiments, the first fully connected neural network includes a first input layer, a first hidden layer and a first output layer, and uses a smooth L1 loss function to fit convergence. The first fully connected neural network can accurately and quickly calculate the three-dimensional coordinates of the predicted point cloud and the predicted thermal response value.
[0032] In some embodiments, the second fully connected neural network includes a second input layer, a second hidden layer, and a second output layer, uses a smooth L1 loss function to obtain the size of the prediction box, and uses a focal loss loss to predict the category. The length, width, height, category, and deflection angle of the object are predicted by the second fully connected neural network, and the calculation speed is fast.
[0033] In the second aspect, an embodiment of the present application proposes a three-dimensional point cloud target detection device based on a three-dimensional heat map, comprising:
[0034] The point cloud processing module is configured to input the point cloud into a multi-layer sparse convolution to obtain a first feature map, interpolate the first feature map to the original spatial position of the point cloud in sequence using a bilinear interpolation method to obtain a second feature map, concatenate the second feature map, and output an N*C dimensional feature map, where N refers to the number of points in the point cloud and C refers to the number of channels;
[0035] A first prediction module is configured to input an N*C dimensional feature map into a first fully connected layer, and output an N*4 dimensional feature map, wherein the output data includes the coordinates of the predicted point cloud and the predicted thermal response value, wherein the thermal response value of each point represents the relationship between the position information of the point in the object and the center position of the object;
[0036] The second prediction module is configured to input the N*C dimensional feature map into the second fully connected layer and output a five-dimensional vector, which respectively represents the length, width, height, category and deflection angle of the predicted object;
[0037] a center coordinate determination module configured to regress the predicted thermal response value through a three-dimensional Gaussian distribution to obtain a mean of the Gaussian distribution, i.e., the predicted center coordinate of the object; and
[0038] The target detection result output module is configured to merge the predicted length, width, height, category, deflection angle and center coordinates of the object to obtain the target detection result.
[0039] In a third aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement a method as described in any implementation method in the first aspect.
[0040] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any implementation manner in the first aspect.
[0041] The present invention proposes a three-dimensional point cloud target detection method and device based on a three-dimensional heat map. The present invention is based on the innovation and promotion of the idea of a three-dimensional heat map, and for the first time combines the three-dimensional thermal response value to form a heat map with three-dimensional target detection. The present invention uses a three-dimensional sparse convolution backbone network to process the original point cloud, predicts the thermal response value of the original scene point cloud, and then regresses the three-dimensional normal distribution from the thermal response value. The mean of the three-dimensional normal distribution is the center point position of the object. Combined with the object length, width, height, category and deflection angle results predicted by the N*C dimensional feature map, the position and category of the object can be detected. The present invention retains the spatial structure information of the original point cloud. Experiments show that the detection accuracy and classification ability of the target are improved compared with the current high-speed target detection method. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 is an exemplary device architecture diagram to which an embodiment of the present application may be applied;
[0044] Figure 2 A schematic diagram of a process of a three-dimensional point cloud target detection method based on a three-dimensional heat map according to an embodiment of the present invention;
[0045] Figure 3 A schematic diagram of a backbone network of a three-dimensional point cloud target detection method based on a three-dimensional heat map according to an embodiment of the present invention;
[0046] Figure 4 A schematic diagram of a heat map of an object in a three-dimensional point cloud target detection method based on a three-dimensional heat map according to an embodiment of the present invention;
[0047] Figure 5 A schematic diagram of the network structure of a second fully connected neural network of a three-dimensional point cloud target detection method based on a three-dimensional heat map according to an embodiment of the present invention;
[0048] Figure 6 Schematic diagram of a three-dimensional point cloud target detection device based on a three-dimensional heat map according to an embodiment of the present invention;
[0049] Figure 7 It is a schematic diagram of the structure of a computer device suitable for implementing the electronic device of the embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] Figure 1 An exemplary device architecture 100 is shown to which a 3D point cloud target detection method based on a 3D heat map or a 3D point cloud target detection device based on a 3D heat map according to an embodiment of the present application can be applied.
[0052] like Figure 1As shown, the device architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0053] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various applications, such as data processing applications, file processing applications, etc., can be installed on terminal devices 101, 102, 103.
[0054] Terminal devices 101, 102, 103 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc. When terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. They can be implemented as multiple software or software modules (for example, software or software modules used to provide distributed services), or they can be implemented as a single software or software module. No specific limitation is made here.
[0055] The server 105 may be a server that provides various services, such as a background data processing server that processes files or data uploaded by the terminal devices 101, 102, and 103. The background data processing server may process the acquired files or data and generate processing results.
[0056] It should be noted that the three-dimensional point cloud target detection method based on the three-dimensional heat map provided in the embodiment of the present application can be executed by the server 105, and can also be executed by the terminal devices 101, 102, and 103. Accordingly, the three-dimensional point cloud target detection device based on the three-dimensional heat map can be set in the server 105, and can also be set in the terminal devices 101, 102, and 103.
[0057] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided as required. In the case where the processed data does not need to be obtained remotely, the above device architecture may not include a network, but only a server or a terminal device.
[0058] Figure 2 It is shown that an embodiment of the present application discloses a three-dimensional point cloud target detection method based on a three-dimensional heat map, comprising the following steps:
[0059] Step S1, input the point cloud into multi-layer sparse convolution to obtain the first feature map, use bilinear interpolation to sequentially interpolate the first feature map to the original spatial position of the point cloud to obtain the second feature map, splice the second feature map, and output an N*C dimensional feature map, where N refers to the number of points in the point cloud and C refers to the number of channels.
[0060] In a specific embodiment, the schematic diagram of the backbone network formed by multiple layers of sparse convolution is as follows: Figure 3 As shown, in the backbone network, the point cloud data is subjected to multi-layer sparse convolution to obtain first feature maps of different scales, and then the first feature maps are interpolated to the spatial positions of the original point cloud in sequence using the bilinear interpolation method. The spatial position of the original point cloud is the position of the point cloud in the world coordinate system with the radar scanner as the origin. The interpolated second feature maps are spliced to obtain N*C dimensional feature maps. In a preferred embodiment, splicing specifically includes: adding the feature values of the corresponding positions of the second feature maps. In the network design, C is preferably 64.
[0061] Step S2, inputting the N*C dimensional feature map into the first fully connected neural network, outputting an N*4 dimensional feature map, and outputting data including the coordinates of the predicted point cloud and the predicted thermal response value, wherein the thermal response value of each point represents the relationship between the position information of the point in the object and the center position of the object.
[0062] In a specific embodiment, in a world coordinate system with the radar scanner as the origin, assuming that the center coordinates of the object are u(a, b, c), and the coordinates of any point in the object are q(m, n, t), the thermal response value of the point is:
[0063]
[0064] The above formula converts the thermal response value into a quantitative indicator, which is convenient for calculation.
[0065] In a specific embodiment, in step S2, the real thermal response value of each point is calculated by the spatial position of the point cloud, and the first fully connected neural network is trained using the real thermal response value. The thermal response value of each point reflects the position information of the point in the object, and the range of the thermal response value is (0, 1]. The thermal response value from small to large indicates that the distance from the point to the center of the object is from far to near. When the thermal response value is 1, the coordinates of the point are the center coordinates of the object. Therefore, the thermal map of the object can be formed according to the thermal response value corresponding to each point cloud position, such as Figure 4As shown. The calculation formula of the real thermal response value of each point refers to formula (1). When predicting the thermal response value, the predicted thermal response value is supervised by the calculated real thermal response value, so the first fully connected neural network is trained to obtain an accurate predicted thermal response value. The original point cloud is processed using the three-dimensional sparse convolution backbone network to predict the thermal response value of the original scene point cloud.
[0066] In a specific embodiment, the input dimension of the first fully connected network is set to C, and the output dimension is set to 4, so that an N*4-dimensional feature map can be obtained, and the output information is the predicted three-dimensional coordinates (x, y, z) of the point cloud and the corresponding predicted thermal response value. In a specific embodiment, the first fully connected neural network includes a first input layer, a first hidden layer and a first output layer, and a smooth L1 loss function is used for fitting convergence. The first fully connected neural network can accurately and quickly calculate the three-dimensional coordinates of the predicted point cloud and the predicted thermal response value.
[0067] Step S3, input the N*C dimensional feature map into the second fully connected neural network, and output a five-dimensional vector, which respectively represents the length, width, height, category and deflection angle of the predicted object.
[0068] In a specific embodiment, the second fully connected neural network includes a second input layer, a second hidden layer and a second output layer, uses a smooth L1 loss function to obtain the size of the prediction box, and uses a focal loss loss to predict the category. The network structure of the second fully connected neural network is as follows: Figure 5 As shown, the second hidden layer has only one layer. The length, width, height, category and deflection angle of the object are predicted through the second fully connected neural network, and the calculation speed is fast.
[0069] Step S4, regressing the predicted thermal response value through the three-dimensional Gaussian distribution to obtain the mean of the Gaussian distribution, that is, the predicted center coordinates of the object.
[0070] In a specific embodiment, step S4 specifically includes: assuming that the predicted thermal response value of the i-th point is Y i , the coordinates of this point are q i (m i ,n i ,t i ), then the mean of the three-dimensional normal distribution of the point is μ(μ1,μ2,μ3), where the covariance matrix variance of the normal distribution is a diagonal matrix, and the values of the diagonal lines set the hyperparameters σ1, σ2, σ3,
[0071] Then we have:
[0072]
[0073]
[0074] make Then the original formula is expanded:
[0075]
[0076] for have:
[0077]
[0078] Using the least squares method:
[0079]
[0080] Regress the mean of the Gaussian distribution, which is the predicted center coordinate of the object.
[0081] The three-dimensional normal distribution is regressed from the heat map, and the mean of the three-dimensional normal distribution is the center point position of the object.
[0082] Step S5, combining the predicted length, width, height, category, deflection angle and center coordinates of the object to obtain the target detection result.
[0083] The target detection result can be obtained by combining the length, width, height, category and deflection angle of the object predicted in step S3 with the center coordinates predicted in step S4.
[0084] Further references Figure 6 As an implementation of the methods shown in the above figures, the present application provides an embodiment of a three-dimensional point cloud target detection device based on a three-dimensional heat map. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0085] The embodiment of the present application proposes a three-dimensional point cloud target detection device based on a three-dimensional heat map, comprising:
[0086] The point cloud processing module 1 is configured to input the point cloud into a multi-layer sparse convolution to obtain a first feature map, interpolate the first feature map to the original spatial position of the point cloud in sequence using a bilinear interpolation method to obtain a second feature map, concatenate the second feature map, and output an N*C dimensional feature map, where N refers to the number of points in the point cloud and C refers to the number of channels;
[0087] A first prediction module 2 is configured to input an N*C dimensional feature map into a first fully connected layer, and output an N*4 dimensional feature map, wherein the output data includes the coordinates of the predicted point cloud and the predicted thermal response value, wherein the thermal response value of each point represents the relationship between the position information of the point in the object and the center position of the object;
[0088] The second prediction module 3 is configured to input the N*C dimensional feature map into the second fully connected layer and output a five-dimensional vector, which respectively represents the length, width, height, category and deflection angle of the predicted object;
[0089] The center coordinate determination module 4 is configured to regress the predicted thermal response value through a three-dimensional Gaussian distribution to obtain a mean value of the Gaussian distribution, that is, the predicted center coordinate of the object; and
[0090] The target detection result output module 5 is configured to combine the predicted length, width, height, category, deflection angle and center coordinates of the object to obtain the target detection result.
[0091] The functions of the above modules correspond to the methods and will not be repeated here.
[0092] The present invention proposes a three-dimensional point cloud target detection method and device based on a three-dimensional heat map. The present invention is based on the innovation and promotion of the idea of a three-dimensional heat map, and for the first time combines the three-dimensional thermal response value to form a heat map with three-dimensional target detection. The present invention uses a three-dimensional sparse convolution backbone network to process the original point cloud, predicts the thermal response value of the original scene point cloud, and then regresses the three-dimensional normal distribution from the thermal response value. The mean of the three-dimensional normal distribution is the center point position of the object. Combined with the object length, width, height, category and deflection angle results predicted by the N*C dimensional feature map, the position and category of the object can be detected. The present invention retains the spatial structure information of the original point cloud. Experiments show that the detection accuracy and classification ability of the target are improved compared with the current high-speed target detection method.
[0093] Reference below Figure 7 , which shows an electronic device (eg Figure 1 A schematic diagram of the structure of a computer device 700 (a server or terminal device as shown). Figure 7 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0094] like Figure 7 As shown, the computer device 700 includes a central processing unit (CPU) 701 and a graphics processing unit (GPU) 702, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 703 or a program loaded from a storage part 709 to a random access memory (RAM) 704. In the RAM 704, various programs and data required for the operation of the device 700 are also stored. The CPU 701, GPU 702, ROM 703 and RAM 704 are connected to each other through a bus 705. An input / output (I / O) interface 706 is also connected to the bus 705.
[0095] The following components are connected to the I / O interface 706: an input section 707 including a keyboard, a mouse, etc.; an output section 708 including a display such as a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 709 including a hard disk, etc.; and a communication section 710 including a network interface card such as a LAN card, a modem, etc. The communication section 710 performs communication processing via a network such as the Internet. A drive 711 can also be connected to the I / O interface 706 as needed. A removable medium 712, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 711 as needed, so that a computer program read therefrom is installed into the storage section 709 as needed.
[0096] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 710, and / or installed from a removable medium 712. When the computer program is executed by a central processing unit (CPU) 701 and a graphics processing unit (GPU) 702, the above-mentioned functions defined in the method of the present application are executed.
[0097] It should be noted that the computer-readable medium described in the present application may be a computer-readable signal medium or a computer-readable medium or any combination of the above two. The computer-readable medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor device, device or component, or any combination of the above. More specific examples of computer-readable media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution device, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable medium that can send, propagate or transmit a program for use by or in conjunction with an instruction execution device, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0098] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0099] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the device, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based device that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0100] The modules involved in the embodiments described in this application may be implemented by software or hardware, and the modules described may also be set in a processor.
[0101] As another aspect, the present application further provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: inputs the point cloud into multi-layer sparse convolution to obtain a first feature map, interpolates the first feature map to the original spatial position of the point cloud in sequence using a bilinear interpolation method to obtain a second feature map, splices the second feature map, and outputs an N*C-dimensional feature map, where N refers to the number of points in the point cloud and C represents the number of channels; inputs the N*C-dimensional feature map into a first fully connected neural network, outputs an N*4-dimensional feature map, and the output data includes the predicted coordinates of the point cloud and the predicted thermal response value, wherein the thermal response value of each point represents the relationship between the position information of the point in the object and the center position of the object; inputs the N*C-dimensional feature map into a second fully connected neural network, outputs a five-dimensional vector, which respectively represents the predicted length, width, height, category and deflection angle of the object; regresses the predicted thermal response value through a three-dimensional Gaussian distribution to obtain the mean of the Gaussian distribution, that is, the predicted center coordinates of the object; and merges the predicted length, width, height, category, deflection angle and center coordinates to obtain a target detection result.
[0102] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.
Claims
1. A three-dimensional point cloud target detection method based on three-dimensional heat map, characterized in that: The following steps are involved: Point cloud processing step, inputting the point cloud into multi-layer sparse convolution to obtain a first feature map, using bilinear interpolation to sequentially interpolate the first feature map to the original spatial position of the point cloud to obtain a second feature map, splicing the second feature map, and outputting an N*C dimensional feature map, where N refers to the number of points in the point cloud, and C represents the number of channels; A first prediction step, inputting the N*C dimensional feature map into a first fully connected neural network, outputting an N*4 dimensional feature map, and outputting data including the coordinates of the predicted point cloud and the predicted thermal response value, wherein the thermal response value of each point represents the relationship between the position information of the point in the object and the center position of the object; In a second prediction step, the N*C dimensional feature map is input into a second fully connected neural network, and a five-dimensional vector is output, which respectively represents the length, width, height, category and deflection angle of the predicted object; a center coordinate determination step, regressing the predicted thermal response value through a three-dimensional Gaussian distribution to obtain a mean value of the Gaussian distribution, i.e., the predicted center coordinate of the object; as well as The target detection result output step combines the predicted length, width, height, category, deflection angle and center coordinates of the object to obtain the target detection result.
2. The three-dimensional point cloud target detection method based on three-dimensional heat map according to claim 1 is characterized in that: In the world coordinate system with the radar scanner as the origin, let the center coordinates of the object be u(a,b,c) and the coordinates of any point in the object be q(m,n,t), then the thermal response value of the point is:
3. The three-dimensional point cloud target detection method based on three-dimensional heat map according to claim 2 is characterized in that: In the first prediction step, the true thermal response value of each point is calculated through the spatial position of the point cloud, and the first fully connected neural network is trained using the true thermal response value.
4. The three-dimensional point cloud target detection method based on three-dimensional heat map according to claim 2, characterized in that: The step of determining the center coordinates specifically includes: assuming that the predicted thermal response value of the i-th point is Y i , the coordinates of this point are q i (m i ,n i ,t i ), then the mean of the three-dimensional normal distribution of the point is μ(μ1,μ2,μ3), where the covariance matrix variance of the normal distribution is a diagonal matrix, and the values of the diagonal lines set the hyperparameters σ1, σ2, σ3, Then we have: make Then the original formula is expanded: for have: Using the least squares method: Regress the mean of the Gaussian distribution, which is the predicted center coordinate of the object.
5. The three-dimensional point cloud target detection method based on three-dimensional heat map according to any one of claims 1 to 4, characterized in that: In the point cloud processing step, splicing the second feature map specifically includes: adding feature values of corresponding positions of the second feature map.
6. The three-dimensional point cloud target detection method based on three-dimensional heat map according to any one of claims 1 to 4, characterized in that: The first fully connected neural network includes a first input layer, a first hidden layer and a first output layer, and uses a smoothL1 loss function to fit convergence.
7. The three-dimensional point cloud target detection method based on three-dimensional heat map according to any one of claims 1 to 4, characterized in that: The second fully connected neural network includes a second input layer, a second hidden layer and a second output layer, uses a smoothL1 loss function to obtain the size of the prediction box, and uses a focal loss loss to predict the category.
8. A three-dimensional point cloud target detection device based on a three-dimensional heat map, characterized in that: include: The point cloud processing module is configured to input the point cloud into a multi-layer sparse convolution to obtain a first feature map, interpolate the first feature map to the original spatial position of the point cloud in sequence using a bilinear interpolation method to obtain a second feature map, concatenate the second feature map, and output an N*C dimensional feature map, where N refers to the number of points in the point cloud and C represents the number of channels; A first prediction module is configured to input the N*C dimensional feature map into a first fully connected layer, and output an N*4 dimensional feature map, wherein the output data includes the coordinates of the predicted point cloud and the predicted thermal response value, wherein the thermal response value of each point represents the relationship between the position information of the point in the object and the center position of the object; A second prediction module is configured to input the N*C dimensional feature map into a second fully connected layer, and output a five-dimensional vector, which respectively represents the length, width, height, category and deflection angle of the predicted object; a center coordinate determination module, configured to regress the predicted thermal response value through a three-dimensional Gaussian distribution to obtain a mean of the Gaussian distribution, that is, the predicted center coordinate of the object; and The target detection result output module is configured to combine the predicted length, width, height, category, deflection angle and center coordinates of the object to obtain a target detection result.
9. An electronic device, comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Super-resolution point cloud generation method based on deep learning
CN110163799A
Three-dimensional target detection method and device, computer equipment and storage medium
CN111199206A
Measurement platform that automatically determines wear of machine components based on images
US10282834B1
