Target detection method, device, electronic device and storage medium

By mapping the three-dimensional point cloud data with the color information in the two-dimensional image and separating the static point cloud data, and converting it into a two-dimensional image for target detection, the problem of low efficiency and poor effect of point cloud data target detection in the existing technology is solved. Efficient detection and accurate labeling of static targets are achieved.

CN118657936BActive Publication Date: 2024-10-22BEIJING HAITIAN RUISHENG SCI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411149106.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-10-22
Estimated Expiration
2044-08-21

AI Technical Summary

Technical Problem

In the existing technology, point cloud data target detection and labeling have problems such as high labeling cost, low labeling efficiency and poor labeling effect. Especially in fields such as autonomous driving, it is difficult to effectively distinguish and detect static targets.

Method used

By acquiring three-dimensional point cloud data and mapping it with the color information in the two-dimensional image, the static point cloud data is separated, converted into a two-dimensional image for target detection, and the three-dimensional detection results are fitted based on the two-dimensional detection results, which improves the target Detection efficiency and accuracy.

Benefits of technology

It achieves efficient detection of static targets in three-dimensional point cloud data, reduces annotation costs and improves detection efficiency, meets detection needs, avoids interference from dynamic targets, and enhances the accuracy of target classification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657936B_ABST
    Figure CN118657936B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the application field of point cloud data processing, and is about a target detection method, device, electronic device and storage medium. In view of the difficulty in detecting targets in three-dimensional point cloud data, the target detection method includes: obtaining three-dimensional point cloud data of a target scene, and collecting a two-dimensional image of the target scene to obtain a second image; mapping the color information of pixels in the second image to the three-dimensional point cloud data to obtain three-dimensional point cloud data corresponding to color information; separating static point cloud data in the three-dimensional point cloud data; intercepting the static point cloud data to obtain a first image, which is a two-dimensional image; performing static target detection based on pixels in the first image and color information corresponding to the pixels to obtain a two-dimensional detection result of the static target, and based on the two-dimensional detection result, obtaining a three-dimensional detection result of the static target in the target scene. Through the present disclosure, the accuracy of target detection and the target detection effect are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention generally relates to the field of point cloud data processing, and in particular to a target detection method, device, electronic device and storage medium. Background Art

[0002] At present, with the development of technology, point cloud data plays an indispensable role in fields such as autonomous driving with its high precision and rich information. By annotating the content in the point cloud data, the environment corresponding to the point cloud data can be perceived based on the data content in the point cloud data.

[0003] However, in the related technologies, target detection and labeling of point cloud data have problems such as high labeling cost, low labeling efficiency and poor labeling effect. Summary of the invention

[0004] In order to solve the above problems existing in the prior art, the present disclosure provides a target detection method, device, electronic device and storage medium.

[0005] The first aspect of the present invention provides a target detection method, including: acquiring three-dimensional point cloud data of a target scene, and collecting a two-dimensional image of the target scene to obtain a second image, wherein pixels in the second image correspond to color information; mapping the color information of pixels in the second image to the three-dimensional point cloud data to obtain three-dimensional point cloud data corresponding to color information; separating static point cloud data in the three-dimensional point cloud data; intercepting the static point cloud data to obtain a first image, which is a two-dimensional image; performing static target detection based on pixels in the first image and color information corresponding to the pixels to obtain a two-dimensional detection result of the static target, and obtaining a three-dimensional detection result of the static target in the target scene based on the two-dimensional detection result; wherein the static point cloud data corresponds to color information, and the pixels in the first image correspond to color information.

[0006] In one embodiment, the two-dimensional image capture of the static point cloud data to obtain a first image includes: controlling a two-dimensional image acquisition device to capture the static point cloud data from multiple orientations at a preset height to obtain multiple first images; performing static target detection based on pixels in the first image and color information corresponding to the pixels to obtain a two-dimensional detection result of the static target, and obtaining a three-dimensional detection result of the static target in the target scene based on the two-dimensional detection result, including: performing static target detection in the multiple first images to obtain multiple two-dimensional detection results of the static target; fitting the multiple two-dimensional detection results according to the heights and orientations corresponding to the capture of the multiple first images to obtain a three-dimensional detection result corresponding to the static target.

[0007] In one embodiment, separating the static point cloud data from the three-dimensional point cloud data includes: constructing four-dimensional point cloud data corresponding to the three-dimensional point cloud data, the point cloud data in the four-dimensional point cloud data corresponding to color information; separating four-dimensional static point cloud data corresponding to color information from the four-dimensional point cloud data; and using the four-dimensional static point cloud data as the static point cloud data.

[0008] In one embodiment, the method further includes: separating dynamic point cloud data corresponding to color information from the four-dimensional point cloud data, and labeling the dynamic point cloud data based on the color information.

