Three-dimensional target detection method and device, and related product

By acquiring camera images with different focal lengths and angles of view, using a 3D target detection model to perform 3D target detection and fusing the results, it solves the problem of high sensor cost for autonomous vehicles and achieves high-precision 3D target detection.

CN118822931APending Publication Date: 2024-10-22BEIJING ZHIXINGZHE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310428351.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-20
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

Existing self-driving three-dimensional target detection methods have limitations in viewing angle and distance, as well as the high cost of lidar-based technology, which limits the manufacturing cost and large-scale promotion of self-driving vehicles.

Method used

By acquiring two-dimensional images from multiple cameras with different focal lengths and different viewing angles, recognition preprocessing and target detection are performed, and a three-dimensional target detection model is used to generate three-dimensional target detection results and fused to reduce sensor costs.

Benefits of technology

Without sacrificing the perceived distance and viewing angle, it reduces the sensor cost of autonomous vehicles and improves the accuracy of three-dimensional target detection and the speed of model inference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118822931A_ABST
    Figure CN118822931A_ABST
Patent Text Reader

Abstract

The invention relates to a three-dimensional target detection method and device, and a related product. The method comprises the following steps: obtaining two-dimensional camera images of a plurality of cameras with the same detection view angle and different focal lengths and different detection view angles; performing identification preprocessing on the two-dimensional camera image, and generating a plurality of target detection images and an image mapping relation table corresponding to the two-dimensional camera image; performing target detection on the plurality of target detection images through the three-dimensional target detection model, and generating a target detection result of each target detection image; restoring the target detection result to the two-dimensional camera image according to the image mapping relation table, and generating a first three-dimensional target detection result image; and fusing the first three-dimensional target detection result image according to the visual angle and the focal length of the two-dimensional camera to generate a second three-dimensional target detection result image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of autonomous driving technology, and in particular to a three-dimensional target detection method, device, program product, medium, computer device and mobile tool. Background Art

[0002] Currently, there are two main methods for 3D target detection in autonomous driving. One is a 3D target detection method based on lidar, which feeds point cloud information into a 3D target detection model and outputs the position information, category and posture of the target in the point cloud data. The other is 3D target detection based on point cloud and image fusion, which fuses the 3D information output by the point cloud with the 2D information of the image to achieve detection and recognition of the target object.

[0003] The three-dimensional target detection method based on lidar lacks the texture and color information of the target; the three-dimensional target detection based on point cloud and image fusion has limited viewing angle, and the cost of lidar is much higher than that of camera, which increases the manufacturing cost of autonomous driving vehicles and limits large-scale promotion. Summary of the invention

[0004] The purpose of the present invention is to provide a three-dimensional target detection method, device, program product, medium, computer device and mobile tool to address the limitations of the viewing angle and distance of three-dimensional target detection in the prior art and the high cost of sensors for autonomous driving vehicles.

[0005] To achieve the above object, the present invention provides a three-dimensional target detection method in a first aspect, comprising:

[0006] Acquire two-dimensional camera images of multiple cameras with the same detection angle of view but different focal lengths and different detection angles;

[0007] Performing recognition preprocessing on the two-dimensional camera image to generate a plurality of target detection images and an image mapping relationship table corresponding to the two-dimensional camera image;

[0008] Performing target detection on the multiple target detection images using a three-dimensional target detection model to generate a target detection result for each target detection image;

[0009] Restoring the target detection result to the two-dimensional camera image according to the image mapping relationship table to generate a first three-dimensional target detection result image;

[0010] The first three-dimensional target detection result image is fused according to the viewing angle and focal length of the two-dimensional camera to generate a second three-dimensional target detection result image.

[0011] Furthermore, the loss terms of the loss function of the three-dimensional target detection model include center point prediction loss, target box size loss, center point offset loss, and / or heading attitude loss and / or three-dimensional size loss and / or depth loss.

[0012] Further, the two-dimensional camera image is subjected to recognition preprocessing, specifically:

