Weak supervision 3D target detection method and system for open scene
By combining monocular cameras and low-line-count lidar with 2D detection networks and point cloud data, and using cross-modal transfer learning methods, 3D target detection without 3D labels is achieved, solving the problem of difficulty in obtaining 3D labels and improving It improves the generalization and robustness of detection and is suitable for open scenarios.
Patent Information
- Application Number
- CN202410618299.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-08-30
AI Technical Summary
Existing 3D target detection methods rely too much on 3D labels and cannot adapt to open scenes without 3D labels, and 3D labels are difficult to obtain, resulting in insufficient detection accuracy and generalization performance.
A monocular camera and low-line-count lidar are used to collect data, a 2D detection network is used to infer semantic information, and point cloud data is combined for unsupervised 3D target proposal. The teacher network guides the student network through a cross-modal transfer learning method to predict the orientation of the object. and spatial position to achieve optimization of 3D detection results.
It realizes 3D target detection without 3D labels, reduces the dependence on 3D labels, improves the generalization and robustness of detection, adapts to the needs of diverse detection tasks, reduces costs, and is suitable for real application scenarios. .
Smart Images

Figure CN118570806A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of intelligent agent environment perception, and specifically relates to a weakly supervised 3D target detection method and system for open scenes. Background Art
[0002] With the rapid development of the autonomous driving and robotics industries, AGVs of various shapes have begun to appear in complex open scenes such as libraries, logistics warehouses, and road freight. The implementation of this autonomous intelligent agent can independently complete tasks such as sorting and handling in open logistics scenes, realize unmanned operations, further reduce the cost of manpower input and greatly improve work efficiency. The intelligent agent is mainly divided into hardware and software parts. From the perspective of environmental perception, the basis of the hardware part is to configure various sensors to collect physical information around the intelligent agent, while the software part is various perception algorithms that use data from sensors as input. Among them, target detection, as the main way for intelligent agents to perceive the environment, has become a key focus in related fields. At present, the research and application of 2D detection have reached a very high level, but the two-dimensional detection information can no longer meet the high demand of related fields such as autonomous driving and robotics. Compared with 2D detection, 3D detection can predict the three-dimensional spatial information of objects such as three-dimensional size, depth distance, and posture orientation, which is conducive to the intelligent agent to perceive and understand more abundant environmental information, so as to plan paths, avoid obstacles and reduce speed more intelligently and accurately. 3D target detection enables intelligent agents to perceive the environment in a three-dimensional way.
[0003] According to the different input data types, 3D target detection can be roughly divided into three categories: LiDAR-based, RGB image-based, and multimodal detection schemes that fuse image and radar data. LiDAR-based detection schemes can achieve higher accuracy because they can directly obtain relatively accurate three-dimensional information. However, these methods are highly dependent on high-line-count LiDAR sensors. The high cost and low stability are the main factors that affect the popularization and application of this scheme in intelligent agents. The monocular image-based scheme only requires one camera, which is low-cost and easy to install, making it easy to apply in real life. However, it is difficult to directly obtain the three-dimensional information of the object from the two-dimensional RGB image, which is the bottleneck of this direction. The binocular image-based scheme can better estimate the depth information than using only the monocular image because of the introduction of parallax. However, the disadvantage is that the computational cost is high and it is greatly affected by the environment such as light. The multimodal fusion detection scheme hopes to cleverly combine the advantages of the two sensor data to improve the detection accuracy and stability. The main challenge is to explore how to cleverly fuse the data of these two very different modalities to improve the detection level by learning from each other's strengths and weaknesses.
[0004] However, all existing 3D object detection schemes are fully supervised methods, and they all rely heavily on annotated accurate 3D box labels during training. This leads to a common and obvious defect in most existing 3D detection algorithms, which is that they are almost completely unable to adapt to scenes without 3D labels. On the one hand, the problem is that the existing various 3D object detection networks are mostly trained on specific public datasets with a large number of 3D labels (such as KITTI). If they are applied to other scenes different from the public datasets, it will be found that it is almost impossible to detect objects of the same category normally, which leads to almost no generalization performance of all the above methods for other actual scenes. On the other hand, in actual applications, different scenes have different detection task requirements. Inevitably, there will be many objects to be detected that do not exist in the public dataset or are not labeled. As we all know, data annotation of 3D point clouds cannot be easily obtained and requires a lot of manpower and material resources. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a weakly supervised 3D target detection method and system for open scenes in view of the deficiencies in the above-mentioned prior art, so as to solve the technical problem that 3D target detection is overly dependent on 3D labels while 3D labels are difficult to obtain in real scenes.
[0006] The present invention adopts the following technical solutions:
[0007] A weakly supervised 3D object detection method for open scenes includes the following steps:
[0008] Use a monocular camera and a low-line-count laser radar to collect image data and point cloud data respectively;
[0009] The 2D detection network is used to infer the semantic information of the current frame from the image data. Then, the point cloud of the ROI area is filtered out from the point cloud data through the conversion relationship between the camera coordinate system and the radar coordinate system. The DBSCAN clustering algorithm is used to segment the point cloud based on the geometric density characteristics of the point cloud and obtain the location of the object.
[0010] The object position of the unsupervised 3D target proposal module is projected onto the monocular image. A cross-modal transfer learning method is adopted, in which the teacher network predicts the object orientation to guide the student network. During the training process, the network learns to predict the object orientation from the point cloud and further optimizes the detection results, thus obtaining a 3D detection result including the object's spatial position, three-dimensional size, and posture orientation information.
[0011] Preferably, the RANSAC random sampling algorithm is used to extract and filter the ground point cloud from the point cloud data.
[0012] More preferably, the RANSAC random sampling algorithm is specifically:
[0013] First, randomly select a portion of points from the point cloud data as samples belonging to the ground; use the selected samples to fit a ground model; compare all points with the fitted ground model, and use points that are consistent with the ground model as inliers; calculate the number of inliers or the quality of the fit to evaluate how well the ground model fits the data; repeat the above steps, each time selecting a new random sample, refitting the ground model, and evaluating the fit of the ground model. After multiple iterations, select the ground model with the most inliers or the best fit as the final ground model; remove the inliers identified as the ground from the original point cloud.
[0014] Preferably, based on 2D detection, the forward reasoning of the YoloV5 detection network is deployed on the AGV, and the 2D detection result corresponding to each frame is obtained after the RGB image of the camera is input, and then the three-dimensional point cloud is projected into the two-dimensional camera plane coordinate system in combination with the camera parameters and the geometric transformation relationship; then the DBSCAN clustering method is used based on the geometric density features of the point cloud, and the point cloud is divided into one or more point cloud clusters according to the distribution distance characteristics between the points. The point cloud of the target object is selected from the multiple point cloud clusters in the ROI area through a screening mechanism and the interference point cloud is filtered out, and a corresponding minimum bounding box is obtained according to the extreme value of each point cloud cluster.
[0015] More preferably, the screening mechanism includes the number of point clouds, centroid height, and IOU value.
[0016] More preferably, the pixel coordinates (u, v) obtained by projecting to the two-dimensional camera coordinate system are:
[0017]
[0018] Among them, fx, fy, cx, and cy represent the internal parameters of the camera, and (X, Y, Z) represents the three-dimensional coordinates of the point cloud in the world coordinate system.
[0019] Preferably, during the training process, the proposal of each object comes from two prediction results of the teacher network and the student network respectively, and the prediction result of the teacher network is regarded as a label to supervise the prediction of the student network.
[0020] Preferably, a cross entropy loss function is used to constrain and guide the learning process of the student network.
[0021] More preferably, the value L of the cross entropy loss function is
[0022]
[0023] Where n is the number of objects in each training batch, t is the prediction from the teacher network, and s is the prediction from the student network.
[0024] In a second aspect, an embodiment of the present invention provides a weakly supervised 3D object detection system for open scenes, including:
[0025] The data module uses a monocular camera and a low-line-count laser radar to collect image data and point cloud data respectively;
[0026] The screening module uses the 2D detection network to infer the semantic information of the current frame. Then, the point cloud of the ROI area is screened out through the conversion relationship between the camera coordinate system and the radar coordinate system. The DBSCAN clustering algorithm is used to segment the point cloud based on the geometric density characteristics of the point cloud and obtain the position of the object.
[0027] The detection module projects the object position of the unsupervised 3D target proposal module onto the monocular image. It adopts a cross-modal transfer learning method, in which the teacher network predicts the object orientation to guide the student network. During the training process, it learns to predict the object orientation from the point cloud and further optimizes the detection results, obtaining a 3D detection result including the object's spatial position, three-dimensional size, and posture orientation information.
[0028] In a third aspect, a chip comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned weakly supervised 3D object detection method for open scenes when executing the computer program.
[0029] In a fourth aspect, an embodiment of the present invention provides an electronic device, including a computer program, which, when executed by the electronic device, implements the steps of the above-mentioned weakly supervised 3D object detection method for open scenes.
[0030] Compared with the prior art, the present invention has at least the following beneficial effects:
[0031] A weakly supervised 3D object detection method for open scenes. Point cloud can provide relatively accurate spatial position information, but point cloud is an unstructured data set of multiple points, which does not have explicit semantic information; RGB image is two-dimensional data, and it is difficult to directly obtain three-dimensional information from it, but RGB contains rich semantic information such as color, shape, texture, etc. This method combines the advantages of the two modal data, and uses the semantic clues provided by RGB as a guide to locate and screen the point cloud of the target object, and then uses clustering, a non-deep learning method, to complete the point cloud segmentation, thereby obtaining the three-dimensional spatial position of the target object and realizing 3D object detection.
[0032] Furthermore, the RANSAC random sampling algorithm is used to extract and filter ground point clouds from point cloud data. On the one hand, after filtering out the ground point clouds, each object in the scene is more prominent and naturally separated from each other because there is no interference from the ground point clouds, which is more conducive to 3D target detection. On the other hand, preprocessing the huge point cloud data and eliminating redundant point clouds can greatly reduce the amount of calculation in the subsequent process.
[0033] Furthermore, the benefit of using the 2D detection network to infer the semantic information of the current frame is that the mature 2D detection network is used to infer the current frame image, so as to efficiently obtain whether the current scene contains a detection object and the pixel position of the object; and then the point cloud of the ROI area is screened out through the conversion relationship between the camera coordinate system and the radar coordinate system. The benefit is that this step can quickly locate the point cloud of the area of interest, avoiding repeated operations on all the point clouds in the scene in subsequent steps.
[0034] Furthermore, the proposal of each object comes from two prediction results from the teacher network and the student network respectively. The prediction results of the teacher network are regarded as labels. The purpose of supervising the prediction of the student network is: through this step, the training strategy of distillation learning is adopted to let the teacher network guide the student network to learn how to predict the orientation information of the object directly from the target point cloud, that is, to realize the knowledge transfer of orientation knowledge from the image domain to the point cloud domain.
[0035] Furthermore, the purpose of using the cross entropy loss function to constrain and guide the learning process of the student network is that the student network uses the prediction results of the teacher network as a supervision signal, and uses the cross entropy loss function to make the student network fit the prediction results of the teacher network as a soft target, and learns from the teacher network the ability to directly predict the orientation of the object from the target point cloud.
[0036] It can be understood that the beneficial effects of the second aspect mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.
[0037] In summary, this method realizes the 3D target detection process without any 3D labels and does not require complex deep learning methods to process point cloud data. It can adapt to the diverse detection task requirements in real application scenarios.
[0038] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 This is an overall schematic diagram of the single-machine perception solution proposed by the present invention;
[0040] Figure 2 Schematic diagram of the unsupervised 3D object proposal module;
[0041] Figure 3 A schematic diagram of a computer device provided by an embodiment of the present invention;
[0042] Figure 4 A block diagram of a chip provided according to an embodiment of the present invention;
[0043] Figure 5 A schematic diagram showing the visualization of detection results in a real application scenario. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] In the description of the present invention, it should be understood that the terms “include” and “comprises” indicate the presence of described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or collections thereof.
[0046] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0047] It should be further understood that the term "and / or" used in the present specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present invention generally indicates that the associated objects are in an "or" relationship.
[0048] It should be understood that, although the terms first, second, third, etc. may be used to describe preset ranges, etc. in the embodiments of the present invention, these preset ranges should not be limited to these terms. These terms are only used to distinguish preset ranges from each other. For example, without departing from the scope of the embodiments of the present invention, the first preset range may also be referred to as the second preset range, and similarly, the second preset range may also be referred to as the first preset range.
[0049] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0050] Various structural schematic diagrams of the embodiments disclosed in the present invention are shown in the accompanying drawings. These figures are not drawn to scale, and some details are magnified and some details may be omitted for the purpose of clear expression. The shapes of various regions and layers shown in the figures and the relative sizes and positional relationships therebetween are only exemplary, and may deviate in practice due to manufacturing tolerances or technical limitations, and those skilled in the art may additionally design regions / layers with different shapes, sizes, and relative positions according to actual needs.
[0051] In order to better implement 3D object detection in practical applications, the main idea is to reduce the network's dependence on 3D training labels and improve the generalization and robustness of the detection method. In addition, based on the cost of sensors, real intelligent applications generally choose to carry a monocular camera and a low-line laser radar. Both sensors are common sensors that are inexpensive and easy to obtain. Therefore, the present invention provides a weakly supervised 3D target detection method for open scenes, which uses a monocular camera and a low-line-count laser radar as sensors to provide input data. The whole process does not require any 3D labels for training. First, the semantic information of the target object is inferred using a mature 2D detection algorithm, and the semantic information is combined with the three-dimensional point cloud data to drive the unsupervised 3D target proposal module to obtain the approximate position of the target object. Finally, the object position of the proposal module is projected onto the monocular image, and a cross-modal transfer learning method is used. The teacher network (image branch) predicts the object orientation and guides the student network (point cloud branch) to learn to predict the object orientation from the point cloud during training and further optimize the detection results, thereby obtaining accurate 3D detection results, including the spatial position, three-dimensional size, and posture orientation information of the object. Here, the accurate detection of the target object is directly beneficial to the subsequent path planning and other behavior modules of the intelligent agent.
[0052] The present invention provides a weakly supervised 3D object detection method for open scenes, comprising the following steps:
[0053] S1, sensor data preprocessing;
[0054] As the RGB images obtained by industrial cameras have distortion effects, they need to be corrected by de-distortion. As for the point cloud data of LiDAR, since the foreground area needs to be focused in the detection task, some filtering can be performed on the huge point cloud data in advance; for example, it involves point cloud cropping, and considering the huge amount of point cloud data, under the premise of ensuring the detection effect, some redundant point clouds can be removed by voxelization and other methods before being input into the subsequent target proposal module.
[0055] The focus of the 3D target detection task is the point cloud data of the foreground area of each frame. LiDARs are 360-degree surround, so it is necessary to filter out the point cloud in the opposite direction of the AGV. At the same time, the point cloud outside the left and right range can also be filtered out according to the task requirements, because the detection object will not appear too far on both sides. The straight-through filter function in the PCL point cloud tool library is used here. By setting the point cloud dimension and value range to be processed in the relevant parameter position, all point clouds that meet the conditions in the specified dimension can be filtered out to achieve the purpose of point cloud cropping.
[0056] In addition, in point cloud detection tasks, it is usually necessary to segment the ground. Because the detected objects are all located above the ground, and the scanning range of the laser radar is generally positive and negative tens of degrees up and down and fan-shaped, the collected point cloud will contain many point clouds from the ground, and the ground point cloud is interference information for the detection task, and the ground point cloud needs to be segmented and removed; the RANSAC random sampling algorithm is used here to extract the ground point cloud from the point cloud data and filter it out; RANSAC (Random Sample Consensus) is an iterative method for fitting models and removing noise from data. The basic principle is:
[0057] 1. Random sampling: First, a small number of points are randomly selected from the point cloud data as samples that may belong to the ground.
[0058] 2. Model fitting: Use the selected samples to fit a ground model. In ground segmentation, a common model is a plane, which can be fitted by the least squares method.
[0059] 3. Inlier detection: Compare all points with the fitted model and identify those points that are consistent with the model fit, called inliers. Inliers are usually points on the ground.
[0060] 4. Evaluate the model: Count the number of inliers or the quality of fit to assess how well the model fits the data. The more inliers, the better the model.
[0061] 5. Iteration: Repeat the above steps multiple times, each time selecting a new random sample, refitting the model, and evaluating how well the model fits.
[0062] 6. Select the best model: After multiple iterations, the model with the most inliers or the best fit is selected as the final ground model.
[0063] 7. Remove ground points: Remove the inliers identified as ground from the original point cloud, leaving points that may belong to other objects or scenes.
[0064] S2, unsupervised 3D object proposal module driven by RGB semantic cues;
[0065] The mature 2D detection network is used to infer the semantic information of the current frame. The point cloud of the ROI area is then screened out through the conversion relationship between the camera coordinate system and the radar coordinate system. The DBSCAN clustering algorithm is used to segment the point cloud based on the geometric density features of the point cloud and obtain the approximate location of the object. The result here is rough and is called a 3D target proposal.
[0066] In actual applications, different detection tasks require different scenarios. Inevitably, there will be many objects to be detected that do not exist in the public data set or are not labeled. As we all know, data annotation of 3D point clouds cannot be easily obtained and requires a lot of manpower and material resources. Therefore, if 3D object detection algorithms are to be implemented in actual applications, the most important thing is to reduce the network's dependence on 3D training labels, so as to adapt to the diverse detection task requirements in open and complex scenarios.
[0067] Since the most important missing three-dimensional label for 3D detection is depth information, that is, the distance of the target object in the depth direction, the point cloud data scanned by the laser radar just provides some three-dimensional position information of the object. However, the point cloud is unstructured discrete data, and the point cloud data does not contain semantic information. In particular, for sparse radars with low line counts, the information provided is not rich enough, and it is difficult to achieve good performance using sparse point clouds alone to complete three-dimensional target detection tasks. However, the two-dimensional target detection algorithm of images has developed very maturely in recent years, and two-dimensional labels can be manually annotated according to detection requirements to easily obtain data sets. Therefore, the present invention proposes an unsupervised 3D target proposal module driven by two-dimensional target detection, which provides reliable semantic clues combined with point cloud segmentation to determine the three-dimensional spatial position of the target object. Unsupervised means relative to 3D detection itself.
[0068] See also Figure 2Based on 2D detection, the forward reasoning of the YoloV5 detection network is deployed on the AGV. After the RGB image from the camera is input, the 2D detection results corresponding to each frame can be obtained, including object categories and 2D frame information. Two-dimensional detection mainly infers the semantic clues of the current frame, that is, to clarify which objects to be detected and the pixel position coordinates in the current frame; then, the three-dimensional point cloud is projected into the two-dimensional camera plane coordinate system in combination with the camera parameters and geometric transformation relationship, as shown in formula (1).
[0069]
[0070] Among them, fx, fy, cx, and cy represent the internal parameters of the camera, (X, Y, Z) represents the three-dimensional coordinates of the point cloud in the world coordinate system, and (u, v) represents the pixel coordinates obtained by projecting to the two-dimensional camera coordinate system.
[0071] After obtaining the pixel coordinates corresponding to each point cloud, the point cloud in the ROI area can be filtered out in combination with the 2D box. Then, based on the geometric density features of the point cloud, the DBSCAN clustering method is used to divide the point cloud into one or more point cloud clusters according to the distribution distance features between points, and a corresponding minimum bounding box can be obtained according to the extreme value of each point cloud cluster. In practice, due to the projection viewing angle, multiple point cloud clusters will be formed in the ROI area, that is, in addition to the point cloud cluster of the target object, it may also contain interfering point cloud clusters from the background or occluders. Then it is necessary to use some prior information to select the correct point cloud cluster as the target point cloud; the present invention designs a screening mechanism to select the point cloud of the target object from multiple point cloud clusters in the ROI area and filter out the interfering point cloud; the screening mechanism comprehensively considers the three aspects of point cloud quantity, centroid height, and IOU value with different weights.
[0072] The number of point clouds is the most important factor in the screening mechanism. Generally speaking, in the point cloud of the ROI area screened by the 2D detection results, because the target object is the foreground part of the detection task, it is reasonable to assume that the point cloud of the target object in the multiple point cloud clusters in the ROI area should correspond to the cluster with the largest number of point clouds, and the other point cloud clusters are likely to be outliers or interference information. However, some special cases also need to be considered, such as when the detection object is severely occluded. In this assumption, the number of point clouds from the detection object will be much less than that of other point cloud clusters.
[0073] In this case, it is necessary to introduce the centroid height as the second part of the screening mechanism, that is, calculate the centroid of each point cloud cluster and take its coordinate value in the height direction, and perform further screening based on the prior information of the height of this type of object.
[0074] The third part of the screening mechanism is the IOU value, which is to project the minimum bounding box of each point cloud cluster into the image to form an approximate 2D box based on the camera parameters and geometric relationships, and then use the previous 2D target detection inference results as the standard reference value to calculate the IOU value between the two. Because it is believed that the minimum bounding box corresponding to the target object point cloud projected into the image should have the highest overlap with the 2D box in the 2D detection result; the screening mechanism composed of the above three aspects can ensure the accuracy of the target object point cloud to the greatest extent, and the calculated minimum bounding box is the final result of the 3D proposal module.
[0075] S3, cross-modal transfer learning to predict the orientation of the target object;
[0076] According to the object position of the proposed module, it is projected onto the monocular image. The cross-modal transfer learning method is used to predict the object orientation by the teacher network (image branch) to guide the student network (point cloud branch) to learn to predict the object orientation directly from the point cloud during training. The teacher network branch only participates in the training phase, that is, the reasoning process is independently completed by the student network branch.
[0077] In the unsupervised 3D proposal module, the point cloud of the ROI area is mainly screened out through the 2D detection results, and then the point cloud is segmented and the approximate position of the target object is obtained through the clustering method based on the point cloud density feature. The reason why the result of this module is regarded as a proposal is that we believe that its result is relatively rough and can only be used as an intermediate result similar to a position proposal. The main reason is that since the point cloud data itself is an unstructured discrete point, it is difficult to directly determine the orientation angle of the corresponding object based on the observed part of the point cloud. The orientation or posture is an indispensable element in 3D detection. From the overall task requirements of intelligent agents or unmanned vehicles, the results of 3D detection are guiding, and many subsequent modules rely on the results of detection for judgment and decision-making. Therefore, in addition to obtaining the location information of the object, the prediction of the object's orientation is also very important for 3D target detection. For example, the path planning module and the obstacle avoidance module generate and adjust behaviors based on the position and orientation of the obstacle. In other words, the orientation of the object represents the direction of travel of the object in the future.
[0078] The main reason why it is impossible to directly predict the orientation of an object from a point cloud is that the point cloud contains too little semantic information, while RGB images provide rich semantic information. In the study of attitude estimation, there have been many works that have completed the annotation of the orientation and attitude of objects in common image datasets, and we can directly use these labels. The purpose of introducing transfer learning in this invention is to transfer the knowledge about orientation prediction in the RGB domain to the point cloud domain. Figure 1As shown, transfer learning usually consists of a teacher network and a student network. The prediction results of the teacher network are regarded as standard answers to guide the student network branch to learn the corresponding knowledge. In other words, the prediction results of the teacher network can be regarded as pseudo labels to supervise and guide the training of the student network branch. In our invention, a cross-modal transfer learning method is proposed, which regards the point cloud-based 3D detection network as a student network branch and learns knowledge from the teacher network pre-trained on a large-scale image recognition dataset. The overall structure of the network is not complicated and the number of network layers is relatively small.
[0079] The image-based teacher network directly adopts the common image recognition network architecture of VGG16. First, the teacher network is pre-trained on the PASCAL 3D+ dataset. The PASCAL 3D+ dataset is a 3D object detection and posture recognition dataset, including 3D annotations of 12 categories of objects in PASCAL VOC 2012, with an average of 3,000 instances in each category. This dataset provides labels for the orientation of secondary objects to train our teacher network. After pre-training, the teacher network has a certain ability to predict the orientation of 12 common categories of objects in the RGB domain; in the subsequent training process of the entire network, the teacher network takes an image containing only a single object as input, predicts the orientation of the object, and uses it as a supervision signal or pseudo-label for the student network.
[0080] The structure of the student network based on point cloud is very similar to that of the teacher network, which consists of a VGG16 backbone network, a ROIAlign layer, and a fully connected layer. Figure 1 As shown in the corresponding position in . In order to correspond to the teacher network branch, the collected point cloud is converted into a two-dimensional depth map and then input into the network; each object position proposal of the unsupervised 3D proposal module is projected into the RGB image and the depth map corresponding to the point cloud, respectively, and the RGB image and corresponding depth map of a single object can be obtained respectively. The RGB image of a single object can predict the orientation information of the object through the teacher network. At the same time, the student network uses the ROIAlign layer to extract the depth features from the depth map of the corresponding object, and then predicts the orientation information of each object through the fully connected layer. Therefore, during the training process, each object proposal has two prediction results from the teacher network and the student network respectively. The prediction results of the teacher network are regarded as labels to supervise the prediction of the student network. The cross entropy loss function is used to constrain and guide the learning process of the student network, as shown in Formula 2.
[0081]
[0082] Where L is the value of the cross entropy loss function, t is the prediction from the teacher network, s is the prediction from the student network, and n is the number of objects in each training batch (sample size).
[0083] After a certain number of rounds of training, the student network's ability to predict the orientation of objects is greatly improved. The teacher network branch only participates in training and does not participate in reasoning. During the reasoning process, the teacher network branch stops working, and only the student network branch can directly predict relatively accurate object orientation information from the point cloud. The present invention transfers the relevant knowledge of orientation prediction from the RGB domain to the point cloud domain by introducing a transfer learning method, so that our method learns the ability to predict the orientation of objects directly from the point cloud.
[0084] S4. Adopt the adaptive message synchronization subscription function built into ROS to ensure synchronization between multiple topics based on timestamps, and ensure that the input data used in each round of the method are from the same frame.
[0085] The entire system is deployed on the AGV based on ROS (Robot Operating System). In order to improve the maintainability and debugging of the entire system, the present invention splits the perception system into multiple independent modules, which are generally divided into sensor modules and perception algorithm modules. The perception algorithm module is broken down into a 2D target detection module, an unsupervised 3D target proposal module, and a transfer learning module. Communication issues and synchronization issues during information interaction need to be considered between modules. Generally, relevant information is subscribed or published in the form of RosTopic. Taking into account the different frequencies of different data sources, an adaptive message synchronization subscription mechanism built into ROS is used to ensure that multiple topics are synchronized based on timestamps.
[0086] The sensors and detection algorithms on the AGV communicate and interact based on ROS; the perception algorithm mainly includes an unsupervised 3D proposal module to obtain position proposals for target objects, and then introduces cross-modal transfer learning to transfer the orientation prediction capability of the RGB domain to the point cloud domain to further optimize the detection results, thereby obtaining more accurate single-machine perception results.
[0087] In another embodiment of the present invention, a weakly supervised 3D target detection system for open scenes is provided, which can be used to implement the above-mentioned weakly supervised 3D target detection method for open scenes. Specifically, the weakly supervised 3D target detection system for open scenes includes module, module, module, module and module.
[0088] Among them, the data module uses a monocular camera and a low-line laser radar to collect image data and point cloud data respectively;
[0089] The screening module uses the 2D detection network to infer the semantic information of the current frame. Then, the point cloud of the ROI area is screened out through the conversion relationship between the camera coordinate system and the radar coordinate system. The DBSCAN clustering algorithm is used to segment the point cloud based on the geometric density characteristics of the point cloud and obtain the position of the object.
[0090] The detection module projects the object position of the unsupervised 3D target proposal module onto the monocular image. It adopts a cross-modal transfer learning method, in which the teacher network predicts the object orientation to guide the student network. During the training process, it learns to predict the object orientation from the point cloud and further optimizes the detection results, obtaining a 3D detection result including the object's spatial position, three-dimensional size, and posture orientation information.
[0091] In another embodiment of the present invention, a terminal device is provided, which includes a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement the corresponding method flow or corresponding function; the processor described in the embodiment of the present invention can be used for the operation of the weakly supervised 3D target detection method for open scenes, including:
[0092] A monocular camera and a low-line-count laser radar are used to collect image data and point cloud data respectively; the semantic information of the current frame is inferred using a 2D detection network; the point cloud of the ROI area is then screened out through the conversion relationship between the camera coordinate system and the radar coordinate system, and the DBSCAN clustering algorithm is used to segment the point cloud and obtain the position of the object based on the geometric density features of the point cloud; the object position of the unsupervised 3D target proposal module is projected onto the monocular image, and a cross-modal transfer learning method is used. The teacher network predicts the object orientation to guide the student network, and during the training process, it learns to predict the object orientation from the point cloud and further optimizes the detection results, obtaining 3D detection results including the object's spatial position, three-dimensional size, and posture orientation information.
[0093] In another embodiment of the present invention, the present invention further provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a terminal device for storing programs and data. It can be understood that the computer-readable storage medium here can include both the built-in storage medium in the terminal device and the extended storage medium supported by the terminal device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory, or a non-volatile memory (Non-Volatile Memory), such as at least one disk memory.
[0094] The processor may load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the weakly supervised 3D object detection method for open scenes in the above embodiment; the processor may load and execute the following steps:
[0095] A monocular camera and a low-line-count laser radar are used to collect image data and point cloud data respectively; the semantic information of the current frame is inferred using a 2D detection network; the point cloud of the ROI area is then screened out through the conversion relationship between the camera coordinate system and the radar coordinate system, and the DBSCAN clustering algorithm is used to segment the point cloud and obtain the position of the object based on the geometric density features of the point cloud; the object position of the unsupervised 3D target proposal module is projected onto the monocular image, and a cross-modal transfer learning method is used. The teacher network predicts the object orientation to guide the student network, and during the training process, it learns to predict the object orientation from the point cloud and further optimizes the detection results, obtaining 3D detection results including the object's spatial position, three-dimensional size, and posture orientation information.
[0096] See also Figure 3 , the terminal device is a computer device, and the computer device 60 of this embodiment includes: a processor 61, a memory 62, and a computer program 63 stored in the memory 62 and executable on the processor 61. When the computer program 63 is executed by the processor 61, the method for calculating the composition of fluid in the reservoir transformation wellbore in the embodiment is realized. To avoid repetition, it is not described one by one here. Alternatively, when the computer program 63 is executed by the processor 61, the functions of each model / unit in the calculation system for the composition of fluid in the reservoir transformation wellbore in the embodiment are realized. To avoid repetition, it is not described one by one here.
[0097] The computer device 60 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The computer device 60 may include, but is not limited to, a processor 61 and a memory 62. Those skilled in the art will appreciate that Figure 3 This is only an example of the computer device 60 and does not constitute a limitation of the computer device 60. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device may also include input and output devices, network access devices, buses, etc.
[0098] The processor 61 may be a central processing unit (CPU), or other general-purpose processors, central processing units, graphics processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, data processing logic based on quantum computing, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0099] The memory 62 may be an internal storage unit of the computer device 60, such as a hard disk or memory of the computer device 60. The memory 62 may also be an external storage device of the computer device 60, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc., equipped on the computer device 60.
[0100] Furthermore, the memory 62 may include both an internal storage unit of the computer device 60 and an external storage device. The memory 62 is used to store computer programs and other programs and data required by the computer device. The memory 62 may also be used to temporarily store data that has been output or is to be output.
[0101] Any reference to memory, database or other media used in the embodiments provided in the present application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0102] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.
[0103] See also Figure 4 , the terminal device is a chip, and the chip 600 of this embodiment includes a processor 622, which may be one or more, and a memory 632 for storing a computer program executable by the processor 622. The computer program stored in the memory 632 may include one or more modules, each corresponding to a set of instructions. In addition, the processor 622 may be configured to execute the computer program to execute the above-mentioned generalizable monocular absolute depth map estimation method.
[0104] In addition, the chip 600 may further include a power supply component 626 and a communication component 650, wherein the power supply component 626 may be configured to perform power management of the chip 600, and the communication component 650 may be configured to implement communication, for example, wired or wireless communication, of the chip 600. In addition, the chip 600 may further include an input / output interface 658. The chip 600 may operate based on an operating system stored in the memory 632.
[0105] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention described and shown in the drawings here can usually be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0106] See also Figure 5 , the 2D detection results (green frame) and 3D detection results (red frame) are projected into RGB images for visualization. It can be seen from the subjective results that the present invention can realize 3D target detection for the two main types of obstacles in the scene - AGV and pedestrians, and the detection performance is good.
[0107] The subjective detection results show that the present invention can accurately realize 3D target detection for target objects of any specified category in real business scenarios lacking 3D labels.
[0108] In summary, the present invention provides a weakly supervised 3D target detection method and system for open scenes, which can realize 3D target detection without using any 3D labels, and can solve the problem that 3D labels are difficult to obtain in real application scenarios; the overall cost is low, and only a monocular camera and a low-line laser radar are required as sensors, which meets the low-cost requirements of small mobile intelligent bodies; it can adapt to the diverse detection task requirements in real scenes, with high flexibility and strong scalability.
[0109] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0110] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0111] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0112] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminals and methods can be implemented in other ways. For example, the device / terminal embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0113] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0114] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0115] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0116] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0117] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0118] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0119] The above contents are only for explaining the technical idea of the present invention and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the claims of the present invention.
Claims
1. A weakly supervised 3D object detection method for open scenes, characterized in that: The following steps are involved: Use a monocular camera and a low-line-count laser radar to collect image data and point cloud data respectively; The 2D detection network is used to infer the semantic information of the current frame from the image data. Then, the point cloud of the ROI area is filtered out from the point cloud data through the conversion relationship between the camera coordinate system and the radar coordinate system. The DBSCAN clustering algorithm is used to segment the point cloud based on the geometric density characteristics of the point cloud and obtain the location of the object. The object position of the unsupervised 3D target proposal module is projected onto the monocular image. A cross-modal transfer learning method is adopted, in which the teacher network predicts the object orientation to guide the student network. During the training process, the network learns to predict the object orientation from the point cloud and further optimizes the detection results, thus obtaining a 3D detection result including the object's spatial position, three-dimensional size, and posture orientation information.
2. The weakly supervised 3D object detection method for open scenes according to claim 1, characterized in that: The RANSAC random sampling algorithm is used to extract and filter the ground point cloud from the point cloud data.
3. The weakly supervised 3D object detection method for open scenes according to claim 2, characterized in that: The RANSAC random sampling algorithm is specifically: First, a portion of points are randomly selected from the point cloud data as samples belonging to the ground; a ground model is fitted using the selected samples; all points are compared with the fitted ground model, and the points that are consistent with the ground model fit are taken as inliers; Calculate the number of inliers, or the quality of the fit, to assess how well the ground model fits the data; Repeat the above steps, select new random samples each time, refit the ground model, and evaluate the fitting degree of the ground model. After multiple iterations, select the ground model with the most inliers or the best fit as the final ground model; remove the inliers identified as the ground from the original point cloud.
4. The weakly supervised 3D object detection method for open scenes according to claim 1, characterized in that: Based on 2D detection, the forward reasoning of the YoloV5 detection network is deployed on the AGV. After inputting the RGB image of the camera, the corresponding 2D detection result of each frame is obtained. Then, the three-dimensional point cloud is projected into the two-dimensional camera plane coordinate system in combination with the camera parameters and geometric transformation relationship; then, based on the geometric density features of the point cloud, the DBSCAN clustering method is used to divide the point cloud into one or more point cloud clusters according to the distribution distance characteristics between the points. The point cloud of the target object is selected from the multiple point cloud clusters in the ROI area through the screening mechanism, and the interfering point cloud is filtered out. According to the extreme value of each point cloud cluster, a corresponding minimum bounding box is obtained.
5. The weakly supervised 3D object detection method for open scenes according to claim 4, characterized in that: The screening mechanism includes the number of point clouds, centroid height, and IOU value.
6. The weakly supervised 3D object detection method for open scenes according to claim 4, characterized in that: The pixel coordinates (u, v) obtained by projecting to the two-dimensional camera coordinate system are: Among them, fx, fy, cx, and cy represent the internal parameters of the camera, and (X, Y, Z) represents the three-dimensional coordinates of the point cloud in the world coordinate system.
7. The weakly supervised 3D object detection method for open scenes according to claim 1, characterized in that: During the training process, the proposal of each object comes from two prediction results of the teacher network and the student network respectively. The prediction results of the teacher network are regarded as labels to supervise the prediction of the student network.
8. The weakly supervised 3D object detection method for open scenes according to claim 1, characterized in that: The cross entropy loss function is used to constrain and guide the learning process of the student network.
9. The weakly supervised 3D object detection method for open scenes according to claim 8, characterized in that: The value of the cross entropy loss function L is Where n is the number of objects in each training batch, t is the prediction from the teacher network, and s is the prediction from the student network.
10. A weakly supervised 3D object detection system for open scenes, characterized in that: include: The data module uses a monocular camera and a low-line-count laser radar to collect image data and point cloud data respectively; The screening module uses the 2D detection network to infer the semantic information of the current frame. Then, the point cloud of the ROI area is screened out through the conversion relationship between the camera coordinate system and the radar coordinate system. The DBSCAN clustering algorithm is used to segment the point cloud based on the geometric density characteristics of the point cloud and obtain the position of the object. The detection module projects the object position of the unsupervised 3D target proposal module onto the monocular image. It adopts a cross-modal transfer learning method, in which the teacher network predicts the object orientation to guide the student network. During the training process, it learns to predict the object orientation from the point cloud and further optimizes the detection results, obtaining a 3D detection result including the object's spatial position, three-dimensional size, and posture orientation information.
Citation Information
Patent Citations
Three-dimensional point cloud clustering recognition method and system based on image recognition
CN113935428A
3D target detection method and system based on environmental perception
CN116203576A
Point cloud target detection domain adaptation method from simulation data to real data
CN117710643A
Method for removing noise from a 3D point cloud
EP4273792A1
Cited By
Monocular three-dimensional target sensing method and system based on selective knowledge distillation
CN120543827A