[0009] The second aspect of the present invention provides a target detection device, including: an acquisition unit, which acquires three-dimensional point cloud data of a target scene, and collects a two-dimensional image of the target scene to obtain a second image, wherein pixels in the second image correspond to color information, and the color information of pixels in the second image is mapped to the three-dimensional point cloud data to obtain three-dimensional point cloud data corresponding to color information; a processing unit, which is used to separate static point cloud data in the three-dimensional point cloud data, and intercept the static point cloud data to obtain a first image, and perform static target detection based on pixels in the first image and color information corresponding to the pixels to obtain a two-dimensional detection result of the static target, and based on the two-dimensional detection result, obtain a three-dimensional detection result of the static target in the target scene; wherein the first image is a two-dimensional image, the static point cloud data corresponds to color information, and the pixels in the first image correspond to color information.

[0010] In one embodiment, the processing unit uses the following method to capture a two-dimensional image of the static point cloud data to obtain a first image: control the two-dimensional image acquisition device to capture the static point cloud data from multiple orientations according to a preset height to obtain multiple first images; the processing unit uses the following method to perform static target detection based on pixels in the first image and color information corresponding to the pixels to obtain a two-dimensional detection result of the static target, and based on the two-dimensional detection result, obtain a three-dimensional detection result of the static target in the target scene: perform static target detection in the multiple first images respectively to obtain multiple two-dimensional detection results of the static target; fit the multiple two-dimensional detection results according to the corresponding heights and orientations when the multiple first images were captured to obtain a three-dimensional detection result corresponding to the static target.

[0011] In one embodiment, the processing unit separates the static point cloud data in the three-dimensional point cloud data in the following manner: constructing four-dimensional point cloud data corresponding to the three-dimensional point cloud data, the point cloud data in the four-dimensional point cloud data corresponding to color information; separating four-dimensional static point cloud data corresponding to color information from the four-dimensional point cloud data; and using the four-dimensional static point cloud data as the static point cloud data.

[0012] In one embodiment, the processing unit is further used to: separate dynamic point cloud data corresponding to color information from the four-dimensional point cloud data, and label the dynamic point cloud data based on the color information.

[0013] The third aspect of the present invention provides an electronic device, comprising: a memory for storing instructions; and a processor for calling the instructions stored in the memory to execute the target detection method described in the first aspect or any one of the embodiments of the first aspect.

[0014] A fourth aspect of the present invention provides a computer-readable storage medium storing instructions, which, when executed by a processor, executes the target detection method as described in the first aspect or any one of the embodiments of the first aspect.

[0015] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: by separating the three-dimensional point cloud data, obtaining the static point cloud data representing the static target in the three-dimensional point cloud data, converting the static point cloud data into a first image, and performing static target detection on the first image, and fitting the obtained detection result into the three-dimensional detection result of the static target. The detection efficiency of the static target in the three-dimensional point cloud data is improved, so that the detection result of the static target obtained meets the detection requirements.

[0016] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The above and other objects, features and advantages of the embodiments of the present invention will become readily understood by reading the following detailed description with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, in which:

[0018] Figure 1 The figure is a flow chart of a target detection method according to an exemplary embodiment.

[0019] Figure 2 The figure is a flow chart of a method for obtaining three-dimensional detection results according to an exemplary embodiment.

[0020] Figure 3The figure is a flow chart of a static point cloud data separation method according to an exemplary embodiment.

[0021] Figure 4 It is a schematic diagram of a first image of a scene labeled for static object perception in an autonomous driving scenario.

[0022] Figure 5 The figure is a block diagram of a target detection device according to an exemplary embodiment.

[0023] Figure 6 It is a block diagram of an electronic device for target detection according to an exemplary embodiment. DETAILED DESCRIPTION

[0024] The principle and spirit of the present invention will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present invention, and are not intended to limit the scope of the present invention in any way.

[0025] It should be noted that although the expressions "first", "second", etc. are used herein to describe different modules, steps, data, etc. of the embodiments of the present invention, the expressions "first", "second", etc. are only used to distinguish between different modules, steps, data, etc., and do not indicate a specific order or importance. In fact, the expressions "first", "second", etc. can be used interchangeably.

[0026] The target detection method provided by the embodiment of the present disclosure is applied to the field of image processing. The target detection method provided by the embodiment of the present disclosure is mainly used to detect targets existing in point cloud data, to distinguish different targets in the point cloud data, so as to facilitate the subsequent labeling operation of the detected targets.

[0027] The target detection method provided in the embodiments of the present disclosure can be applied to the scene of static object perception and annotation in the autonomous driving scene. It should be understood that the application scenario of the target detection method provided in the embodiments of the present disclosure is only for illustrative purposes, and can also be applied to other scenes of target detection or annotation based on three-dimensional or four-dimensional point cloud data, such as scenes such as three-dimensional modeling of warehouse space.

[0028] The target detection scheme in the related art still has a lot of room for improvement in the scene of target detection on three-dimensional or four-dimensional point cloud data. The target detection methods for point cloud data in the related art mainly include:

[0029] A. Pure manual labeling. The staff manually selects the labeling tool and labels the point cloud data based on their own judgment of the point cloud data to achieve target detection of the point cloud data. However, due to the different recognition capabilities of different staff members, the manually labeled target detection solution has problems in terms of detection standards and detection quality that cannot be well controlled.