[0013] If the target in the two-dimensional camera image is an incomplete target, stitching multiple two-dimensional camera images of the same target according to a target feature detection algorithm;

[0014] If there is a sky in the two-dimensional camera image or in the stitched two-dimensional camera image, the sky is cropped.

[0015] Further, if there is a sky in the two-dimensional camera image or in the stitched two-dimensional camera image, the sky is cropped, specifically:

[0016] Using a semantic segmentation algorithm, pixels with sky attributes in the two-dimensional camera image or in the spliced ​​two-dimensional camera image are marked;

[0017] Perform a connected domain operation on the non-sky pixel area to generate a maximum envelope rectangle;

[0018] The maximum envelope rectangular frame is cropped and retained, and the target detection image is generated according to the retained maximum envelope rectangular frame.

[0019] Furthermore, after restoring the target detection result to the two-dimensional camera image according to the image mapping relationship table to generate a first three-dimensional target detection result image, the method further includes:

[0020] Targets detected repeatedly in the first three-dimensional target detection result image are uniformly filtered out according to the target frame overlap degree and / or category.

[0021] Further, the step of fusing the first three-dimensional target detection result image according to the viewing angle and focal length of the two-dimensional camera to generate the second three-dimensional target detection result image is specifically as follows:

[0022] A plurality of the first three-dimensional target detection result images with the same viewing angle but different focal lengths are fused into a second three-dimensional target detection result image.

[0023] Furthermore, before acquiring the two-dimensional camera images of multiple cameras with the same detection angle of view but different focal lengths and different detection angles, the method further includes:

[0024] Label the target image dataset to be detected according to the perception task;

[0025] A plurality of three-dimensional object detection models are trained by using the labeled target image data set to be detected, and the optimal model is selected as the final three-dimensional object detection model.

[0026] A second aspect of the present invention provides a three-dimensional object detection device, the device comprising:

[0027] A data acquisition module, used to acquire two-dimensional camera images of multiple cameras with the same detection angle of view but different focal lengths and different detection angles;

[0028] A first data processing module, configured to perform recognition preprocessing on the two-dimensional camera image to generate a plurality of target detection images and an image mapping relationship table corresponding to the two-dimensional camera image;

[0029] A target detection module, configured to perform target detection on the plurality of target detection images by using a three-dimensional target detection model, and generate a target detection result for each target detection image;

[0030] A second data processing module, configured to restore the target detection result to the two-dimensional camera image according to the image mapping relationship table to generate a first three-dimensional target detection result image;

[0031] A third data processing module is used to fuse the first three-dimensional target detection result image according to the viewing angle and focal length of the two-dimensional camera to generate a second three-dimensional target detection result image.

[0032] A third aspect of the present invention provides a computer program product, which, when executed on a computer, enables the computer to execute the three-dimensional object detection method as described in any one of the first aspects.

[0033] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect.

[0034] A fifth aspect of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of any method described in the first aspect.

[0035] The sixth aspect of the present invention provides a mobile tool, characterized in that it includes the computer device described in the fifth aspect.

[0036] The three-dimensional target detection method, device, and related products provided by the present invention obtain two-dimensional camera images from multiple cameras and send them into a three-dimensional target detection model for three-dimensional target detection, and then fuse the three-dimensional target detection result images. This achieves three-dimensional target detection without sacrificing the perception distance and perception viewing angle, thereby reducing the sensor cost of the autonomous driving vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 One of the flow charts of the three-dimensional object detection method provided in the first embodiment of the present invention;

[0038] Figure 2 A second flowchart of the three-dimensional target detection method provided in the first embodiment of the present invention;

[0039] Figure 3 A third flowchart of the three-dimensional target detection method provided in the first embodiment of the present invention;

[0040] Figure 4 This is a schematic diagram of the structure of a three-dimensional object detection device provided in Embodiment 2 of the present invention;

[0041] Figure 5 A second structural diagram of a three-dimensional object detection device provided in Embodiment 2 of the present invention;

