Monocular 3D target detection method and related product
By using the RGB image detector trained with image feature supervision and logical feature supervision in monocular 3D target detection, the problem of low accuracy in monocular 3D target detection is solved and higher detection accuracy and applicability are achieved.
Patent Information
- Application Number
- CN202410773510.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-27
AI Technical Summary
Due to the lack of spatial clues, existing monocular 3D target detection methods have poor accuracy and are difficult to effectively apply in fields such as autonomous driving and robotics.
The RGB image detector generated through image feature supervision and logical feature supervision auxiliary training uses the supervision guidance of the feature layer and logical layer to improve the accuracy of monocular 3D target detection.
It improves the accuracy of monocular 3D target detection, enhances the category prediction, 3D bounding box positioning and heading angle estimation capabilities of targets around the vehicle, and is suitable for vehicle-mounted platforms.
Smart Images

Figure CN118710879A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of target detection, and in particular to a monocular 3D target detection method and related products. Background Art
[0002] As the two-dimensional object detection technology of images becomes more and more mature, the 3D object detection task, which is more difficult, more complex and more significant than the 2D object detection task, has become the focus of research.
[0003] Monocular 3D object detection is based on a single frame image to predict the category of objects around the vehicle, locate the 3D bounding box, and estimate the heading angle. With its inherent advantage of low cost, monocular 3D object detection has broad application prospects and commercial value in fields such as autonomous driving and robotics. Existing monocular 3D object detection methods estimate the three-dimensional information of the target through a single camera image and lack spatial clues, resulting in poor accuracy of monocular 3D object detection.
[0004] Therefore, how to improve the accuracy of monocular 3D target detection is a problem that technicians in this field need to solve urgently. Summary of the invention
[0005] Based on the above problems, the present application provides a monocular 3D target detection method and related products, which guide the RGB image model to learn in the right direction based on the two supervisions of feature layer and logic layer, thereby improving the accuracy of monocular 3D target detection using RGB image detector.
[0006] In a first aspect, an embodiment of the present application provides a monocular 3D target detection method, comprising:
[0007] Get the target image;
[0008] Detecting the target image using an RGB image detector and obtaining a detection result; the RGB image detector is generated by training an RGB image model assisted by image feature supervision and logical feature supervision;
[0009] The detection result is outputted.
[0010] Optionally, acquiring the target image includes:
[0011] Determine the target to be measured;
[0012] A monocular RGB image including the target to be measured is acquired using a monocular camera.
[0013] Optionally, the detecting the target image using an RGB image detector and obtaining a detection result includes:
[0014] Inputting the monocular RGB image into an RGB image detector;
[0015] Generate RGB image features corresponding to the monocular RGB image using an RGB backbone module in the RGB image detector;
[0016] Based on the RGB image features, the RGB head module in the RGB image detector is used to perform detection, and the three-dimensional information of the target to be detected is obtained.
[0017] Optionally, the RGB image detector is trained by the following method:
[0018] Inputting the training depth map into a depth map detector to generate a first depth image feature and a first detection result;
[0019] Inputting the training RGB image into the RGB image model to generate a second RGB image feature and a second detection result;
[0020] Based on the first depth image feature and the first detection result, the second RGB image feature and the second detection result generated by the RGB image model are optimized by image feature supervision and logical feature supervision to obtain an RGB image detector;
[0021] The training RGB image corresponds to the training depth image;
[0022] The depth map detector is trained based on an RGB network.
[0023] Optionally, the optimizing the RGB image features and the second detection results generated by the RGB image model through image feature supervision and logical feature supervision based on the first depth image features and the first detection results, and obtaining an RGB image detector, includes:
[0024] Calculate the regional feature supervision loss and the semantic feature supervision loss based on the first depth image feature and the second RGB image feature;
[0025] Calculating a logical feature supervision loss based on the first detection result and the second detection result;
[0026] The RGB image model is optimized based on the regional feature supervision loss, the semantic feature supervision loss and the logical feature supervision loss, and an RGB image detector is obtained.
[0027] Optionally, the method further includes:
[0028] When the logical feature supervision loss reaches a first preset threshold, the first detection result and the second detection result are fed back to the user, so that the user can identify the sample quality and give a confidence level.
[0029] Optionally, the depth map detector is trained by the following method:
[0030] Input the training depth map into the RGB backbone module in the RGB image model to generate a depth image feature corresponding to the training depth map;
[0031] Based on the depth image features, the RGB head module in the RGB image model is used for detection, and a test result and a depth map model are obtained;
[0032] The depth map is iteratively optimized based on the test result to obtain a depth map detector.
[0033] In a second aspect, an embodiment of the present application provides a monocular 3D target detection device, comprising:
[0034] An acquisition module is used to acquire a monocular RGB image of the target to be measured;
[0035] A detection module, used to detect the monocular RGB image using an RGB image detector and obtain a detection result; the RGB image detector is generated by learning an RGB image model assisted by image feature supervision and logical feature supervision;
[0036] An output module is used to output the detection result.
[0037] In a third aspect, an embodiment of the present application provides a monocular 3D target detection device, characterized in that it includes:
[0038] Memory for storing computer programs;
[0039] A processor is used to implement the steps of the above-mentioned monocular 3D target detection method when executing the computer program.
[0040] In a fourth aspect, an embodiment of the present application provides a readable storage medium, characterized in that a computer program is stored on the readable storage medium, and when the computer program is executed by a processor, the steps of the monocular 3D target detection method as described above are implemented.
[0041] It can be seen from the above technical solutions that compared with the prior art, the present application has the following advantages:
[0042] The embodiment of the present application first obtains a target image. Then, an RGB image detector is used to detect the target image and obtain a detection result. Among them, the RGB image detector is generated by training an RGB image model assisted by image feature supervision and logical feature supervision. Finally, the detection result is output. In this way, the RGB image model is guided to learn in the right direction based on the two supervisions of the feature layer and the logical layer, thereby making the generated RGB image detector more accurate. By performing 3D target detection on the target image through the RGB image detector, the accuracy of monocular 3D target detection can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A flow chart of a monocular 3D target detection method provided in an embodiment of the present application;
[0044] Figure 2 An algorithm flow chart for generating an RGB image detector provided in an embodiment of the present application;
[0045] Figure 3 A flowchart of an algorithm for generating a depth map detector provided in an embodiment of the present application;
[0046] Figure 4 A schematic diagram of the structure of a monocular 3D target detection device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] As mentioned above, existing monocular 3D object detection methods have the problem of low accuracy. Specifically, monocular 3D object detection uses a single camera to obtain image data and infer the three-dimensional spatial information of the object through computer algorithms, such as category prediction, bounding box positioning, and heading angle estimation. With its inherent advantage of low cost, it has broad application prospects and commercial value in fields such as autonomous driving and robotics. However, the existing algorithms are imperfect. Since the three-dimensional information of the target is estimated through a single camera image, the lack of spatial clues often leads to the problem of poor accuracy of monocular 3D object detection.
[0048] In order to solve the above problems, an embodiment of the present application provides a monocular 3D target detection method, comprising: first acquiring a target image. Then using an RGB image detector to detect the target image and obtain a detection result. The RGB image detector is generated by training an RGB image model assisted by image feature supervision and logical feature supervision. Finally, the detection result is output.
[0049] In this way, the RGB image model is guided to learn in the right direction based on the two supervisions of the feature layer and the logic layer, so that the generated RGB image detector has higher accuracy. By performing 3D object detection on the target image through the RGB image detector, the accuracy of monocular 3D object detection can be improved.
[0050] It should be noted that the monocular 3D target detection method and related products provided by the present application can be applied to the field of target detection technology. The above is only an example and does not limit the application field of the monocular 3D target detection method and related products provided by the present application.
[0051] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0052] Figure 1 A flow chart of a monocular 3D target detection method provided in an embodiment of the present application. Figure 1 As shown, a monocular 3D target detection method provided in an embodiment of the present application may include:
[0053] S101: Acquire a target image.
[0054] In practical applications, the existing monocular 3D target detection estimates the three-dimensional information of the target through a single camera image, lacks spatial clues, and easily leads to the problem of poor accuracy of monocular 3D target detection. Although adding spatial information can make the model learning features richer and more expressive, the existing algorithms still have problems such as complex model structure and gaps between heterogeneous modalities, which are difficult to use on vehicle platforms. Therefore, an embodiment of the present application provides a lightweight monocular 3D target detection algorithm based on feature supervision and active learning, which is used for 3D target detection on vehicle platforms to improve the accuracy of detection. Specifically, the monocular 3D target detection device is equipped with an image detector, and the target image is first acquired before detection. The target image can be taken and sent in real time by a vehicle-mounted monocular camera, and directly acquired by the monocular 3D target detection device. The vehicle-mounted monocular camera is a camera device used on a car. It relies on a single camera to capture road conditions and environmental information, thereby playing a role in assisting driving. It is understandable that in order to ensure the safety of autonomous driving, the on-board monocular camera needs to continuously capture images of the scenery along the way while the vehicle is driving, send the captured RGB images as target images, and obtain them by the monocular 3D target detection device for further detection.
[0055] In addition, since there are different ways to acquire the target image, the embodiment of the present application can illustrate a possible acquisition method.
[0056] In one embodiment, acquiring the target image includes:
[0057] Determine the target to be measured;
[0058] A monocular RGB image including the target to be measured is acquired using a monocular camera.
[0059] In practical applications, there is information interaction between the monocular 3D target detection device and the monocular camera. At the same time, in order to avoid obtaining too many pictures with only background images but no specific targets, the detection burden of the monocular 3D target detection device is too heavy. In the embodiment of the present application, the target to be measured can be determined first, and then the monocular camera is used to obtain a monocular RGB image including the target to be measured. For example, when a vehicle is driving on a road and there are no obstacles within a certain range of front, back, left and right, the RGB image obtained by the monocular camera is only a road background, without pedestrians, roadblocks and vehicles, etc., which may affect the driver's safety and must be detected. If too many such photos are obtained and all are detected by the monocular 3D target detection device, the detection burden of the monocular 3D target detection device may be too heavy. Therefore, the present application introduces a method that can first perform preliminary detection by radar or other means to determine whether there is a target that must be detected as exemplified above. If there is, the target to be measured is first determined, and then the monocular camera is called to obtain a monocular RGB image including the target to be measured, and then the detection is performed. In this way, the detection burden of the monocular 3D target detection device can be reduced.
[0060] S102: Detect the target image using an RGB image detector and obtain a detection result; the RGB image detector is generated by training an RGB image model assisted by image feature supervision and logical feature supervision.
[0061] In practical applications, the target image is acquired through a monocular camera, and then the three-dimensional information of the target is estimated using an image detector. Due to the lack of spatial clues, the effect is general. Adding spatial information can make the model learning feature information richer and more expressive. However, the existing algorithms have factors such as complex model structure and differences between heterogeneous models, making it difficult to apply them to vehicle-mounted platforms. Therefore, the embodiment of the present application uses existing data to assist in RGB image model training through image feature supervision and logical feature supervision, and guides the RGB image model to learn in the right direction from the two supervisions of the feature layer and the logical layer, which not only removes the differences between heterogeneous models, but also improves the accuracy of the RGB image model to obtain an RGB graphic detector. The optimized RGB graphic detector is used to detect the target image, and detection results such as category prediction of targets around the vehicle, 3D bounding box positioning, and heading angle estimation are achieved.
[0062] In addition, since there are different ways to detect a target image using an RGB image detector, the embodiment of the present application can illustrate a possible detection method.
[0063] In one case, the detecting the target image using an RGB image detector and obtaining a detection result includes:
[0064] Inputting the monocular RGB image into an RGB image detector;
[0065] Generate RGB image features corresponding to the monocular RGB image using an RGB backbone module in the RGB image detector;
[0066] Based on the RGB image features, the RGB head module in the RGB image detector is used to perform detection, and the three-dimensional information of the target to be detected is obtained.
[0067] In practical applications, the RGB image detector is generated based on the RGB network through image feature supervision and logical feature supervision auxiliary training, including the RGB backbone module and the RGB head module. Among them, the RGB backbone module is a backbone network structure that specializes in processing red, green and blue (RGB) color space images, which is used to extract features from the input RGB image and use the features for various visual tasks, such as graphic classification, target detection and scene understanding. Specifically, after the monocular 3D target detection device obtains a monocular RGB image (target image), the monocular RGB image is input into the RGB image detector, and the RGB image features of the monocular RGB image are first extracted through the RGB backbone module. Then the RGB image features are sent to the RGBhead module for target detection tasks and target detection results are obtained. It should be noted that the detection results include but are not limited to category prediction of targets around the vehicle, 3D bounding box positioning and heading angle estimation. It should be noted that there are many mainstream RGB backbone network architectures, such as VGG, ResNet, Inception and EffcientNet. These networks have different performances in different application scenarios, and which one to choose can be determined based on specific task requirements, available computing resources and expected performance.
[0068] S103: Output the detection result.
[0069] In practical applications, the monocular 3D target detection device needs to interact with the vehicle display screen to output the detection results in real time and display them on the vehicle display screen, thereby playing a role in assisting driving. It is understandable that in order to make the display of the detection results more flexible, the detection results output by the monocular 3D target detection device can also be received through wireless communication devices (mobile phones, laptops, etc.) and displayed in real time.
[0070] In summary, the embodiment of the present application first acquires a target image. Then, an RGB image detector is used to detect the target image and obtain a detection result. Among them, the RGB image detector is generated by training an RGB image model assisted by image feature supervision and logical feature supervision. Finally, the detection result is output. In this way, based on the two supervisions of the feature layer and the logical layer, the RGB image model is guided to learn in the right direction, thereby making the generated RGB image detector more accurate. By performing 3D target detection on the target image through the RGB image detector, the accuracy of monocular 3D target detection can be improved.
[0071] In addition, since the training methods of RGB image detectors are not the same, the embodiment of the present application can illustrate a possible training method.
[0072] In one embodiment, the RGB image detector is trained by:
[0073] Inputting the training depth map into a depth map detector to generate a first depth image feature and a first detection result;
[0074] Inputting the training RGB image into the RGB image model to generate a second RGB image feature and a second detection result;
[0075] Based on the first depth image feature and the first detection result, the second RGB image feature and the second detection result generated by the RGB image model are optimized by image feature supervision and logical feature supervision to obtain an RGB image detector;
[0076] The training RGB image corresponds to the training depth image;
[0077] The depth map detector is trained based on an RGB network.
[0078] In practical applications, the embodiment of the present application uses the same network structure as RGB for the depth map, eliminating the differences between heterogeneous models, achieving lightweight network structure and accelerating training speed. At the same time, the two supervisions of the feature layer and the logic layer are used to guide the RGB features to learn in the right direction, thereby improving the accuracy of the RGB image model. Specifically, the embodiment of the present application introduces a depth map detector obtained based on RGB network training. Figure 2 The present invention provides an algorithm flow chart for generating an RGB image detector according to an embodiment of the present invention. Figure 2As shown, the depth map detector has been pre-trained and can meet the detection requirements of the depth map. Since the depth map detector is obtained by training the RGB network, it has an RGB backbone module and an RGB head module. The training depth map is input into the depth map detector, and the feature is extracted through the RGB backbone module to generate the first depth image feature, and then the first depth image feature is input into the RGB head module to obtain the first detection result. The training of the RGB image model is mainly for the RGB backbone module and the RGB head module. During the training process of the RGB image model, the training RGB map is input into the RGB image model to generate the second RGB image feature, and then the second RGB image feature is input into the RGB head module to obtain the second detection result, and then the output result is used for iterative optimization to obtain the RGB image detector. The training depth map is the depth map of the training RGB map, that is, there is a corresponding relationship between the two, and the first depth image feature and the first detection result are accurate compared to the second RGB image feature and the second detection result. Therefore, the embodiment of the present application also uses image feature supervision and logical feature supervision to assist in optimizing the RGB image model, so that the second RGB image feature and the second detection result generated by the RGB image model are more accurate and meet the detection requirements, that is, the RGB image detector is obtained.
[0079] In addition, since the methods of optimizing the RGB image model through image feature supervision and logical feature supervision are different, the embodiment of the present application can illustrate a possible optimization method.
[0080] In one case, the optimizing the RGB image features and the second detection results generated by the RGB image model through image feature supervision and logical feature supervision based on the first depth image features and the first detection results, and obtaining an RGB image detector, includes:
[0081] Calculate the regional feature supervision loss and the semantic feature supervision loss based on the first depth image feature and the second RGB image feature;
[0082] Calculating a logical feature supervision loss based on the first detection result and the second detection result;
[0083] The RGB image model is optimized based on the regional feature supervision loss, the semantic feature supervision loss and the logical feature supervision loss, and an RGB image detector is obtained.
[0084] In practical applications, image feature supervision is to extract the positive pixel area in the 2D truth box as the participating area, and then use the participating area feature value of the depth map and the participating area feature value of the RGB map (the first depth image feature and the second RGB image feature in the participating area) to calculate the difference value as the regional feature supervision loss. In addition, in order to alleviate the modal difference, the correlation calculation of the feature pair is added as another attribute of feature supervision, that is, the similarity between the depth map feature vector pair and the RGB map feature vector pair is calculated as the semantic feature supervision loss. Logical feature supervision is to use the features (detection results) output by the RGB head module in the depth map detector as soft labels and the features (detection results) output by the RGB head module of the RGB image model (detection head) for loss calculation, and the loss is used as the logical feature supervision loss. In this way, the regional feature supervision loss, semantic feature supervision loss and logical feature supervision loss are combined, and the loss value is determined by manual judgment or setting a threshold to determine whether the loss value is qualified. Through iterative optimization, an RGB image detector that meets the requirements is finally obtained.
[0085] In addition, since the processing methods corresponding to different logical feature supervision losses are not the same, the embodiment of the present application can illustrate a possible processing method.
[0086] In one embodiment, the method further comprises:
[0087] When the logical feature supervision loss reaches a first preset threshold, the first detection result and the second detection result are fed back to the user, so that the user can identify the sample quality and give a confidence level.
[0088] In practical applications, combined with Figure 2 As shown, experts can serve as users to assist in the training of RGB models, and determine the sample quality and the confidence of the current RGB image model through the value of the logical feature supervision loss. Specifically, the output of the RGB head module in the depth map detector is used to calculate the logical difference with the output of the RGB head module of the RGB image model, and then the sample quality is determined and the confidence is given through expert identification. Among them, if the value of the logical feature supervision loss reaches the first preset threshold, the corresponding data (the first detection result and the second detection result) is extracted and fed back to the expert, and the expert confirms whether it is a labeling error or a model prediction error. If it is a labeling error, the labeling result needs to be modified and put into the training set to continue training. If not, the logical feature supervision loss is used to generate sample weights and participate in continued training.
[0089] In summary, an embodiment of the present application provides a training method for an RGB image detector, first inputting a training depth map into a depth map detector to generate a first depth image feature and a first detection result. Then, the training RGB map is input into an RGB image model to generate a second RGB image feature and a second detection result. Finally, based on the first depth image feature and the first detection result, the second RGB image feature and the second detection result generated by the RGB image model are optimized through image feature supervision and logical feature supervision to obtain an RGB image detector. Among them, the training RGB map corresponds to the training depth map, and the depth map detector is obtained based on RGB network training. In this way, the depth map adopts the same network structure as RGB, eliminating the differences between heterogeneous models, achieving lightweight network structure and accelerating training speed. At the same time, the two supervisions of the feature layer and the logical layer are used to guide the RGB features to learn in the right direction, so that the detection accuracy of the RGB image detector is higher.
[0090] In addition, since the methods for training depth map detectors are different, the embodiments of the present application can illustrate a possible training method.
[0091] In one embodiment, the depth map detector is trained by:
[0092] Input the training depth map into the RGB backbone module in the RGB image model to generate a depth image feature corresponding to the training depth map;
[0093] Based on the depth image features, the RGB head module in the RGB image model is used for detection, and a test result and a depth map model are obtained;
[0094] The depth map model is iteratively optimized based on the test result to obtain a depth map detector.
[0095] In practical applications, Figure 3 This is a flowchart of an algorithm for generating a depth map detector provided in an embodiment of the present application. Figure 3 As shown, the embodiment of the present application uses the same network structure as the RGB image model to train the depth map detector, eliminates the differences between heterogeneous models, realizes lightweight network structure, and speeds up the training speed of subsequent RGB image detectors. Specifically, the embodiment of the present application first inputs the training depth map into the RGB image model, uses the RGB backbone module therein to generate depth image features, and then inputs the depth image features into the RGB head module for detection, obtains a suboptimal depth map model and test results, and then outputs the test results, so that the depth map model is iteratively optimized based on the test results to generate a depth map detector.
[0096] In summary, an embodiment of the present application provides a training method for a depth map detector, firstly inputting a training depth map into the RGB backbone module in the RGB image model to generate depth image features corresponding to the training depth map. Then, based on the depth image features, the RGB head module in the RGB image model is used for detection, and a test result is obtained. Finally, the RGB image model is iteratively optimized based on the test result, and a depth map detector is obtained. In this way, by adopting the same network structure as the RGB image model for training, the differences between heterogeneous models are eliminated, which not only achieves lightweight network structure, but also speeds up the training speed of subsequent RGB image detectors.
[0097] Based on the monocular 3D object detection method provided in the above embodiment, the present application embodiment further provides a monocular 3D object detection device. The monocular 3D object detection device is described below in conjunction with the embodiments and drawings.
[0098] Figure 4 A schematic diagram of the structure of a monocular 3D target detection device provided in an embodiment of the present application. Figure 4 As shown, the monocular 3D object detection device 400 provided in the embodiment of the present application includes:
[0099] The acquisition module 401 is used to acquire a monocular RGB image of the target to be measured;
[0100] A detection module 402 is used to detect the monocular RGB image using an RGB image detector and obtain a detection result; the RGB image detector is generated by learning an RGB image model assisted by image feature supervision and logical feature supervision;
[0101] The output module 403 is used to output the detection result.
[0102] As an implementation manner, regarding how to obtain the target image, the acquisition module 401 is specifically used for:
[0103] Determine the target to be measured;
[0104] A monocular RGB image including the target to be measured is acquired using a monocular camera.
[0105] As an implementation manner, regarding how to detect a target image using an RGB image detector, the detection module 402 is specifically used to:
[0106] Inputting the monocular RGB image into an RGB image detector;
[0107] Generate RGB image features corresponding to the monocular RGB image using an RGB backbone module in the RGB image detector;
[0108] Based on the RGB image features, the RGB head module in the RGB image detector is used to perform detection, and the three-dimensional information of the target to be detected is obtained.
[0109] As an implementation manner, with respect to how to train to obtain an RGB image detector, the monocular 3D object detection device 400 further includes: a first training module;
[0110] A first training module, configured to input a training depth map into a depth map detector to generate a first depth image feature and a first detection result;
[0111] Inputting the training RGB image into the RGB image model to generate a second RGB image feature and a second detection result;
[0112] Based on the first depth image feature and the first detection result, the second RGB image feature and the second detection result generated by the RGB image model are optimized by image feature supervision and logical feature supervision to obtain an RGB image detector;
[0113] The training RGB image corresponds to the training depth image;
[0114] The depth map detector is trained based on an RGB network.
[0115] The step of optimizing the RGB image features and the second detection results generated by the RGB image model through image feature supervision and logical feature supervision based on the first depth image features and the first detection results, and obtaining an RGB image detector, includes:
[0116] Calculate the regional feature supervision loss and the semantic feature supervision loss based on the first depth image feature and the second RGB image feature;
[0117] Calculating a logical feature supervision loss based on the first detection result and the second detection result;
[0118] The RGB image model is optimized based on the regional feature supervision loss, the semantic feature supervision loss and the logical feature supervision loss, and an RGB image detector is obtained.
[0119] As an implementation method, regarding how to feedback the detection result, the monocular 3D object detection device 400 further includes: a feedback module;
[0120] A feedback module is used to feed back the first detection result and the second detection result to a user when the logical feature supervision loss reaches a first preset threshold, so that the user can identify the sample quality and give a confidence level.
[0121] As an implementation manner, with respect to how to train a depth map detector, the monocular 3D object detection device 400 further includes: a second training module;
[0122] A second training module is used to input the training depth map into the RGB backbone module in the RGB image model to generate a depth image feature corresponding to the training depth map;
[0123] Based on the depth image features, the RGB head module in the RGB image model is used for detection, and a test result and a depth map model are obtained;
[0124] The depth map model is iteratively optimized based on the test result to obtain a depth map detector.
[0125] In summary, the embodiment of the present application first acquires a target image. Then, an RGB image detector is used to detect the target image and obtain a detection result. Among them, the RGB image detector is generated by training an RGB image model assisted by image feature supervision and logical feature supervision. Finally, the detection result is output. In this way, based on the two supervisions of the feature layer and the logical layer, the RGB image model is guided to learn in the right direction, thereby making the generated RGB image detector more accurate. By performing 3D target detection on the target image through the RGB image detector, the accuracy of monocular 3D target detection can be improved.
[0126] In addition, the embodiment of the present application also provides a monocular 3D target detection device, including:
[0127] Memory for storing computer programs;
[0128] A processor is used to implement the steps of the above-mentioned monocular 3D target detection method when executing the computer program.
[0129] In addition, an embodiment of the present application further provides a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the monocular 3D target detection method described above are implemented.
[0130] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A monocular 3D object detection method, It is characterized in that The method comprises: Get the target image; Detecting the target image using an RGB image detector and obtaining a detection result; the RGB image detector is generated by training an RGB image model assisted by image feature supervision and logical feature supervision; The detection result is outputted.
2. The method according to claim 1, It is characterized in that The acquiring of the target image comprises: Determine the target to be measured; A monocular RGB image including the target to be measured is acquired using a monocular camera.
3. The method according to claim 2, It is characterized in that The detecting the target image by using an RGB image detector and obtaining a detection result includes: Inputting the monocular RGB image into an RGB image detector; Generate RGB image features corresponding to the monocular RGB image using an RGB backbone module in the RGB image detector; Based on the RGB image features, the RGB head module in the RGB image detector is used to perform detection, and the three-dimensional information of the target to be detected is obtained.
4. The method according to claim 1, It is characterized in that The RGB image detector is trained by the following method: Inputting the training depth map into a depth map detector to generate a first depth image feature and a first detection result; Inputting the training RGB image into the RGB image model to generate a second RGB image feature and a second detection result; Based on the first depth image feature and the first detection result, the second RGB image feature and the second detection result generated by the RGB image model are optimized by image feature supervision and logical feature supervision to obtain an RGB image detector; The training RGB image corresponds to the training depth image; The depth map detector is trained based on an RGB network.
5. The method according to claim 4, It is characterized in that The step of optimizing the RGB image features and the second detection results generated by the RGB image model through image feature supervision and logical feature supervision based on the first depth image features and the first detection results, and obtaining an RGB image detector, includes: Calculate the regional feature supervision loss and the semantic feature supervision loss based on the first depth image feature and the second RGB image feature; Calculating a logical feature supervision loss based on the first detection result and the second detection result; The RGB image model is optimized based on the regional feature supervision loss, the semantic feature supervision loss and the logical feature supervision loss, and an RGB image detector is obtained.
6. The method according to claim 5, It is characterized in that The method further comprises: When the logical feature supervision loss reaches a first preset threshold, the first detection result and the second detection result are fed back to the user, so that the user can identify the sample quality and give a confidence level.
7. The method according to claim 4, It is characterized in that The depth map detector is trained by the following method: Input the training depth map into the RGB backbone module in the RGB image model to generate a depth image feature corresponding to the training depth map; Based on the depth image features, the RGB head module in the RGB image model is used for detection, and a test result and a depth map model are obtained; The depth map model is iteratively optimized based on the test result to obtain a depth map detector.
8. A monocular 3D object detection device, It is characterized in that include: An acquisition module is used to acquire a monocular RGB image of the target to be measured; A detection module, used to detect the monocular RGB image using an RGB image detector and obtain a detection result; the RGB image detector is generated by learning an RGB image model assisted by image feature supervision and logical feature supervision; An output module is used to output the detection result.
9. A monocular 3D object detection device, It is characterized in that include: Memory for storing computer programs; A processor, configured to implement the steps of the monocular 3D target detection method according to any one of claims 1 to 7 when executing the computer program.
10. A readable storage medium, It is characterized in that The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the monocular 3D target detection method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Monocular 3D target detection method based on lightweight feature pyramid structure
CN112990050A
Model training method and device, equipment, storage medium and image detection method
CN113920307A
Three-dimensional target detection method based on knowledge distillation
CN116386003A
Multi-modal 3D target detection method and system based on depth completion
CN117351310A