[0030] B. Perform manual labeling based on the pre-labeling results of the perception algorithm. The objects in the point cloud data are pre-labeled by the perception algorithm to obtain the pre-labeling results. The staff further performs labeling operations based on the pre-labeling results. However, although manual labeling combined with the perception algorithm can assist the staff in target detection, there is still the problem that the detection standard and detection quality cannot be well controlled due to the subjective judgment involved in the labeling process.

[0031] Moreover, for technical solutions involving the use of manual annotation for target detection, if target detection is performed on continuous point cloud data frames, manual frame-by-frame detection is required. Each frame needs to be labeled with the target in the three-dimensional point cloud data and the corresponding two-dimensional target, and the same instance in different frames needs to be labeled with the same relationship, which results in a problem of excessive workload.

[0032] C. Fuse continuous frames of 3D point cloud into 4D point cloud data, and use the algorithm for target detection. By fusing continuous 3D point cloud data frames, 4D point cloud data that can contain point cloud data corresponding to multiple times is obtained, and then the preset algorithm is used to perform target detection on the 4D point cloud data. However, although target detection of 4D point cloud data can reduce the workload of target detection for continuous frames of 3D point cloud, since the target 3D point cloud data does not contain color information, or the color information is only used to characterize the depth information or point cloud density of the target, it is impossible to effectively distinguish targets with the same shape but different colors, and since there are dynamic targets and static targets in the 4D point cloud data, dynamic targets are easy to interfere with the detection of static targets, affecting the labeling efficiency. In addition, although the fused 4D point cloud data solves the tracking problem of continuous frames of static objects well, and each object only needs to be labeled once, it is necessary to label all static objects in a huge 4D point cloud scene. The current algorithm is difficult to support the detection of too many types of static point cloud data.

[0033] In summary, the related technologies have the problems of poor effect and efficiency of target detection or labeling and high difficulty of target detection.

[0034] In view of this, a target detection method is provided in an embodiment of the present disclosure, which separates static point cloud data in three-dimensional point cloud data, converts the static point cloud data into a two-dimensional image, performs target detection based on the two-dimensional image, and fits a three-dimensional target detection result, thereby realizing automated target detection operation on point cloud data, and improving the success rate of target detection in three-dimensional point cloud data and improving the detection effect of target detection.

[0035] Figure 1 is a flow chart of a target detection method according to an exemplary embodiment. Figure 1 As shown, the following steps are included.

[0036] In step S11, three-dimensional point cloud data of the target scene is acquired, and a two-dimensional image of the target scene is captured to obtain a second image.

[0037] In the embodiment of the present disclosure, the three-dimensional point cloud data of the target scene does not have corresponding color information, and the pixels in the second image correspond to color information. The second image can be a color image corresponding to the second three-dimensional point cloud data obtained by a camera sensor. It should be understood that obtaining the second image by a camera sensor is only for exemplary description, and the method for obtaining the second image is not limited in the embodiment of the present disclosure.

[0038] In the disclosed embodiment, the static point cloud data corresponds to color information, and the pixels in the first image correspond to color information.

[0039] In the disclosed embodiment, the three-dimensional point cloud data at least includes static point cloud data corresponding to a static target, wherein the static target is target point cloud data representing the point cloud data of the same object whose position does not change with time.

[0040] In the disclosed embodiment, the three-dimensional point cloud data may include only a single frame of three-dimensional point cloud data, or may include continuous multiple frames of three-dimensional point cloud data.

[0041] In step S12, the color information of the pixels in the second image is mapped to the three-dimensional point cloud data to obtain the three-dimensional point cloud data corresponding to the color information.

[0042] In the embodiment of the present disclosure, the third three-dimensional point cloud data represents the three-dimensional point cloud data with corresponding color information at each moment. By mapping the three-dimensional point cloud data and the second image, a corresponding relationship is established between the point cloud information in the three-dimensional point cloud data and the pixel information in the second image, the color information of each pixel in the second image is set as the color information corresponding to each point cloud point in the three-dimensional point cloud data, and the three-dimensional point cloud data with the color information corresponding to the point cloud data is determined as the three-dimensional point cloud data.

[0043] In step S13, the static point cloud data in the three-dimensional point cloud data is separated.

[0044] In the embodiments of the present disclosure, the separation method can be dynamically selected based on the proportion of static point cloud data and dynamic point cloud data contained in the three-dimensional point cloud data. For example, if it is detected that there are relatively few dynamic point cloud data in the three-dimensional point cloud data, the dynamic point cloud data in the three-dimensional point cloud data can be separated, and the remaining three-dimensional point cloud data can be used as static point cloud data. This reduces the difficulty of separating the static point cloud data in the three-dimensional point cloud data. It should be understood that the above-mentioned method of separating the static point cloud data and dynamic point cloud data contained in the three-dimensional point cloud data is only for exemplary description, and the embodiments of the present disclosure can also select the separation method according to other conditions or criteria.

[0045] In step S14, the static point cloud data is intercepted to obtain a first image.