[0042] Figure 6 A schematic diagram of the structure of a computer program product provided in Embodiment 3 of the present invention;

[0043] Figure 7 This is a schematic diagram of the structure of a computer device provided in Embodiment 5 of the present invention. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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, 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] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application may be combined with each other.

[0046] The present invention may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0047] In the present invention, "module", "device", "system" and the like refer to related entities applied to computers, such as hardware, a combination of hardware and software, software or software in execution, etc. In detail, for example, an element can be, but is not limited to, a process, a processor, an object, an executable element, an execution thread, a program and / or a computer running on a processor. In addition, an application or script program running on a server, a server can all be an element. One or more elements can be in an execution process and / or thread, and an element can be localized on a computer and / or distributed between two or more computers, and can be operated by various computer-readable media. An element can also communicate through local and / or remote processes according to a signal with one or more data packets, for example, a signal from a data that interacts with another element in a local system, a distributed system, and / or a network on the Internet through a signal to interact with other systems.

[0048] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include" and "comprise" include not only those elements, but also other elements that are not explicitly listed, or also include elements inherent to such processes, methods, articles or equipment. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or equipment that includes the elements.

[0049] The three-dimensional target detection method, device and related products provided by the present invention obtain two-dimensional camera images of multiple cameras with the same detection angle of view but different focal lengths and different detection angles, and send them into a three-dimensional target detection model for three-dimensional target detection, and then fuse the three-dimensional target detection result images to complete the three-dimensional target detection, thereby ensuring the perception distance and perception angle of the target to be identified and reducing the sensor cost of the autonomous driving vehicle; by performing recognition preprocessing on the two-dimensional camera image, the three-dimensional target detection accuracy and the speed of model reasoning are improved.

[0050] Embodiment 1

[0051] The camera of the present application is set on the autonomous driving vehicle, and the image captured is a two-dimensional image. The multiple cameras include cameras with multiple focal lengths at the same viewing angle and cameras at different viewing angles. The specific number of settings is not limited and can be flexibly set according to the target recognition requirements. The camera image data can be obtained and saved through the autonomous driving vehicle control unit (Automated Vehicle Control Unit, AVCU), that is, the central processing unit of the autonomous driving vehicle, and then subscribed to the camera image data according to the target detection requirements.

[0052] Figure 1 This is one of the flow charts of the three-dimensional target detection method provided in the first embodiment of the present invention, such as Figure 1 As shown, the three-dimensional target detection method includes:

[0053] Step 110 , obtaining two-dimensional camera images of multiple cameras with the same detection angle of view but different focal lengths and different detection angles of view.

[0054] Specifically, two-dimensional camera image information captured by multiple cameras with the same detection angle of view but different focal lengths and different detection angles mounted on the vehicle at the same time in the process of driving the autonomous driving vehicle is obtained, wherein the two-dimensional camera image information includes RGB information, camera ID information, and camera internal and external parameter information.

[0055] Step 120 , performing recognition preprocessing on the two-dimensional camera image to generate a plurality of target detection images and an image mapping relationship table corresponding to the two-dimensional camera image.

[0056] Specifically, the redundant RGB information in the 2D camera image information is removed to generate the target detection image, and the mapping relationship between each target detection image and the 2D camera image before recognition preprocessing is recorded in a table to generate an image mapping relationship table. By performing recognition preprocessing on the 2D camera image, the network can focus more on the effective area, improve the detection rate of small targets, and thus improve the accuracy of 3D target detection. At the same time, by avoiding the detection of irrelevant areas, the speed of model reasoning is accelerated.

[0057] In step 120, the two-dimensional camera image is pre-processed for recognition. In a possible implementation, the steps include steps A1-A2:

[0058] Step A1: if the target in the two-dimensional camera image is an incomplete target, multiple two-dimensional camera images of the same target are spliced ​​according to a target feature detection algorithm.

