Method and system for detecting obstacle in multi-angle aerial view on basis of virtual camera
Through the multi-view bird's-eye view obstacle detection method based on virtual cameras, the problem of inconsistent internal and external parameters of different vehicle cameras is solved, and accurate obstacle detection under multi-view conditions is achieved. It is suitable for different vehicles and improves the accuracy of detection results. and the stability of model training.
Patent Information
- Application Number
- PCT/CN2023/142760
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-21
- Filing Date
- 2023-12-28
- Publication Date
- 2024-08-29
AI Technical Summary
It is difficult for the existing technology to effectively solve the problem of inconsistent internal and external parameters of different vehicle cameras under multi-viewing conditions, resulting in inaccurate displacement detection of obstacles.
A multi-perspective bird's-eye view obstacle detection method based on a virtual camera is adopted. By obtaining the roll angle, pitch angle and yaw angle of the camera, the internal and external parameters of the virtual camera are constructed, and the perspective transformation matrix is used to transform the surrounding image, combined with the multi-perspective bird's-eye view. The graph detection model detects and outputs obstacles under a multi-view bird's-eye view.
It realizes obstacle detection that adapts to different vehicles, avoids splitting, and improves the accuracy of detection results and the stability of model training.
Smart Images

Figure CN2023142760_29082024_PF_FP_ABST
Abstract
Description
Multi-view bird's-eye view obstacle detection method and detection system based on virtual camera Technical Field
[0001] The present invention relates to the field of detection technology, and in particular to a multi-perspective bird's-eye view obstacle detection method and detection system based on a virtual camera. Background Art
[0002] Currently, the earliest detection methods for autonomous driving perception use neural networks to detect the 2D bounding box of the target and estimate its displacement and size based on the 2D bounding box for downstream control. However, this method can result in slight deviations in the image, but significantly more deviations in the BEV perspective, leading to inaccurate final displacements. Recent research has begun using monocular 3D detection, which uses neural networks to directly detect the 3D bounding box of the target. This can directly obtain the displacement and size under BEV. The advantage is that it does not require 2D bounding box estimation, and the displacement and size output by the neural network are more accurate. However, for multi-view detection, the monocular results must be stitched together to obtain the fused result, which is prone to fragmentation during the fusion process. Therefore, a growing number of studies have focused on fusing multi-view features within the network during multi-view BEV detection to avoid the fragmentation problem during post-fusion. However, these methods all use the intrinsic and extrinsic parameters of the same vehicle camera, which are inconsistent across different vehicles. Therefore, how to address the application of these methods in the face of inconsistent intrinsic and extrinsic parameters has become a pressing issue.
[0003] Summary of the Invention
[0004] The object of the present invention is to solve one of the above-mentioned technical problems at least to a certain extent.
[0005] To this end, the first object of the present invention is to propose a multi-perspective bird's-eye view obstacle detection method based on a virtual camera to solve the problem of inconsistent internal and external parameters of cameras of different vehicles.
[0006] The second object of the present invention is to provide a multi-view bird's-eye view obstacle detection system based on a virtual camera.
[0007] A third object of the present invention is to provide an electronic device.
[0008] A fourth object of the present invention is to provide a non-transitory computer-readable storage medium.
[0009] To achieve the above objectives, the first embodiment of the present invention proposes a multi-perspective bird's-eye view obstacle detection method based on a virtual camera, comprising:
[0010] Input surround image;
[0011] Performing detection processing on the surround view image; wherein the detection processing includes transforming the surround view image based on a virtual camera to form a transformed surround view image; and detecting the transformed surround view image based on a multi-view bird's-eye view detection model;
[0012] Obstacles in a multi-view bird's-eye view are output according to the detection results.
[0013] According to one embodiment of the present invention, the transforming of the surround view picture based on the virtual camera includes:
[0014] Obtaining a camera roll angle, a camera pitch angle, and a camera yaw angle, and constructing a virtual camera roll angle, a virtual camera pitch angle, and a virtual camera yaw angle of the virtual camera based on the camera roll angle, the camera pitch angle, and the camera yaw angle;
[0015] Obtain the x, y, z three-axis translation of the camera, and construct the x, y, z three-axis translation of the virtual camera based on the x, y, z three-axis translation of the camera;
[0016] Dedistorting each of the surround-view pictures based on the virtual camera to obtain a dedistorted image;
[0017] A perspective transformed image is obtained by applying a perspective transformation matrix to each of the dedistorted images; and distortion is added to the perspective transformed image to form the transformed surround view image.
[0018] According to an embodiment of the present invention, applying a perspective transformation matrix to each of the dedistorted images to obtain a transformed image is achieved based on the transformation of four points on the ground between two perspectives.
[0019] According to one embodiment of the present invention, applying a perspective transformation matrix to each of the dedistorted images to obtain a transformed image based on the transformation of four points on the ground between two perspectives includes:
[0020] Set four random points on the ground;
[0021] Projecting the internal and external parameters of the current perspective and the virtual perspective onto the images of the respective perspectives respectively, to obtain four matching points that match the four points on the ground;
[0022] The perspective transformation matrix is obtained based on the conversion relationship between the coordinate points of the virtual perspective and the original perspective and the least square method.
[0023] According to one embodiment of the present invention, the conversion relationship between the coordinate points of the virtual perspective and the original perspective is:
[0024] in Represents the coordinate point of the original view, The coordinate point representing the virtual perspective;
[0025] H i,j Represents the perspective transformation matrix.
[0026] According to one embodiment of the present invention, detecting the transformed surround view image based on the multi-view bird's-eye view detection model includes:
[0027] Inputting the transformed surround view image into an encoder, performing encoding processing on the transformed surround view image to obtain a surround view image encoding processing result, and performing position encoding processing on the internal and external parameters of the virtual camera to obtain an internal and external parameter position encoding processing result;
[0028] Inputting the surround view picture encoding processing result and the internal and external reference position encoding processing result into a decoder, and simultaneously using a query generator to query the code in the encoding processing result, and inputting the code into the decoder for inverse encoding;
[0029] The inverse encoding result is output in the decoder, and a detection result of the transformed surround view picture is obtained based on the inverse encoding result.
[0030] According to one embodiment of the present invention, the multi-view bird's-eye view detection model is replaced by DETR3D, BEVDet, PETR or BEVFormer.
[0031] To achieve the above objectives, a second embodiment of the present invention provides a multi-perspective bird's-eye view obstacle detection system based on a virtual camera, comprising:
[0032] Input module, used to input surround images;
[0033] A detection processing module, configured to perform detection processing on the surround view image; wherein the detection processing comprises transforming the surround view image based on a virtual camera to form a transformed surround view image; and detecting the transformed surround view image based on a multi-view bird's-eye view detection model;
[0034] The output module is used to output obstacles in a multi-view bird's-eye view according to the detection results.
[0035] To achieve the above-mentioned object, an electronic device provided in a third embodiment of the present invention includes:
[0036] a memory for storing computer-executable instructions; and
[0037] A processor is configured to run the computer-executable instructions to execute any embodiment of the multi-perspective bird's-eye view obstacle detection method based on a virtual camera in the first aspect.
[0038] To achieve the above-mentioned purpose, the fourth aspect of the present invention proposes a non-temporary computer-readable storage medium, on which computer-executable instructions are stored. When the instructions are executed by a computer, the computer executes any embodiment of the multi-perspective bird's-eye view obstacle detection method based on a virtual camera in the first aspect.
[0039] Additional aspects and advantages of the present invention will be set forth in part in the description which follows and, in part, will be obvious from the description which follows, or may be learned through practice of the present invention.
[0040] Compared with the prior art, the beneficial effects of the embodiments of the present application are:
[0041] This invention provides a multi-perspective bird's-eye view obstacle detection method and system based on a virtual camera. This method solves the problem of inconsistent internal and external parameters between different vehicle cameras. Using a single set of parameters, the system can adapt to different vehicles, making it very convenient for deployment on different vehicles. Furthermore, the model can be trained using a single set of parameters, which improves training and convergence for data with large internal and external parameter variations.
[0042] To better understand the technical means of the present invention and to facilitate implementation in accordance with the description, and to make the above-mentioned and other purposes, features, and advantages of the present invention more readily apparent, preferred embodiments are described below in detail with reference to the accompanying drawings. Other features and advantages of the present invention will be explained in the subsequent description and, in part, will become apparent from the description or be demonstrated through the practice of the present invention. The purposes and other advantages of the present invention may be achieved and attained through the structures particularly noted in the description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0044] FIG1 is a flowchart of a multi-perspective bird's-eye view obstacle detection method based on a virtual camera according to an embodiment of the present invention;
[0045] FIG2 is a flowchart of a virtual camera transformation according to a specific embodiment of the present invention;
[0046] FIG3 is a schematic diagram of a perspective transformation according to a specific embodiment of the present invention;
[0047] FIG4 is a flowchart of specific steps of perspective transformation according to a specific embodiment of the present invention;
[0048] FIG5 is a flow chart of a multi-view bird's-eye view detection model provided according to a specific embodiment of the present invention;
[0049] FIG6 is a schematic structural diagram of a multi-perspective bird's-eye view obstacle detection system based on a virtual camera according to an embodiment of the present invention;
[0050] FIG7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0051] The following describes embodiments of the present invention in detail, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and are not to be construed as limiting the present invention.
[0052] At present, how to solve the inconsistency of internal and external parameters of different vehicle cameras has become an urgent problem that needs to be solved. To this end, the present invention proposes a multi-view bird's-eye view obstacle detection method and detection system based on a virtual camera.
[0053] Specifically, the multi-perspective bird's-eye view obstacle detection method and detection system based on a virtual camera according to an embodiment of the present invention will be described below with reference to the accompanying drawings.
[0054] FIG1 is a flowchart of a multi-perspective bird's-eye view obstacle detection method based on a virtual camera according to an embodiment of the present invention. It should be noted that the multi-perspective bird's-eye view obstacle detection method based on a virtual camera according to an embodiment of the present invention can be applied to a multi-perspective bird's-eye view obstacle detection system based on a virtual camera according to an embodiment of the present invention. The system can be configured on an electronic device or on a server. The electronic device can be a PC or a mobile terminal (such as a smartphone, tablet computer, etc.). This is not limited in the embodiment of the present invention.
[0055] 1 , this embodiment provides a multi-perspective bird's-eye view obstacle detection method based on a virtual camera, the method comprising:
[0056] S110, inputting a surround image;
[0057] S120, performing detection processing on the surround view image; wherein the detection processing includes transforming the surround view image based on the virtual camera to form a transformed surround view image; and detecting the transformed surround view image based on the multi-view bird's-eye view detection model;
[0058] S130: Output obstacles in a multi-view bird's-eye view according to the detection result.
[0059] The multi-view bird's-eye view obstacle detection method based on a virtual camera, provided by the embodiments of the present invention, solves the problem of inconsistent intrinsic and extrinsic parameters between different vehicle cameras. Using a single set of parameters, it can adapt to different vehicles, making it very convenient for deployment on different vehicles. Furthermore, the model can be trained using a single set of parameters, which improves training and convergence for data with large variations in intrinsic and extrinsic parameters.
[0060] In one embodiment of the present invention, FIG2 is a flowchart of a virtual camera transformation according to a specific embodiment of the present invention. Referring to FIG2 , the transformation of the surround view image based on the virtual camera includes:
[0061] S210: Obtain a camera roll angle (roll), a camera pitch angle (pitch), and a camera yaw angle (yaw), and construct a virtual camera roll angle (roll), a virtual camera pitch angle (pitch), and a virtual camera yaw angle (yaw) of the virtual camera based on the camera roll angle (roll), the camera pitch angle (pitch), and the camera yaw angle (yaw);
[0062] S220, obtaining the x, y, z three-axis translation of the camera, and constructing the x, y, z three-axis translation of the virtual camera based on the x, y, z three-axis translation of the camera;
[0063] S230, dedistorting each surround view image based on the virtual camera to obtain a dedistorted image;
[0064] S240 , applying a perspective transformation matrix to each dedistorted image to obtain a perspective transformed image; and adding distortion to the perspective transformed image to form a transformed surround view image.
[0065] In one embodiment of the present invention, FIG3 is a schematic diagram of a perspective transformation according to a specific embodiment of the present invention, and FIG4 is a flow chart of specific steps of a perspective transformation according to a specific embodiment of the present invention. Referring to FIG3-FIG4, after applying a perspective transformation matrix to each dedistorted image, the transformed image is obtained based on the transformation of four points on the ground between two perspectives. This includes:
[0066] S410, set four points arbitrarily on the ground;
[0067] S420, projecting the internal and external parameters of the current view and the virtual view onto the images of the respective viewpoints to obtain four matching points that match the four points on the ground;
[0068] S430 , obtaining a perspective transformation matrix based on a conversion relationship between coordinate points of the virtual perspective and the original perspective and a least square method.
[0069] It should be noted that the conversion relationship between the coordinate points of the virtual perspective and the original perspective is:
[0070] in, Represents the coordinate point of the original view, The coordinate point representing the virtual perspective;
[0071] H i,j Represents the perspective transformation matrix.
[0072] In one embodiment of the present invention, FIG5 is a flowchart of a multi-view bird's-eye view detection model provided according to a specific embodiment of the present invention. Referring to FIG5 , detecting the transformed surround view image based on the multi-view bird's-eye view detection model includes:
[0073] The transformed surround view image is input into the encoder (Transformer Encoder), and the transformed surround view image is encoded to obtain the surround view image encoding processing result. At the same time, the position encoding processing is performed on the internal and external parameters of the virtual camera to obtain the internal and external parameter position encoding processing result;
[0074] The surround view image encoding result and the internal and external reference position encoding result are input into the decoder (Transformer Decoder). At the same time, the query generator (Query Generator) is used to query the code in the encoding result, and the code is input into the decoder (Transformer Decoder) for de-encoding.
[0075] The inverse encoding result is output in the decoder (Transformer Decoder), and the detection result of the transformed surround view image is obtained based on the inverse encoding result.
[0076] In a preferred embodiment of the present invention, the multi-view bird's-eye view detection model can be replaced by DETR3D, BEVDet, PETR or BEVFormer.
[0077] Corresponding to the multi-perspective bird's-eye view obstacle detection method based on a virtual camera provided in the above-mentioned embodiments, an embodiment of the present invention further provides a multi-perspective bird's-eye view obstacle detection system based on a virtual camera. Since the multi-perspective bird's-eye view obstacle detection system based on a virtual camera provided in the embodiment of the present invention corresponds to the multi-perspective bird's-eye view obstacle detection method based on a virtual camera provided in the above-mentioned embodiments, the implementation method of the multi-perspective bird's-eye view obstacle detection method based on a virtual camera is also applicable to the multi-perspective bird's-eye view obstacle detection system based on a virtual camera provided in this embodiment, and will not be described in detail in this embodiment.
[0078] FIG6 is a schematic structural diagram of a multi-perspective bird's-eye view obstacle detection system based on a virtual camera according to an embodiment of the present invention;
[0079] 6 , the multi-view bird's-eye view obstacle detection system 600 based on a virtual camera includes: an input module 610 , a detection processing module 620 , and an output module 630 , wherein:
[0080] An input module 610 is used to input a surround view image;
[0081] A detection processing module 620 is configured to perform detection processing on the surround view image; wherein the detection processing includes transforming the surround view image based on a virtual camera to form a transformed surround view image; and detecting the transformed surround view image based on a multi-view bird's-eye view detection model;
[0082] The output module 630 is used to output obstacles in the multi-view bird's-eye view according to the detection results.
[0083] The multi-perspective bird's-eye view obstacle detection system based on a virtual camera, provided by the embodiments of the present invention, solves the problem of inconsistent intrinsic and extrinsic parameters between different vehicle cameras. Using a single set of parameters, it can adapt to different vehicles, making it very convenient for deployment on different vehicles. Furthermore, the model can be trained using a single set of parameters, which improves training and convergence for data with large variations in intrinsic and extrinsic parameters.
[0084] In one embodiment of the present invention, transforming the surround view image based on the virtual camera includes:
[0085] Obtain the camera roll angle (roll), camera pitch angle (pitch) and camera yaw angle (yaw), and construct the virtual camera roll angle (roll), virtual camera pitch angle (pitch) and virtual camera yaw angle (yaw) of the virtual camera based on the camera roll angle (roll), camera pitch angle (pitch) and camera yaw angle (yaw);
[0086] Get the camera's x, y, z three-axis translation, and construct the virtual camera's x, y, z three-axis translation based on the camera's x, y, z three-axis translation;
[0087] Dedistorting each surround view image based on the virtual camera to obtain a dedistorted image;
[0088] A perspective transformed image is obtained by applying a perspective transformation matrix to each dedistorted image; and distortion is added to the perspective transformed image to form a transformed surround image.
[0089] In one embodiment of the present invention, applying a perspective transformation matrix to each dedistorted image to obtain a transformed image is achieved based on the transformation of four points on the ground between two perspectives; the method includes:
[0090] Set four random points on the ground;
[0091] Based on the internal and external parameters of the current view and the virtual view, they are projected onto the images of their respective viewpoints to obtain four matching points that match the four points on the ground.
[0092] The perspective transformation matrix is obtained based on the conversion relationship between the coordinate points of the virtual perspective and the original perspective and the least squares method.
[0093] It should be noted that the conversion relationship between the coordinate points of the virtual perspective and the original perspective is:
[0094] in, Represents the coordinate point of the original view, The coordinate point representing the virtual perspective;
[0095] H i,j Represents the perspective transformation matrix.
[0096] In one embodiment of the present invention, detecting the transformed surround view image based on the multi-view bird's-eye view detection model includes:
[0097] The transformed surround view image is input into the encoder, and the transformed surround view image is encoded to obtain the surround view image encoding processing result, and the position encoding processing is performed on the internal and external parameters of the virtual camera to obtain the internal and external parameter position encoding processing result;
[0098] The result of the surround view image encoding processing and the result of the internal and external reference position encoding processing are input into the decoder, and the code in the encoding processing result is queried by the query generator, and the code is input into the decoder for de-encoding;
[0099] The inverse encoding result is output in the decoder, and the detection result of the transformed surround view image is obtained based on the inverse encoding result.
[0100] In a preferred embodiment of the present invention, the multi-view bird's-eye view detection model can be replaced by DETR3D, BEVDet, PETR or BEVFormer.
[0101] In another embodiment of the present invention, an electronic device is provided, including:
[0102] a memory for storing computer-executable instructions; and
[0103] A processor configured to execute computer-executable instructions to perform the method described in any of the above embodiments. The electronic device may include one or more processors and a memory. The memory stores computer-executable instructions that, when executed by the processor, cause the electronic device to perform any of the above embodiments of the multi-perspective bird's-eye view obstacle detection method based on a virtual camera. The electronic device may also include a communication interface.
[0104] The processor may be any suitable processing device, such as a microprocessor, a microcontroller, an integrated circuit, or other suitable processing device. The memory may include any suitable computing system or medium, including but not limited to non-transitory computer-readable media, random access memory (RAM), read-only memory (ROM), a hard disk, a flash memory, or other memory devices. The memory may store computer-executable instructions that may be executed by the processor to cause the electronic device to perform any embodiment of the multi-perspective bird's-eye view obstacle detection method based on a virtual camera. The memory may also store data.
[0105] In embodiments of the present invention, a processor may execute various modules included in the instructions to implement embodiments of the multi-perspective bird's-eye view obstacle detection method based on a virtual camera in the multi-perspective bird's-eye view obstacle detection system based on a virtual camera. For example, an electronic device may implement various modules in the multi-perspective bird's-eye view obstacle detection system based on a virtual camera to perform methods S110, S120, and S130 shown in FIG1 , as well as the methods shown in FIG2 , FIG3 , FIG4 , and FIG5 .
[0106] In yet another embodiment of the present invention, a non-transitory computer-readable storage medium is provided. The computer-readable storage medium stores computer-executable instructions that, when executed by a computer, cause the computer to execute any embodiment of the virtual camera-based multi-perspective bird's-eye view obstacle detection method in the virtual camera-based multi-perspective bird's-eye view obstacle detection system.
[0107] In another embodiment of the present invention, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute any of the multi-perspective bird's-eye view obstacle detection methods based on a virtual camera in the above embodiments.
[0108] Referring now to FIG7 , a schematic diagram illustrating the structure of an electronic device 700 suitable for implementing an embodiment of the present invention is provided for use with an apparatus according to an embodiment of the present invention. The terminal devices in the embodiment of the present invention may include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers.
[0109] The electronic device shown in FIG. 7 is merely an example and should not limit the functions and scope of use of the embodiments of the present invention.
[0110] As shown in Figure 7, electronic device 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. Various programs and data required for the operation of electronic device 700 are also stored in RAM 703. Processing device 701, ROM 702, and RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to bus 704.
[0111] Typically, the following devices may be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 708 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Although FIG. 7 shows the electronic device 700 with various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may be implemented or present instead.
[0112] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 709, or installed from the storage device 708, or installed from the ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of the embodiment of the present invention are performed.
[0113] It should be noted that the computer-readable medium described above in the present invention may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. This propagated data signal may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0114] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.
[0115] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0116] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device is enabled to: input a surround-view picture, and perform detection processing on the surround-view picture, wherein the detection processing includes transforming the surround-view picture based on a virtual camera to form a transformed surround-view picture, and detecting the transformed surround-view picture based on a multi-perspective bird's-eye view detection model, and outputting obstacles under the multi-perspective bird's-eye view according to the detection results.
[0117] Alternatively, the computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device is enabled to: input a surround-view picture, and perform detection processing on the surround-view picture, wherein the detection processing includes transforming the surround-view picture based on a virtual camera to form a transformed surround-view picture, and detecting the transformed surround-view picture based on a multi-perspective bird's-eye view detection model, and outputting obstacles under the multi-perspective bird's-eye view according to the detection results.
[0118] Computer program code for performing the operations of the present invention may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0119] The flow charts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0120] The units involved in the embodiments of the present invention may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."
[0121] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0122] In the context of the present invention, machine-readable medium can be a tangible medium that can contain or store a program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0123] The above description is merely a preferred embodiment of the present invention and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present invention is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in the present invention.
[0124] In addition, although adopting specific order to describe each operation, this should not be interpreted as requiring these operations to be executed in the specific order shown or in sequential order.Under certain environment, multitasking and parallel processing may be advantageous.Similarly, although comprising some specific implementation details in the above discussion, these should not be interpreted as limiting the scope of the present invention.Some features described in the context of independent embodiment can also be implemented in single embodiment in combination.On the contrary, the various features described in the context of independent embodiment also can be implemented in multiple embodiments individually or in the mode of any suitable subcombination.
[0125] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
[0126] Finally, it should be noted that the above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be encompassed by the scope of the pending claims.
Claims
1. A multi-view bird's-eye view obstacle detection method based on a virtual camera, characterized in that: include: Input the surround image; Performing detection processing on the surround view picture; The detection process includes transforming the surround view picture based on a virtual camera to form a transformed surround view picture; and detecting the transformed surround view image based on a multi-view bird's-eye view detection model; Obstacles in a multi-view bird's-eye view are output according to the detection results.
2. The detection method according to claim 1, wherein: The transforming of the surround view picture based on the virtual camera includes: Acquire a camera roll angle, a camera pitch angle, and a camera yaw angle, and construct a virtual camera roll angle, a virtual camera pitch angle, and a virtual camera yaw angle of the virtual camera based on the camera roll angle, the camera pitch angle, and the camera yaw angle; Obtain the x, y, z three-axis translation of the camera, and construct the x, y, z three-axis translation of the virtual camera based on the x, y, z three-axis translation of the camera; Dedistorting each of the surround images based on the virtual camera to obtain a dedistorted image; A perspective transformed image is obtained by applying a perspective transformation matrix to each of the dedistorted images; and distortion is added to the perspective transformed image to form the transformed surround view image.
3. The detection method according to claim 2, wherein: The transformed image obtained by applying the perspective transformation matrix to each of the dedistorted images is achieved based on the transformation of four points on the ground between two viewing angles.
4. The detection method according to claim 3, wherein: The step of applying a perspective transformation matrix to each of the dedistorted images to obtain a transformed image based on the transformation of four points on the ground between two viewing angles comprises: Set four points randomly on the ground; Projecting the internal and external parameters of the current perspective and the virtual perspective onto the images of the respective perspectives respectively, to obtain four matching points that match the four points on the ground; The perspective transformation matrix is obtained based on the conversion relationship between the coordinate points of the virtual perspective and the original perspective and the least square method.
5. The detection method according to claim 4, wherein: The conversion relationship between the coordinate points of the virtual perspective and the original perspective is: in Represents the coordinate point of the original view. Represents the coordinate point of the virtual perspective; H i,j Represents the perspective transformation matrix.
6. The detection method according to claim 1, wherein: The detecting the transformed surround view picture based on the multi-view bird's-eye view detection model includes: Inputting the transformed surround view picture into an encoder, encoding the transformed surround view picture to obtain a surround view picture encoding processing result, and performing position encoding processing on the internal and external parameters of the virtual camera to obtain an internal and external parameter position encoding processing result; Inputting the result of the surround image encoding processing and the result of the internal and external reference position encoding processing into a decoder, and using a query generator to query the code in the encoding processing result, and inputting the code into the decoder for inverse encoding; The inverse encoding result is output in the decoder, and the detection result of the transformed surround view picture is obtained based on the inverse encoding result.
7. The detection method according to claim 1, wherein: The multi-view bird's-eye view detection model is replaced by DETR3D, BEVDet, PETR or BEVFormer.
8. A multi-view bird's-eye view obstacle detection system based on a virtual camera, characterized in that: include: An input module, used to input surround images; A detection and processing module, used for detecting and processing the surround view image; The detection process includes transforming the surround view picture based on a virtual camera to form a transformed surround view picture; and detecting the transformed surround view image based on a multi-view bird's-eye view detection model; The output module is used to output obstacles in a multi-view bird's-eye view according to the detection results.
9. An electronic device, characterized in that: include: a memory for storing computer executable instructions; as well as A processor, which is used to run the computer executable instructions to execute the multi-view bird's-eye view obstacle detection method based on a virtual camera as described in any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium, characterized in that: The storage medium stores computer executable instructions, and when the instructions are executed by a computer, the computer executes the multi-perspective bird's-eye view obstacle detection method based on a virtual camera according to any one of claims 1 to 7.
Citation Information
Patent Citations
Backup image stitching method and device based on binocular camera
CN108174089A
Multi-group-articulated-vehicle perimeter video panoramic-display system and method
CN109429039A
Parking space size recognition system and method based on 360-degree look-around camera
CN110781883A
Lane line detection method and device
CN111767853A
Multi-view input aerial view semantic segmentation method and device
CN115131787A
Cited By
Bird-eye view visual angle conversion method and device, electronic equipment and storage medium
CN118865007A