[0046] In the disclosed embodiment, the first image is a two-dimensional image. In traditional three-dimensional point cloud data or four-dimensional point cloud data, the task of target detection is to identify and locate specific objects, such as vehicles, pedestrians, etc. This usually requires analyzing the point cloud data to identify meaningful patterns and structures, which has the problem of difficult target detection and poor effect.

[0047] In the disclosed embodiment, each combination of height and viewing angle information corresponds to a first image, which is used to identify that the first image intercepts the static point cloud data at this height and viewing angle to obtain a two-dimensional image observed at this height and viewing angle.

[0048] It should be understood that, since the first image is an interception of the three-dimensional point cloud data at a specific height and angle, the pixel information in the first image can represent part of the point cloud data in the three-dimensional point cloud data.

[0049] It should be understood that the technology for target detection on two-dimensional images is more mature than the target detection technology for three-dimensional point cloud data, and the target detection effect is better.

[0050] In step S15, static target detection is performed based on the pixels in the first image and the color information corresponding to the pixels to obtain a two-dimensional detection result of the static target, and based on the two-dimensional detection result, a three-dimensional detection result of the static target in the target scene is obtained.

[0051] In the disclosed embodiment, two-dimensional target detection is performed on a preset number of first images to obtain detection results of static targets corresponding to each first image. Exemplarily, the two-dimensional target detection method can be an existing method such as YouOnly Look Once (YOLO) or Detection Transformer (DETR) to perform two-dimensional target detection. The disclosed embodiment does not specifically limit the method for performing two-dimensional image target detection.

[0052] In the disclosed embodiment, the three-dimensional point cloud data may also include dynamic point cloud data corresponding to dynamic targets. If the three-dimensional point cloud data only includes single-frame three-dimensional point cloud data, the dynamic point cloud data in the three-dimensional point cloud data may be determined based on operations such as multi-sensor fusion or deep learning. For example, a two-dimensional image corresponding to the three-dimensional point cloud data may be obtained, and the residual image in the two-dimensional image may be determined to determine the dynamic target in the corresponding three-dimensional point cloud data and the corresponding dynamic point cloud data. If the three-dimensional point cloud data includes multiple frames of three-dimensional point cloud data, the dynamic point cloud data corresponding to the dynamic target and the static point cloud data corresponding to the static target may be separated based on trajectory matching between the multiple frames of point cloud data.

[0053] For example, dynamic targets may be moving vehicles and walking pedestrians, whose positions and postures may change in consecutive frames, while static targets remain unchanged.

[0054] It should be understood that the above method for determining dynamic point cloud data and static point cloud data in three-dimensional point cloud data is only used for exemplary analysis, and the specific manner of separating dynamic and static point cloud data in point cloud data is not limited in the embodiments of the present disclosure.

[0055] In the embodiment of the present disclosure, based on the height and viewing angle information corresponding to each first image, multiple first images are fitted and restored to obtain three-dimensional point cloud data with target detection results, wherein the three-dimensional static target detection results are obtained by fitting based on a preset number of first images. It should be understood that the method of fitting the preset number of first images into three-dimensional point cloud data can be an existing technology such as a projection reconstruction method or a stereoscopic vision reconstruction method, and the embodiment of the present disclosure does not specifically limit the method of fitting the preset number of first images into three-dimensional point cloud data.

[0056] In the disclosed embodiment, the static point cloud data contained in the three-dimensional point cloud data is separated, and the static point cloud data is converted into a preset number of first images, two-dimensional target detection is performed on the first images, and finally the two-dimensional target detection results are fitted to obtain the detection results of the static targets. Compared with the traditional target detection on three-dimensional point cloud data, the interference caused by dynamic targets in the three-dimensional point cloud data can be avoided, and because the two-dimensional target detection technology is more mature than the three-dimensional target detection technology, the disclosed embodiment can achieve better target detection.

[0057] In the disclosed embodiment, since the 3D point cloud data does not contain color information, it is impossible to distinguish attributes of the same shape in the 3D point cloud data, and it is difficult to distinguish targets of different colors. For example, a multi-purpose sports car (SUV) and a van may appear the same in the 3D point cloud data, resulting in the need to combine the color in the 2D image for target detection.

[0058] In the disclosed embodiment, the three-dimensional point cloud data and the preset number of first images may also correspond to color information. The color information can be used to add more information to the first image to achieve more accurate target detection.

[0059] In the disclosed embodiment, since a single two-dimensional image data cannot fully represent the information contained in the three-dimensional point cloud data, the preset number may be a positive integer greater than 1. In addition, different first images correspond to at least one different height and viewing angle, so as to ensure that the first images observe the static point cloud data from different spatial positions.

[0060] Figure 2 is a flow chart of a method for obtaining three-dimensional detection results according to an exemplary embodiment. Figure 2 As shown, the following steps are included.

[0061] In step S21, the two-dimensional image acquisition device is controlled to capture the static point cloud data from multiple directions at a preset height to obtain multiple first images.

[0062] In the embodiment of the present disclosure, the plurality of first images include pixel information of static targets acquired at corresponding heights and viewing angles.