[0059] Specifically, when the target is a very large target or the target is near the edge of the image and cannot be captured by a single camera, multiple two-dimensional camera images of the same target from different perspectives are unified in coordinates through the camera's internal and external parameters according to the target feature algorithm and then stitched into one image, and the mapping relationship between each stitched part of the stitched image and the two-dimensional camera image is recorded and added to the image mapping relationship table. If the pixel proportions of the same target at different perspectives are different, the target is adjusted to the same pixel proportion before stitching, and the pixel adjustment parameters are recorded. Among them, the target feature detection algorithm can be a target feature detection algorithm such as the Speeded Up Robust Features (SURF) algorithm or the Oriented FAST and Rotated BRIEF (ORB) algorithm.

[0060] Step A2: If there is a sky in the two-dimensional camera image or in the stitched two-dimensional camera image, the sky is cropped.

[0061] Specifically, if there is no target to be stitched in the two-dimensional camera image, the sky in the two-dimensional camera image is directly cropped and deleted; if there is an incomplete target in the two-dimensional camera image, the incomplete target is first stitched, and then it is identified whether there is a sky. If there is a sky, the stitched two-dimensional connected image is cropped and deleted. The cropped image and the image that does not need to be cropped are unified to a preset fixed size by scaling.

[0062] In a possible implementation manner, step A2 specifically includes steps B1-B3:

[0063] Step B1: Mark pixels with sky attributes in the two-dimensional camera image or in the spliced ​​two-dimensional camera image by using a semantic segmentation algorithm.

[0064] Step B2: Perform a connected domain operation on the non-sky pixel area to generate a maximum envelope rectangular frame.

[0065] Step B3, cropping and retaining the maximum envelope rectangular frame, and generating a target detection image according to the retained maximum envelope rectangular frame.

[0066] Step 130: Perform target detection on the multiple target detection images using a three-dimensional target detection model to generate a target detection result for each target detection image.

[0067] Among them, the loss terms of the loss function of the three-dimensional target detection model include center point prediction loss, target box size loss, center point offset loss, and / or heading attitude loss and / or three-dimensional size loss and / or depth loss.

[0068] In a specific example based on the CenterNet network structure, the loss function of the target detection model is shown in formula (1):

[0069] L det =L k +λ floor L floor +λ size L size +λ off L off +L org (1)

[0070] Among them, L k is the prediction loss for the center point; L floor Predict the loss for the nearest grounding point; L size is the target box size loss; L off is the center point offset loss; L org is the heading attitude loss; floor =0.5,λ size =0.1;λ off =1.

[0071] Among them, L k , L floor , L size , L off and L org The functions are shown in formulas (2) to (9):

[0072]

[0073]

[0074]

[0075]

[0076]

[0077]

[0078]

[0079]

[0080]

[0081] in, Y xyf With Y xyc Same format, except for Y xyc is the Gaussian heat map of the target center point, and Y xyfis the Gaussian heat map of the nearest ground point of the target. The nearest ground point is the point where the target ground point is closest to the camera itself from the camera's perspective. W and H are the width and height of the input image, R is the output step size, C is the number of target categories, and σ p is the standard deviation of target size adaptation, α and β are hyperparameters, N is the number of center points in the target detection image, is the bounding box of target category K, is the true value of the current heading category, y i is the probability of the current heading category.

[0082] Among them, L in the loss function floor The loss term enables the model to estimate the relative position of the target, the ground, and the camera itself, thereby improving the prediction accuracy of the target center position, size, displacement bias, and heading.

[0083] Step 140 , restore the target detection result to a two-dimensional camera image according to the image mapping relationship table to generate a first three-dimensional target detection result image.

[0084] Specifically, the original two-dimensional camera image mapped by the target detection image corresponding to the target detection result is found according to the image mapping relationship table, and the target detection result is restored to the two-dimensional camera image through the corresponding camera internal and external parameter inverse conversion to generate a first three-dimensional target detection result image. The target detection result includes the target size, three-dimensional position, direction and posture. If the target detection result is generated by the spliced ​​target detection image, before restoring the target detection result to the two-dimensional camera image through the corresponding camera internal and external parameter inverse conversion, each part of the target detection image is first restored according to the pixel adjustment parameter.