[0063] In step S22, static object detection is performed in the multiple first images respectively to obtain multiple two-dimensional detection results of the static objects.

[0064] In the disclosed embodiment, a preset number of multiple first images can be obtained according to the height information and angle information corresponding to each first image. The height and angle corresponding to each first image can be preset, and when it is detected that a static target in the three-dimensional point cloud data needs to be detected, the first image corresponding to the static point cloud data is intercepted according to the preset height and viewing angle. Moreover, the height and angle corresponding to each first image can also be obtained by real-time calculation based on the actual scene. For example, a pre-trained computing model can be used to determine the information of the static point cloud data in the three-dimensional point cloud data to determine in real time at which height and viewing angle the first image needs to be acquired.

[0065] In step S23, multiple two-dimensional detection results are fitted according to the corresponding heights and orientations when the multiple first images are captured, so as to obtain three-dimensional detection results corresponding to the static targets.

[0066] In the disclosed embodiment, the two-dimensional detection result may additionally include the detection result of the target object compared to the first image, for example, the detected two-dimensional target may be framed or marked, and the two-dimensional detection result may additionally include the target object detection frame compared to the content of the first image.

[0067] In the embodiment of the present disclosure, the three-dimensional detection result obtained after fitting the two-dimensional detection result can additionally include the detection result of the target and the corresponding annotation content in the content compared to the three-dimensional point cloud data.

[0068] In an exemplary embodiment, eight first images are captured from the three-dimensional point cloud data at a fixed height and eight azimuth angles, and two-dimensional target detection can be used to detect each first image. Finally, the target detection frame of the final three-dimensional point cloud data is fitted based on the height and viewing angle.

[0069] In the embodiment of the present disclosure, in response to the 3D point cloud data being multiple frames of 3D point cloud data, each frame of 3D point cloud data is obtained by fusing the second 3D point cloud data without color information and the second image with color, and the second image is a 2D image.

[0070] Figure 3 is a flowchart of a static point cloud data separation method according to an exemplary embodiment. Figure 3 As shown, the following steps are included.

[0071] In step S31, four-dimensional point cloud data corresponding to the three-dimensional point cloud data is constructed, and the point cloud data in the four-dimensional point cloud data corresponds to color information.

[0072] In the disclosed embodiment, the point cloud data in the four-dimensional point cloud data corresponds to color information, wherein the point cloud data of different targets corresponds to different color information. Compared with three-dimensional point cloud data, four-dimensional point cloud data can identify the position of dynamic point cloud data in three-dimensional space that changes with time, that is, four-dimensional point cloud data can identify the same dynamic target in three-dimensional space at different times.

[0073] In step S32, four-dimensional static point cloud data corresponding to color information is separated from the four-dimensional point cloud data.

[0074] In the disclosed embodiment, the four-dimensional point cloud data is separated into dynamic and static parts based on the four-dimensional point cloud data and the corresponding color information. It is only necessary to annotate the static point cloud data corresponding to the static target once, and there is no need to repeatedly annotate the static point cloud data corresponding to the same static target in multiple frames of three-dimensional point cloud data frame by frame, thereby reducing the number of target detection times and saving target detection time.

[0075] In step S33, the four-dimensional static point cloud data is used as static point cloud data.

[0076] In the disclosed embodiment, the four-dimensional static point cloud data obtained through the dynamic-static separation operation based on the colored four-dimensional point cloud data can show a better separation effect than the three-dimensional static point cloud data obtained through the dynamic-static separation operation based on the three-dimensional point cloud data, and avoid the dynamic point cloud data corresponding to the dynamic target from affecting the static point cloud data during the separation process.

[0077] In the disclosed embodiment, if colored four-dimensional static point cloud data is obtained, the first image obtained based on the four-dimensional static point cloud data is also colored, so that color can be used as an additional indicator for target detection when static target detection is performed on the first image. By adding additional color information to the first image on the basis of the original target detection based on the pixel information of the first image, and performing target detection operations by combining the pixel information and the color information, it is possible to distinguish and detect targets of the same shape but different colors, thereby improving the accuracy of target classification and the precision of target detection.

[0078] In step S34, dynamic point cloud data corresponding to color information is separated from the four-dimensional point cloud data, and the dynamic point cloud data is labeled based on the color information.

[0079] In the disclosed embodiments, dynamic point cloud data are annotated based on colored dynamic point cloud data. Since color factors are taken into consideration, target detection of dynamic point cloud data in related technologies can further detect and annotate targets based on color, thereby increasing the accuracy of target detection.

[0080] In an exemplary embodiment, mapping the second three-dimensional point cloud data at each time and the second image to obtain the third three-dimensional point cloud data corresponding to n time points can be achieved in the following manner:

[0081] a. Depth camera and stereo vision technology: Depth camera can directly obtain the three-dimensional information and surface texture of objects, while stereo vision captures the same scene through two or more cameras and calculates the parallax between pixels to reconstruct the three-dimensional structure, associating the pixel information of the image with the three-dimensional coordinates of the point cloud.

[0082] b. Registration of the second 3D point cloud data with the second image: In order to map pixels to point clouds, it is first necessary to register the second image with the second 3D point cloud data to ensure that the two are aligned in the same coordinate system, which involves steps such as feature extraction, feature matching, and transformation estimation.

[0083] c. Texture mapping: In 3D point cloud data modeling and rendering, texture mapping is the process of applying a 2D image (texture) to the surface of a 3D point cloud data model (represented by a point cloud). By mapping pixels to a point cloud, the color and texture information of the image can be given to each point in the point cloud, creating a more realistic 3D visual effect.

[0084] d. Multi-view fusion: By capturing multiple 2D images from different angles and fusing them into a unified point cloud model, the density and quality of the point cloud can be improved. The pixel information of each image can be mapped to the corresponding point cloud point, providing more details and information.

[0085] e. Learning-based methods: Deep learning techniques, especially convolutional neural networks (CNNs), can be used to automatically learn and predict the mapping relationship between pixels and point clouds. By training the network to understand the relationship between image content and point cloud structure, more accurate pixel mapping can be achieved.

[0086] f. Sensor fusion: In autonomous driving and other advanced applications, multiple sensors (such as radar, camera, laser scanner, etc.) are usually used to obtain environmental information. Sensor fusion technology can combine data from different sensors and improve overall perception capabilities by mapping pixels to point clouds.

[0087] In an exemplary embodiment, a method for performing dynamic and static separation on three-dimensional point cloud data or four-dimensional point cloud data and obtaining dynamic point cloud data and static point cloud data respectively may include:

[0088] 1. Motion clustering algorithm (such as K-means-based method): The moving points in the point cloud data are clustered into dynamic point cloud data, while the stationary points are considered as static point cloud data.

[0089] 2. Spatiotemporal consistency method: Consider the temporal continuity and spatial consistency of point cloud data. By matching and aligning between consecutive frames, dynamic point cloud data in point cloud data can be distinguished from static point cloud data. For example, motion estimation techniques (such as optical flow estimation, ICP matching, etc.) can be used to track the motion trajectory of an object, and then the stability of the trajectory can be used to determine whether the target is a dynamic target.

[0090] 3. Deep learning methods: Deep learning models (such as convolutional neural networks, recurrent neural networks, etc.) can be used to perform end-to-end learning on point cloud data to detect and separate dynamic point cloud data corresponding to dynamic targets. For example, network structures such as PointNet and PointNet++ can be used to directly learn the features of dynamic point cloud data from point clouds.

[0091] In an exemplary embodiment, in a target detection method for scenes with static object perception and annotation in autonomous driving scenarios, the autonomous driving vehicle is controlled to obtain three-dimensional point cloud data without color of the road conditions in front of the vehicle through a laser detection sensor at intervals of 2 seconds, and a color picture of the road conditions in front of the vehicle is obtained through a camera module. The three-dimensional point cloud data representing the road conditions in front of the vehicle obtained each time and the color picture are fused to obtain three-dimensional point cloud data with color. The three-dimensional point cloud data with color obtained based on the fusion of the acquired three-dimensional point cloud data and the color picture for the last five times is obtained, and continuous frame fusion operations are performed to obtain four-dimensional point cloud data with color that contains the point cloud data corresponding to the last five acquisition times. The first image of the four-dimensional point cloud data is obtained according to a combination of eight preset heights and angles, such as Figure 4 As shown, Figure 4 It is a schematic diagram of a first image of a scene labeled for static object perception in an autonomous driving scenario.

[0092] It should be understood that in order to make the content in the first image clear, the shape of the point cloud data arranged in the first image is visualized as lines, and different colors are represented by different fillings. Figure 4 In the figure, the car is a dynamic target represented by dynamic point cloud data, and the tree is a static target represented by static point cloud data. Figure 4It is shown that the car moves and is in different positions at different times, so it is easy to separate dynamic point cloud data from static point cloud data. In addition, since the first image is obtained by intercepting the four-dimensional point cloud data with color, it also has color information. The color information can be used to determine the cars of the same shape but different colors in the first image, and they can be marked and distinguished respectively. After target detection and labeling of each first image, the eight first images are fitted using a preset fitting algorithm to obtain three-dimensional point cloud data containing target detection labeling information, and the three-dimensional point cloud data containing target detection labeling information is used as the three-dimensional detection result.

[0093] In the disclosed embodiment, color information is added to the three-dimensional point cloud data, and multiple frames of three-dimensional point cloud data at different times are fused to obtain four-dimensional point cloud data with color information, and a preset number of first images corresponding to static point cloud data representing static targets in the four-dimensional point cloud data are obtained, target detection is performed on the preset number of first images, and the obtained two-dimensional detection results are fitted to obtain detection results of static targets. The interference generated by the dynamic point cloud data is stripped away, and the efficiency of target detection of static point cloud data is improved. In addition, by performing target detection on the first image, the pre-labeling accuracy of the target detection algorithm for two-dimensional images and the detectable object categories are greatly improved, thereby improving the target detection efficiency.