[0085] Step 150: fuse the first three-dimensional target detection result image according to the viewing angle and focal length of the two-dimensional camera to generate a second three-dimensional target detection result image.

[0086] Specifically, the targets photographed by cameras with the same viewing angle but different focal lengths are at different distances. The long focal length camera focuses on detecting long-distance and small-sized targets, and the short focal length camera focuses on detecting close-distance and large-sized targets. Multiple first three-dimensional target detection result images with the same viewing angle but different focal lengths are fused into a second three-dimensional target detection result image. The second three-dimensional target detection result image is a two-dimensional image with depth information of the detected target, thereby realizing three-dimensional target detection of two-dimensional images.

[0087] In an alternative approach, Figure 2 The second flowchart of the three-dimensional target detection method provided in the first embodiment of the present invention is as follows: Figure 2 As shown, after step 140, the following steps are further included:

[0088] Step 210 , filtering out the objects detected repeatedly in the first three-dimensional object detection result image according to the object frame overlap degree and / or category.

[0089] Specifically, if multiple two-dimensional cameras capture the same target at different viewing angles, the target frame overlap and category identity of the target detection results are compared, only the best target detection result is retained, and the remaining repeated target detection results are removed. In a possible implementation, the target frame overlap is compared first. If there is a deviation in the overlap, the target detection result with the high overlap is retained; if the overlap is the same, then the categories are compared to see if they are unified, and the target detection results with the unified category are retained; if the overlap is the same and the categories are unified, a target detection result is randomly retained, or the target detection result to be retained is determined based on parameters such as the target frame confidence.

[0090] In yet another alternative, Figure 3 The third flowchart of the three-dimensional target detection method provided in the first embodiment of the present invention is as follows: Figure 3 As shown, before step 110, it also includes:

[0091] Step 310: label the target image dataset to be detected according to the perception task.

[0092] Among them, the perception tasks include obstacle targets and other targets. The obstacle targets are used for obstacle avoidance, and the other targets are used for tracking and detection. The target image data set to be detected may include annotations of the obstacle targets and other targets.

[0093] Step 320 , training multiple 3D object detection models using the labeled target image dataset to be detected, and selecting the optimal model as the final 3D object detection model.

[0094] In a possible implementation manner, step 320 specifically includes steps C1-C3:

[0095] Step C1, randomly distribute the labeled target image data set to be detected to generate a training set, a validation set and a test set. The number of samples in the training set, the validation set and the test set is set according to a preset ratio, and optionally, the training set samples account for the largest proportion.

[0096] Step C2, training multiple three-dimensional object detection models by inputting multiple parameter combinations and training sets.

[0097] Step C3, based on the comprehensive results of the validation set and the test set, select the best model as the final 3D object detection model. The validation set is used to observe the performance changes of each iteration model, and the test set is used to evaluate the final model; the comprehensive results include the detection accuracy (Mean Average Precision, MAP) and heading accuracy of each category.

[0098] Embodiment 2

[0099] Embodiment 2 of the present invention provides a three-dimensional object detection device. Figure 4 This is one of the structural schematic diagrams of the three-dimensional target detection device provided in the second embodiment of the present invention, such as Figure 4 As shown, the three-dimensional object detection device 400 includes a data acquisition module 401, a first data processing module 402, an object detection module 403, a second data processing module 404 and a third data processing module 405.

[0100] The data acquisition module 401 is used to acquire two-dimensional camera images of multiple cameras with the same detection angle of view but different focal lengths and different detection angles.

[0101] The first data processing module 402 is used to perform recognition preprocessing on the two-dimensional camera image to generate a plurality of target detection images and an image mapping relationship table corresponding to the two-dimensional camera image.

[0102] Among them, the two-dimensional camera image is subjected to recognition preprocessing, specifically:

[0103] If the target in the 2D camera image is an incomplete target, multiple 2D camera images of the same target are stitched together according to the target feature detection algorithm;