[0094] Based on the same concept, an embodiment of the present disclosure also provides a target detection device.

[0095] Figure 5 is a block diagram of a target detection device 100 according to an exemplary embodiment. Figure 5 , the device includes an acquisition unit 101 and a processing unit 102.

[0096] The acquisition unit 101 acquires the three-dimensional point cloud data of the target scene, and collects a two-dimensional image of the target scene to obtain a second image, wherein the pixels in the second image correspond to color information, and the color information of the pixels in the second image is mapped to the three-dimensional point cloud data to obtain the three-dimensional point cloud data corresponding to the color information.

[0097] The processing unit 102 is used to separate the static point cloud data in the three-dimensional point cloud data, and intercept the static point cloud data to obtain a first image, and perform static target detection based on the pixels in the first image and the color information corresponding to the pixels to obtain a two-dimensional detection result of the static target, and based on the two-dimensional detection result, obtain a three-dimensional detection result of the static target in the target scene; wherein the first image is a two-dimensional image, the static point cloud data corresponds to color information, and the pixels in the first image correspond to color information.

[0098] In the embodiment of the present disclosure, the processing unit 102 uses the following method to capture a two-dimensional image of the static point cloud data to obtain a first image: control the two-dimensional image acquisition device to capture the static point cloud data from multiple directions according to a preset height to obtain multiple first images; the processing unit uses the following method to perform static target detection based on the pixels in the first image and the color information corresponding to the pixels to obtain a two-dimensional detection result of the static target, and based on the two-dimensional detection result, obtain a three-dimensional detection result of the static target in the target scene: perform static target detection in multiple first images respectively to obtain multiple two-dimensional detection results of the static target; fit the multiple two-dimensional detection results according to the corresponding heights and directions when the multiple first images were captured to obtain the corresponding three-dimensional detection results of the static target.

[0099] In the disclosed embodiment, the processing unit 102 separates the static point cloud data in the three-dimensional point cloud data in the following manner: constructing four-dimensional point cloud data corresponding to the three-dimensional point cloud data, the point cloud data in the four-dimensional point cloud data corresponding to color information; separating the four-dimensional static point cloud data corresponding to the color information in the four-dimensional point cloud data; and using the four-dimensional static point cloud data as static point cloud data.

[0100] In the disclosed embodiment, the processing unit 102 is further used to separate dynamic point cloud data corresponding to color information from the four-dimensional point cloud data, and label the dynamic point cloud data based on the color information.

[0101] Figure 6 It is a block diagram of an electronic device 200 for target detection according to an exemplary embodiment. The electronic device 200 includes a memory 201, a processor 202, and an input / output (I / O) interface 203. The memory 201 is used to store instructions. The processor 202 is used to call the instructions stored in the memory 201 to execute the target detection method of the embodiment of the present invention. The processor 202 is connected to the memory 201 and the input / output (I / O) interface 203 respectively, for example, through a bus system and / or other forms of connection mechanisms (not shown). The memory 201 can be used to store programs and data, including the program of the target detection method involved in the embodiment of the present invention. The processor 202 executes various functional applications and data processing of the electronic device 200 by running the program stored in the memory 201.

[0102] In the embodiment of the present invention, the processor 202 can be implemented in at least one hardware form of a digital signal processor (Digital Signal Processing, DSP), a field programmable gate array (Field-Programmable Gate Array, FPGA), and a programmable logic array (Programmable Logic Array, PLA). The processor 202 can be a central processing unit (Central Processing Unit, CPU) or one or a combination of other forms of processing units with data processing capabilities and / or instruction execution capabilities.

[0103] The memory 201 in the embodiment of the present invention may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory. The non-volatile memory may include, for example, read-only memory (ROM), flash memory, hard disk drive (HDD) or solid-state drive (SSD).

[0104] In the embodiment of the present invention, the input / output (I / O) interface 203 may be used to receive input instructions (such as digital or character information, and key signal input related to user settings and function control of the electronic device 200, etc.), and may also output various information to the outside (such as images or sounds, etc.). In the embodiment of the present invention, the input / output (I / O) interface 203 may include one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a mouse, a joystick, a trackball, a microphone, a speaker, and a touch panel.

[0105] It is to be understood that, although the operations are described in a specific order in the drawings in the embodiments of the present invention, it should not be understood as requiring to perform these operations in the specific order shown or in a serial order, or requiring to perform all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.

[0106] The methods and devices involved in the embodiments of the present invention can be implemented using standard programming techniques, using rule-based logic or other logic to implement various method steps. It should also be noted that the words "device" and "module" used herein and in the claims are intended to include implementations using one or more lines of software code and / or hardware implementations and / or devices for receiving input.

[0107] Any steps, operations or procedures described herein may be performed or implemented using one or more hardware or software modules, either alone or in combination with other devices. In one embodiment, the software module is implemented using a computer program product including a computer-readable medium containing computer program code, which can be executed by a computer processor to perform any or all of the described steps, operations or procedures.