[0104] If there is sky in the 2D camera image or in the stitched 2D camera image, the sky is cropped.

[0105] If there is sky in the two-dimensional camera image or in the stitched two-dimensional camera image, the sky is cropped, specifically:

[0106] Using a semantic segmentation algorithm, pixels with sky attributes in the two-dimensional camera image or in the spliced ​​two-dimensional camera image are marked;

[0107] Perform a connected domain operation on the non-sky pixel area to generate a maximum envelope rectangle;

[0108] The maximum envelope rectangular box is cropped and retained, and the target detection image is generated according to the retained maximum envelope rectangular box.

[0109] The target detection module 403 is used to perform target detection on multiple target detection images using a three-dimensional target detection model to generate a target detection result for each target detection image.

[0110] Among them, the loss terms of the loss function of the three-dimensional target detection model include center point prediction loss, target box size loss, center point offset loss, and / or heading attitude loss and / or three-dimensional size loss and / or depth loss.

[0111] The second data processing module 404 is used to restore the target detection result to the two-dimensional camera image according to the image mapping relationship table to generate a first three-dimensional target detection result image.

[0112] The third data processing module 405 is used to fuse the first 3D target detection result image according to the viewing angle and focal length of the 2D camera to generate a second 3D target detection result image.

[0113] The first three-dimensional target detection result image is fused according to the viewing angle and focal length of the two-dimensional camera to generate the second three-dimensional target detection result image:

[0114] A plurality of the first three-dimensional target detection result images with the same viewing angle but different focal lengths are fused into a second three-dimensional target detection result image.

[0115] In an optional solution, after restoring the target detection results to a two-dimensional camera image according to an image mapping relationship table to generate a first three-dimensional target detection result image, the second data processing module 404 is also used to filter out the repeatedly detected targets in the first three-dimensional target detection result image according to the target frame overlap and / or category.

[0116] In yet another alternative, Figure 5 The second structural diagram of the three-dimensional target detection device provided in the second embodiment of the present invention is as follows: Figure 5 As shown, before acquiring two-dimensional camera images of multiple cameras with the same detection angle of view but different focal lengths and different detection angles of view, the device also includes a model training module 406.

[0117] The model training module 406 is used to label the target image data set to be detected according to the perception task; train multiple three-dimensional target detection models through the labeled target image data set to be detected, and select the optimal model as the final three-dimensional target detection model.

[0118] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the data processing module can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.

[0119] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more microprocessors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0120] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The above computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The above-mentioned computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the above-mentioned computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, Bluetooth, microwave, etc.) methods. The above-mentioned computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The above-mentioned available medium can be a magnetic medium (such as a floppy disk, a hard disk, a tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)), etc.

[0121] Embodiment 3

[0122] Embodiment 3 provides a computer program product including instructions, such as Figure 6 As shown, when the computer program product runs on a computer, the computer is enabled to execute any one of the three-dimensional object detection methods provided in Example 1.

[0123] Embodiment 4

[0124] Embodiment 4 of the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, any three-dimensional object detection method provided in Embodiment 1 is implemented.

[0125] Embodiment 5

[0126] A fifth embodiment of the present invention provides a computer device, Figure 7 This is a schematic diagram of the structure of a computer device provided in Embodiment 5 of the present invention. Figure 7 As shown, it includes a memory 500, a processor 600 and a computer program stored in the memory, and the processor executes the computer program to implement any one of the three-dimensional object detection methods provided in the above embodiment 1.

[0127] Embodiment 6

[0128] A sixth embodiment of the present invention provides a mobile tool, including the computer device of the fifth embodiment described above.

[0129] The mobile tools referred to in this application may be those with tool functions, such as excavators, bulldozers, forklifts, rollers, sewage treatment vehicles, sanitation vehicles, vacuum trucks, floor scrubbers, sprinkler trucks, sweeping robot lawn mowers, etc.

[0130] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians 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.