[0108] The foregoing description of the implementation of the present invention has been given for purposes of illustration and description. The foregoing description is not intended to be exhaustive nor to limit the invention to the exact form disclosed, and various variations and modifications are possible in accordance with the above teachings or may be obtained from the practice of the invention. These embodiments are selected and described in order to illustrate the principles of the invention and its practical application, so that those skilled in the art can utilize the invention in various embodiments and with various modifications suitable for the particular use contemplated.

Claims

1. A target detection method, It is characterized in that include: Acquire three-dimensional point cloud data of the target scene, and collect a two-dimensional image of the target scene to obtain a second image, wherein pixels in the second image correspond to color information; Mapping the color information of the pixels in the second image to the three-dimensional point cloud data to obtain the three-dimensional point cloud data corresponding to the color information; Separating static point cloud data from the three-dimensional point cloud data; Intercepting the static point cloud data to obtain a first image, where the first image is a two-dimensional image; Based on the pixels in the first image and the color information corresponding to the pixels, static target detection is performed to obtain a two-dimensional detection result of the static target, and based on the two-dimensional detection result, a three-dimensional detection result of the static target in the target scene is obtained; The static point cloud data corresponds to color information, and the pixels in the first image correspond to color information.

2. The method according to claim 1, It is characterized in that The step of intercepting the static point cloud data to obtain a first image includes: Controlling the two-dimensional image acquisition device to intercept the static point cloud data from multiple directions at a preset height to obtain multiple first images; The method of performing static target detection based on pixels in the first image and color information corresponding to the pixels to obtain a two-dimensional detection result of the static target, and obtaining a three-dimensional detection result of the static target in the target scene based on the two-dimensional detection result, includes: Performing static target detection in the plurality of first images respectively to obtain a plurality of two-dimensional detection results of the static targets; The multiple two-dimensional detection results are fitted according to the corresponding heights and orientations when the multiple first images are captured, so as to obtain a three-dimensional detection result corresponding to the static target.

3. The method according to claim 1 or 2, It is characterized in that The separating the static point cloud data from the three-dimensional point cloud data comprises: Constructing four-dimensional point cloud data corresponding to the three-dimensional point cloud data, wherein the point cloud data in the four-dimensional point cloud data corresponds to color information; Separating four-dimensional static point cloud data corresponding to color information from the four-dimensional point cloud data; The four-dimensional static point cloud data is used as the static point cloud data.

4. The method according to claim 3, It is characterized in that The method further comprises: Dynamic point cloud data corresponding to color information is separated from the four-dimensional point cloud data, and the dynamic point cloud data is labeled based on the color information.

5. A target detection device, It is characterized in that include: An acquisition unit acquires three-dimensional point cloud data of a target scene, and collects a two-dimensional image of the target scene to obtain a second image, wherein pixels in the second image correspond to color information, and maps the color information of the pixels in the second image to the three-dimensional point cloud data to obtain three-dimensional point cloud data corresponding to the color information; a processing unit, configured to separate static point cloud data from the three-dimensional point cloud data, intercept the static point cloud data to obtain a first image, perform static target detection based on pixels in the first image and color information corresponding to the pixels to obtain a two-dimensional detection result of the static target, and obtain a three-dimensional detection result of the static target in the target scene based on the two-dimensional detection result; The first image is a two-dimensional image, the static point cloud data corresponds to color information, and the pixels in the first image correspond to color information.

6. The device according to claim 5, It is characterized in that The processing unit performs two-dimensional image capture on the static point cloud data to obtain a first image in the following manner: Controlling the two-dimensional image acquisition device to intercept the static point cloud data from multiple directions at a preset height to obtain multiple first images; The processing unit performs static target detection based on pixels in the first image and color information corresponding to the pixels to obtain a two-dimensional detection result of the static target, and obtains a three-dimensional detection result of the static target in the target scene based on the two-dimensional detection result in the following manner: Performing static target detection in the plurality of first images respectively to obtain a plurality of two-dimensional detection results of the static targets; The multiple two-dimensional detection results are fitted according to the corresponding heights and orientations when the multiple first images are captured, so as to obtain a three-dimensional detection result corresponding to the static target.

7. The device according to claim 5 or 6, It is characterized in that The processing unit separates the static point cloud data in the three-dimensional point cloud data in the following manner: Constructing four-dimensional point cloud data corresponding to the three-dimensional point cloud data, wherein the point cloud data in the four-dimensional point cloud data corresponds to color information; Separating four-dimensional static point cloud data corresponding to color information from the four-dimensional point cloud data; The four-dimensional static point cloud data is used as the static point cloud data.

8. The device according to claim 7, It is characterized in that The processing unit is also used for: Dynamic point cloud data corresponding to color information is separated from the four-dimensional point cloud data, and the dynamic point cloud data is labeled based on the color information.

9. An electronic device, It is characterized in that The electronic device comprises: a memory for storing instructions; and A processor, configured to call the instructions stored in the memory to execute the target detection method according to any one of claims 1 to 4.

10. A storage medium, It is characterized in that The storage medium stores instructions, and when the instructions in the storage medium are executed by a processor, the processor is enabled to execute the target detection method according to any one of claims 1 to 4.