[0131] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0132] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A three-dimensional target detection method, characterized in that: The method comprises: Acquire two-dimensional camera images of multiple cameras with the same detection angle of view but different focal lengths and different detection angles; Performing recognition preprocessing on the two-dimensional camera image to generate a plurality of target detection images and an image mapping relationship table corresponding to the two-dimensional camera image; Performing target detection on the multiple target detection images using a three-dimensional target detection model to generate a target detection result for each target detection image; Restoring the target detection result to the two-dimensional camera image according to the image mapping relationship table to generate a first three-dimensional target detection result image; The first three-dimensional target detection result image is fused according to the viewing angle and focal length of the two-dimensional camera to generate a second three-dimensional target detection result image.

2. The three-dimensional target detection method according to claim 1, characterized in that: The loss terms of the loss function of the three-dimensional target detection model include center point prediction loss, nearest ground point prediction loss, target box size loss, center point offset loss, and / or heading attitude loss and / or three-dimensional size loss and / or depth loss.

3. The three-dimensional target detection method according to claim 1, characterized in that: The two-dimensional camera image is subjected to recognition preprocessing, specifically: If the target in the two-dimensional camera image is an incomplete target, stitching multiple two-dimensional camera images of the same target according to a target feature detection algorithm; If there is a sky in the two-dimensional camera image or in the stitched two-dimensional camera image, the sky is cropped.

4. The three-dimensional target detection method according to claim 3, characterized in that: If there is a sky in the two-dimensional camera image or in the stitched two-dimensional camera image, the sky is cropped, specifically: Using a semantic segmentation algorithm, pixels with sky attributes in the two-dimensional camera image or in the spliced ​​two-dimensional camera image are marked; Perform a connected domain operation on the non-sky pixel area to generate a maximum envelope rectangle; The maximum envelope rectangular frame is cropped and retained, and the target detection image is generated according to the retained maximum envelope rectangular frame.

5. The three-dimensional target detection method according to claim 1, characterized in that: After restoring the target detection result to the two-dimensional camera image according to the image mapping relationship table to generate a first three-dimensional target detection result image, the method further includes: Targets detected repeatedly in the first three-dimensional target detection result image are uniformly filtered out according to the target frame overlap degree and / or category.

6. The three-dimensional target detection method according to claim 1, characterized in that: The step of fusing the first three-dimensional target detection result image according to the viewing angle and focal length of the two-dimensional camera to generate the second three-dimensional target detection result image is specifically as follows: A plurality of the first three-dimensional target detection result images with the same viewing angle but different focal lengths are fused into a second three-dimensional target detection result image.

7. The three-dimensional target detection method according to claim 1, characterized in that: Before acquiring two-dimensional camera images of multiple cameras with the same detection angle of view but different focal lengths and different detection angles, the method further includes: Label the target image dataset to be detected according to the perception task; A plurality of three-dimensional object detection models are trained by using the labeled target image data set to be detected, and the optimal model is selected as the final three-dimensional object detection model.

8. A three-dimensional target detection device, characterized in that: The three-dimensional target detection device comprises: A data acquisition module, used to acquire two-dimensional camera images of multiple cameras with the same detection angle of view but different focal lengths and different detection angles; A first data processing module, configured to perform recognition preprocessing on the two-dimensional camera image to generate a plurality of target detection images and an image mapping relationship table corresponding to the two-dimensional camera image; A target detection module, configured to perform target detection on the plurality of target detection images by using a three-dimensional target detection model, and generate a target detection result for each target detection image; A second data processing module, configured to restore the target detection result to the two-dimensional camera image according to the image mapping relationship table to generate a first three-dimensional target detection result image; A third data processing module is used to fuse the first three-dimensional target detection result image according to the viewing angle and focal length of the two-dimensional camera to generate a second three-dimensional target detection result image.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to claims 1 to 7 are implemented.

10. A computer device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method of claims 1-7.

11. A mobile tool, characterized in that: Comprising the computer device as claimed in claim 10.