Feature generation method and device in perceptual model, equipment and medium
By generating bird's-eye view features in the perception model and using de-distortion correspondence to avoid image de-distortion, the problem of information loss and computing resource consumption caused by image distortion in the autonomous driving system is solved, and the performance and training efficiency of the model are improved.
Patent Information
- Application Number
- CN202410610388.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-08-30
AI Technical Summary
When existing bird's-eye view perception algorithm models based on neural networks deal with image distortion, they result in the loss of picture information, high consumption of computing resources, and a decrease in graphics processor resource utilization, which affects the safety of the autonomous driving system and the efficiency of model training.
By extracting features from the images collected by each camera, we obtain the predetermined de-distortion correspondence, and combine the feature data of multiple cameras to generate bird's-eye view features, which avoids the image de-distortion process, reduces the consumption of CPU resources, and improves efficiency. Perceive the performance and robustness of the model and improve the utilization of GPU resources.
It effectively avoids the loss of image information, reduces the consumption of CPU resources by perceptual model deployment, improves the performance and robustness of the model, shortens the training time, and speeds up the iterative development process.
Smart Images

Figure CN118570595A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to a feature generation method in a perception model, a feature generation device in a perception model, an electronic device and a readable storage medium. Background Art
[0002] The rapid development of artificial intelligence technology has brought about a leap in autonomous driving technology. The autonomous driving system consists of three parts: perception, planning, and control. The perception part plays a key role as the "eyes" of the autonomous driving car. The quality of an autonomous driving system often depends to a large extent on the quality of its perception system. The autonomous driving perception system refers to the perception of the surrounding environment by autonomous driving vehicles through various sensors such as cameras and radars. It not only needs to accurately identify vehicles, pedestrians, obstacles, traffic signs, etc. in the surrounding environment, but also needs to accurately identify, locate and predict their speed.
[0003] New perception algorithm models based on deep learning can automatically represent and extract environmental features in depth, have stronger expressiveness and adaptability, and can extract high-level semantic information from raw sensor data, solving the problem of limited accuracy and robustness of traditional models in complex scenes and dynamic environments, making high-level intelligent driving possible. Among them, the perception algorithm model based on the bird's eye view (BEV) has been widely adopted due to its good scalability and fusion-friendly characteristics.
[0004] Even so, most of the bird's-eye view perception algorithm models based on neural networks were not designed with input image distortion in mind. This means that if you need to use these perception algorithm models, you need to ensure that the camera output images from each perspective are dedistorted.
[0005] The existing technology has the following disadvantages: (1) In most cases, the image dedistorted by the fisheye camera model / pinhole camera model will have a smaller field of view, which means that the perception algorithm model based on the bird's-eye view can only obtain part of the image information. The loss of image information usually means a decrease in the performance of the perception algorithm model. (2) Dedistorting the input image will consume a certain amount of computing resources, resulting in a decrease in the output frequency of the perception algorithm model during reasoning, thereby causing safety hazards in autonomous driving. (3) Image dedistortion will bring a large burden to the CPU (Central Processing Unit) resources during perception model training, thereby reducing the utilization of GPU (Graphics Processing Unit) resources due to the waiting time for CPU processing, which means longer model training time and worse model iteration efficiency. Summary of the invention
[0006] The technical problem to be solved by the embodiments of the present invention is to provide a feature generation method, device, electronic device and readable storage medium in a perception model, so as to solve the problems of image information loss, large consumption of computing resources, and reduced utilization of graphics processor resources caused by image dedistortion.
[0007] In order to solve the above problems, the present invention provides a method for generating features in a perception model, the method comprising:
[0008] For each camera, feature extraction is performed on the images collected by the camera to obtain feature data;
[0009] Acquire a predetermined de-distortion corresponding relationship; wherein the de-distortion corresponding relationship is a corresponding relationship between coordinates in a world coordinate system and coordinates after de-distortion in a pixel coordinate system;
[0010] A bird's-eye view feature is generated according to the feature data corresponding to the multiple cameras and the de-distortion correspondence.
[0011] Optionally, the dedistortion correspondence is a multi-camera dedistortion correspondence obtained by combining single-camera dedistortion correspondences of the multiple cameras, and generating the bird's-eye view features according to the feature data corresponding to the multiple cameras and the dedistortion correspondence includes:
[0012] Determine the fusion features before de-distortion based on the feature data corresponding to the multiple cameras;
[0013] Extracting feature values from the fused features before dedistortion according to the multi-camera dedistortion correspondence to generate fused features after dedistortion;
[0014] The bird's-eye view features are generated according to the dedistorted fusion features.
[0015] Optionally, the multi-camera dedistortion correspondence is a multi-camera index vector representing a dedistortion lookup table corresponding to the multiple cameras, or a dedistortion lookup table corresponding to the multiple cameras, or a dedistortion function corresponding to the multiple cameras, wherein the dedistortion lookup table of each camera is a lookup table determined according to the dedistortion function.
[0016] Optionally, the dedistortion correspondence includes a single-camera dedistortion correspondence of the multiple cameras; and generating a bird's-eye view feature according to feature data corresponding to the multiple cameras and the dedistortion correspondence includes:
[0017] For each camera, extracting a characteristic value from the characteristic data according to the single camera dedistortion correspondence relationship, and determining intermediate characteristic data after dedistortion;
[0018] The bird's-eye view features are generated according to the dedistorted intermediate feature data of the multiple cameras.
[0019] Optionally, the single-camera dedistortion correspondence is a single-camera index vector representing a dedistortion lookup table corresponding to a single camera, or a dedistortion lookup table corresponding to a single camera, or a dedistortion function corresponding to a single camera, wherein the dedistortion lookup table corresponding to a single camera is a lookup table determined according to the dedistortion function.
[0020] Optionally, the dedistortion function is determined based on the correspondence between coordinates in the world coordinate system and coordinates in the camera coordinate system, the correspondence between coordinates in the camera coordinate system and coordinates in the pixel coordinate system, and the correspondence between coordinates in the pixel coordinate system before dedistortion and coordinates in the pixel coordinate system after dedistortion.
[0021] The present invention also provides a feature generation device in a perception model, the device comprising:
[0022] The feature extraction module is used to extract features from the pictures collected by each camera to obtain feature data;
[0023] A correspondence relationship acquisition module, used to acquire a predetermined de-distortion correspondence relationship; wherein the de-distortion correspondence relationship is a correspondence relationship between coordinates in a world coordinate system and coordinates after de-distortion in a pixel coordinate system;
[0024] The bird's-eye view feature generation module is used to generate bird's-eye view features according to feature data corresponding to multiple cameras and the de-distortion correspondence relationship.
[0025] Optionally, the dedistortion correspondence is a multi-camera dedistortion correspondence obtained by combining single-camera dedistortion correspondences of the multiple cameras, and the bird's-eye view feature generation module includes:
[0026] A fusion feature submodule is used to determine the fusion features before dedistortion based on the feature data corresponding to multiple cameras;
[0027] A dedistortion submodule, configured to extract feature values from the fused features before dedistortion according to the multi-camera dedistortion correspondence relationship, and generate fused features after dedistortion;
[0028] The first bird's-eye view feature generation submodule is used to generate the bird's-eye view feature according to the dedistorted fusion feature.
[0029] Optionally, the multi-camera dedistortion correspondence is a multi-camera index vector representing a dedistortion lookup table corresponding to the multiple cameras, or a dedistortion lookup table corresponding to the multiple cameras, or a dedistortion function corresponding to the multiple cameras, wherein the dedistortion lookup table of each camera is a lookup table determined according to the dedistortion function.
[0030] Optionally, the dedistortion correspondence includes a single-camera dedistortion correspondence of the multiple cameras; and the bird's-eye view feature generation module includes:
[0031] An intermediate feature determination submodule, for each camera, extracting feature values from the feature data according to the single camera dedistortion correspondence relationship, and determining dedistorted intermediate feature data;
[0032] The second bird's-eye view feature generation submodule is used to generate the bird's-eye view feature according to the dedistorted intermediate feature data of the multiple cameras.
[0033] Optionally, the single-camera dedistortion correspondence is a single-camera index vector representing a dedistortion lookup table corresponding to a single camera, or a dedistortion lookup table corresponding to a single camera, or a dedistortion function corresponding to a single camera, wherein the dedistortion lookup table corresponding to a single camera is a lookup table determined according to the dedistortion function.
[0034] Optionally, the dedistortion function is determined based on the correspondence between coordinates in the world coordinate system and coordinates in the camera coordinate system, the correspondence between coordinates in the camera coordinate system and coordinates in the pixel coordinate system, and the correspondence between coordinates in the pixel coordinate system before dedistortion and coordinates in the pixel coordinate system after dedistortion.
[0035] The embodiment of the present invention further discloses an electronic device, characterized in that it includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0036] Memory, used to store computer programs;
[0037] The processor is used to implement the above-mentioned method steps when executing the program stored in the memory.
[0038] An embodiment of the present invention further discloses a readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute any method described in the embodiment of the present invention.
[0039] According to an embodiment of the present invention, feature extraction is performed on the pictures collected by each camera respectively to obtain feature data and obtain a predetermined de-distortion correspondence relationship; wherein the de-distortion correspondence relationship is the correspondence between the coordinates in the world coordinate system and the de-distorted coordinates in the pixel coordinate system. A bird's-eye view feature is generated according to the feature data corresponding to multiple cameras and the de-distortion correspondence relationship, so that it is not necessary to de-distort the pictures collected by the camera, thereby reducing the consumption of CPU resources for the deployment of the perception model, avoiding the information loss caused by the cropping of the perception model input picture due to the picture de-distortion, and greatly improving the performance and robustness of the perception model. By embedding the de-distortion process into the neural network of the perception model, the utilization rate of GPU resources when the perception model is deployed is improved, the time consumption of the perception model during training is reduced, and the iterative development of the perception model is accelerated. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A flowchart showing a method for generating features in a perception model provided by an embodiment of the present invention is shown;
[0041] Figure 2 A flowchart of a method for generating features based on a perception model provided by an embodiment of the present invention is shown;
[0042] Figure 3 A schematic diagram of the process flow of the depth estimation cascade is shown;
[0043] Figure 4 A structural block diagram of an embodiment of a feature generation device in a perception model provided by an embodiment of the present invention is shown;
[0044] Figure 5 A structural block diagram of an electronic device for generating features in a perception model according to an exemplary embodiment is shown. DETAILED DESCRIPTION
[0045] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0046] Reference Figure 1 , shows a flowchart of a method for generating features in a perception model provided by an embodiment of the present invention, which may specifically include the following steps:
[0047] Step 101 , for each camera, extract features from the pictures collected by the camera to obtain feature data.
[0048] In the embodiment of the present invention, the perception model refers to a machine learning model that perceives the surrounding environment mainly through a camera and accurately identifies various targets such as vehicles, pedestrians, obstacles, and traffic signs in the surrounding environment. It can also be perceived with the help of various sensors such as radar. For example, a perception algorithm model based on a bird's-eye view, or any other applicable perception model, is not limited in the embodiment of the present invention.
[0049] In the embodiment of the present invention, the perception model needs to learn higher-level feature representations, namely feature data, from the images captured by the camera, and implement the back-end task of identifying various targets in the surrounding environment based on these feature data.
[0050] In the embodiment of the present invention, each camera collects pictures respectively, and inputs the collected pictures into the perception model, and the perception model extracts features from the pictures respectively to obtain corresponding feature data. For example, pictures collected by multiple cameras on a vehicle are input into the convolution layer of the convolutional neural network, and feature maps, i.e., feature data, are obtained after feature extraction.
[0051] Step 102, obtaining a predetermined de-distortion corresponding relationship; wherein the de-distortion corresponding relationship is a corresponding relationship between coordinates in the world coordinate system and coordinates after de-distortion in the pixel coordinate system.
[0052] In the embodiment of the present invention, a reference coordinate system is selected in the environment to describe the position of the camera, and it is used to describe the position of any object in the environment. This coordinate system is called the world coordinate system. In the image obtained after the pinhole imaging of the real world, the coordinate system with pixels as the unit and the origin at the upper left corner of the image (or other agreed pixel positions) is called the pixel coordinate system. The camera coordinate system is a coordinate system established with the optical center of the camera as the origin.
[0053] In the embodiment of the present invention, there is a connection between the world coordinate system, the camera coordinate system, and the pixel coordinate system. Through camera calibration, the coordinates in the world coordinate system can be positioned to the coordinates in the pixel coordinate system before distortion.
[0054] In an embodiment of the present invention, the focal length, pixel size, and position of the imaging center in the image of the camera are referred to as the internal parameters of the camera in computer graphics, referred to as internal parameters, which are used to determine the projection relationship of the camera from the three-dimensional space to the two-dimensional image. In actual applications, the internal parameters of the camera will be more complex, and also include parameters such as the distortion rate of the image. In autonomous driving applications, the internal parameters of the camera are constants and will not change during use, but calibration work needs to be done before use. The shooting process of the camera can be abstracted as a process of mapping from a three-dimensional camera coordinate system to a two-dimensional image coordinate system, and then mapping to a pixel coordinate system. The perception model is the inverse process of this process, inferring the position of an object in a three-dimensional camera coordinate system through a two-dimensional image, such as obtaining distance depth information. Obtain three-dimensional distance information from a two-dimensional image. If you need to obtain the position of an object in the world coordinate system, you also need to know the pose of the camera in the world coordinate system. This pose representation is called the external parameter of the camera, referred to as the external parameter, which is used to determine the relative position relationship between the camera coordinate system and the world coordinate system.
[0055] Among them, the world coordinate system is the reference system of the position of the target object, which can be placed freely according to the convenience of operation. The conversion from the world coordinate system to the camera coordinate system involves rotation and translation. Because the world coordinate system and the camera coordinate system are both right-handed coordinate systems, they will not deform (rigid transformation). From the camera coordinate system to the image coordinate system, it belongs to the perspective projection relationship, from 3D to 2D. It can also be regarded as a change model of the pinhole model. It satisfies the triangle similarity theorem. The transformation from the image coordinate system to the pixel coordinate system has no rotation transformation, the position of the coordinate origin is inconsistent, and the size is inconsistent. It can be completed through scaling transformation and translation transformation. Through derivation, the correspondence between the coordinates in the world coordinate system and the coordinates in the pixel coordinate system before distortion can be determined according to the external parameters and internal parameters of the camera, and the external parameters and internal parameters of the camera can be obtained through calibration.
[0056] In the embodiment of the present invention, the correspondence between the coordinates in the world coordinate system and the coordinates in the pixel coordinate system before dedistortion may be determined in any applicable manner, and the embodiment of the present invention does not impose any limitation on this.
[0057] In an embodiment of the present invention, in order to avoid dedistorting the image captured by the camera to obtain a dedistorted image before inputting the perception model, the present invention proposes to correspond the pixel coordinates of the image before dedistortion with the pixel coordinates after dedistortion, and introduce the corresponding relationship between the pixel coordinates before dedistortion and the pixel coordinates after dedistortion into the neural network of the perception model.
[0058] In an embodiment of the present invention, the correspondence between the coordinates before dedistortion and the coordinates after dedistortion in the pixel coordinate system can be determined using the distortion parameters of the camera. The distortion parameters are inherent characteristics of the camera. Specifically, the dedistorted image can be obtained by dedistorting the image captured by the camera. In the process of dedistortion, the distortion parameters can be obtained. The distortion parameters include radial distortion parameters and tangential distortion parameters. For a coordinate in a camera coordinate system, the pixel coordinate of the coordinate in the dedistorted image can be calculated based on the distortion parameters and the dedistortion formula. Therefore, based on the distortion parameters, the correspondence between the coordinates before dedistortion and the coordinates after dedistortion in the pixel coordinate system can be determined. The distortion parameters can be obtained from the camera manufacturer or measured experimentally.
[0059] In the embodiment of the present invention, the correspondence between the coordinates in the world coordinate system and the coordinates in the pixel coordinate system before dedistortion and the correspondence between the coordinates in the pixel coordinate system before dedistortion and the coordinates after dedistortion are combined to obtain the correspondence between the coordinates in the world coordinate system and the coordinates in the pixel coordinate system after dedistortion, which is recorded as the dedistortion correspondence. The dedistortion correspondence may be a function, a lookup table, an index vector, or any other applicable form, which is not limited in the embodiment of the present invention.
[0060] Step 103: Generate a bird's-eye view feature according to the feature data corresponding to the multiple cameras and the de-distortion correspondence.
[0061] In an embodiment of the present invention, a bird's eye view (Bird's Eye View, referred to as BEV) is a perspective of viewing an object or scene from above, just like a bird looking down at the ground in the air. In the field of autonomous driving and robotics, data acquired by sensors (such as radars and cameras) are usually converted into BEV representations to better perform tasks such as object detection and path planning. BEV can simplify complex three-dimensional environments into two-dimensional images. The perception model must fuse the feature data corresponding to multiple cameras to obtain bird's-eye view features. For example, the feature data of the picture of each camera is projected into a pre-set BEV grid according to the intrinsic and extrinsic parameters of the camera, and then the ViewTransformer module (a 2D feature to 3D feature projection module) is used to perform spatial feature fusion and output a BEV feature map, i.e., a bird's-eye view feature.
[0062] In the embodiment of the present invention, the perception model originally generates a bird's-eye view feature based on feature data corresponding to multiple cameras, and introduces the de-distortion correspondence into this process, thereby achieving de-distortion of the bird's-eye view feature.
[0063] In the embodiment of the present invention, there may be multiple specific implementations of generating bird's-eye view features according to the feature data corresponding to multiple cameras and the de-distortion correspondence, which is not limited in the embodiment of the present invention.
[0064] For example, the dedistortion correspondence is a multi-camera dedistortion correspondence obtained by combining the single-camera dedistortion correspondences of the multiple cameras. According to the feature data corresponding to the multiple cameras, the fusion features before dedistortion are determined, and according to the multi-camera dedistortion correspondence, feature values are extracted from the fusion features before dedistortion to generate the fusion features after dedistortion, and according to the fusion features after dedistortion, the bird's-eye view features are generated.
[0065] Among them, the method for determining the fused features before dedistortion can adopt any applicable fusion method in the process of generating bird's-eye view features, and the embodiment of the present invention does not limit this. The method of determining the multi-camera dedistortion correspondence relationship in combination with the single-camera dedistortion correspondence relationship of multiple cameras corresponds to the fusion method in the process of generating bird's-eye view features mentioned above. For example, two features or vectors (1, 2, 3) and (2, 3, 1), the two features or vectors are spliced together, and each feature value or vector value in each feature or vector is added with the length of the previous feature or vector to obtain (1, 2, 3, 5, 6, 4). The feature values in the fused features before dedistortion are extracted, and the positions of the feature values are determined according to the multi-camera dedistortion correspondence relationship to generate the fused features after dedistortion. The method of generating bird's-eye view features according to the fused features after dedistortion can adopt any applicable generation method in the process of generating bird's-eye view features, and the embodiment of the present invention does not limit this.
[0066] For another example, the dedistortion correspondence includes the single-camera dedistortion correspondence of the multiple cameras. For each camera, according to the single-camera dedistortion correspondence, feature values are extracted from the feature data to determine the dedistorted intermediate feature data; and then, according to the dedistorted intermediate feature data of the multiple cameras, the bird's-eye view feature is generated.
[0067] Different from the aforementioned method of first fusing and then dedistorting, it is also possible to extract feature values from the feature data for each camera, determine the position of the feature values according to the single-camera dedistortion correspondence, and generate dedistorted feature data, which is recorded as intermediate feature data. The method of generating the bird's-eye view feature according to the dedistorted intermediate feature data of multiple cameras can adopt any applicable method of generating bird's-eye view features, and the embodiment of the present invention does not limit this.
[0068] In an embodiment of the present invention, the perception model can use the bird's-eye view features to complete the back-end perception tasks, so that inputting the undistorted image into the perception model can also overcome the problem caused by image distortion.
[0069] According to an embodiment of the present invention, feature extraction is performed on the pictures collected by each camera respectively to obtain feature data and obtain a predetermined de-distortion correspondence relationship; wherein the de-distortion correspondence relationship is the correspondence between the coordinates in the world coordinate system and the de-distorted coordinates in the pixel coordinate system. A bird's-eye view feature is generated according to the feature data corresponding to multiple cameras and the de-distortion correspondence relationship, so that it is not necessary to de-distort the pictures collected by the camera, thereby reducing the consumption of CPU resources for the deployment of the perception model, avoiding the information loss caused by the cropping of the perception model input picture due to the picture de-distortion, and greatly improving the performance and robustness of the perception model. By embedding the de-distortion process into the neural network of the perception model, the utilization rate of GPU resources when the perception model is deployed is improved, the time consumption of the perception model during training is reduced, and the iterative development of the perception model is accelerated.
[0070] Reference Figure 2 , shows a flowchart of a method for generating features based on a perception model provided by an embodiment of the present invention, which may specifically include the following steps:
[0071] Step 201 , for each camera, feature extraction is performed on the pictures collected by the camera to obtain feature data.
[0072] In the embodiment of the present invention, the specific implementation method of this step can refer to the description in the above embodiment and will not be repeated here.
[0073] Step 202, obtaining a predetermined multi-camera dedistortion correspondence relationship; wherein the multi-camera dedistortion correspondence relationship is a correspondence relationship between coordinates in a world coordinate system and coordinates after dedistortion in a pixel coordinate system.
[0074] In an embodiment of the present invention, the dedistortion correspondence is a multi-camera dedistortion correspondence obtained by combining the single-camera dedistortion correspondences of the multiple cameras. The single-camera dedistortion correspondence is a dedistortion correspondence of a single camera. By combining the single-camera dedistortion correspondences of multiple cameras, a multi-camera dedistortion correspondence can be determined.
[0075] In an optional embodiment of the present invention, the multi-camera dedistortion correspondence relationship is a multi-camera index vector representing a dedistortion lookup table corresponding to the multiple cameras, or a dedistortion lookup table corresponding to the multiple cameras, or a dedistortion function corresponding to the multiple cameras, wherein the dedistortion lookup table of each camera is a lookup table determined according to the dedistortion function.
[0076] The dedistortion function refers to the functional relationship between the coordinates in the world coordinate system and the dedistorted coordinates in the pixel coordinate system. The dedistortion function can be used to map the coordinates in the world coordinate system to the dedistorted coordinates in the pixel coordinate system.
[0077] According to the dedistortion function, a look-up table can be determined, which is called the dedistortion look-up table. Given a coordinate in the world coordinate system, the dedistorted coordinate in the pixel coordinate system that matches the coordinate in the world coordinate system is found in the dedistortion look-up table containing n records.
[0078] The dedistortion lookup table can also be represented by an index vector, denoted as a multi-camera index vector. The multi-camera index vector can be determined by combining the single-camera index vectors of multiple cameras. For example, two single-camera index vectors (1, 2, 3) and (2, 3, 1) are concatenated together, and each vector value in each vector is added with the length 3 of the previous vector to obtain (1, 2, 3, 5, 6, 4), which is the multi-camera index vector.
[0079] All three methods can be used as implementation methods for multi-camera dedistortion correspondence. Among them, the dedistortion lookup table and multi-camera index vector can speed up the calculation, reduce the consumption of computing resources, and are more suitable for perception models with high real-time requirements.
[0080] For example, the obtained dedistortion function is converted into a lookup table and embedded into the perception model in the form of a GatherND node to obtain the ViewTranformer (visual attention mechanism neural network architecture) module of the BEV neural network, where the GatherND node is a node used to transfer the features of a two-dimensional image to a three-dimensional space. The specific implementation can be divided into the following steps.
[0081] In the world coordinate system, a set of observation points S1 = {X w1 , X w2 , X w3 , ...}. The observation point in the world coordinate system is converted into the corresponding pixel coordinate system after distortion through the distortion function S2 = {X d1 , X d2 , X d3 ,...}. The correspondence between the two sets S1 and S2 is stored as a lookup table, namely, a distortion-reducing lookup table. For example, if S1 and S2 each have three elements, and the correspondence is that the first element in S1 corresponds to the second element in S2, the second element in S1 corresponds to the third element in S2, and the third element in S1 corresponds to the first element in S2, a lookup table can be obtained to represent this correspondence: LUT = {1:2, 2:3, 3:1}. The obtained LUT is converted into a vector, namely, an index vector representing the distortion-reducing lookup table. For example, the above LUT can be converted into [2, 3, 1] (i.e., assuming the order of elements in the first set, only the positions corresponding to the elements in the second set are listed).
[0082] In an optional embodiment of the present invention, the dedistortion function is determined based on the correspondence between coordinates in the world coordinate system and coordinates in the camera coordinate system, the correspondence between coordinates in the camera coordinate system and coordinates in the pixel coordinate system, and the correspondence between coordinates in the pixel coordinate system before dedistortion and coordinates in the pixel coordinate system after dedistortion.
[0083] Using the intrinsic and extrinsic parameters of multiple cameras, the coordinate X in the world coordinate system is w ∈R 3 The coordinate X in the two-dimensional pixel coordinate system p ∈R 2 The corresponding coordinates in the three-dimensional world coordinate system are found in the pixel coordinate system of the corresponding camera output images. The specific implementation can be divided into the following steps.
[0084] The coordinate X in the world coordinate system is converted by the camera's external parameters w Convert to coordinate X in the camera coordinate system c :X c =R(X w -T), where R and T correspond to the rotation matrix and translation vector of the camera's extrinsic parameters respectively.
[0085] The camera coordinate system is converted to the pixel coordinate system by using the camera's intrinsic parameters. p :
[0086]
[0087] Among them, f, u0, v0 are the internal parameters of the camera, (x c ,y c , z c )=X c .
[0088] At this point, we get the coordinate X in the three-dimensional world coordinate system w ∈R 3 To the coordinate X in the two-dimensional pixel coordinate system p ∈R 2 Corresponding relationship: f: R 3 →R 2 .
[0089] Using the camera's distortion parameters, the coordinate X in the pixel coordinate system of the image before distortion is p ∈R 2 and the coordinate X after dedistortion d ∈R 2 Correspondence is performed to obtain the correspondence between the coordinates before dedistortion in the pixel coordinate system and the coordinates after dedistortion in the pixel coordinate system: g: R 2→R 2 .
[0090] Combine the above two corresponding relationships to get the coordinate X in the world coordinate system w ∈R 3 To the dedistorted coordinate X in the pixel coordinate system d ∈R 2 The corresponding relationship: f(g): R 3 →R 2 , which is the distortion removal function.
[0091] Specifically, for the coordinate X in the world coordinate system w ∈R 3 , first use function f to map it to the coordinate X before distortion in the pixel coordinate system p ∈R 2 , we get X p Then, use function g to convert it into the dedistorted coordinate X in the pixel coordinate system. d ∈R 2 This merging process is described as the function h = f(g): R 3 →R 2 .
[0092] Step 203: Determine the fusion features before de-distortion based on the feature data corresponding to the multiple cameras.
[0093] In the embodiment of the present invention, feature data of images collected by multiple cameras are fused to obtain fused features. Since the images are not dedistorted, the fused features are recorded as fused features before dedistortion. For example, feature maps corresponding to multiple cameras are fused to obtain a one-dimensional fused feature.
[0094] Step 204: extracting feature values from the fused features before dedistortion according to the multi-camera dedistortion correspondence relationship to generate fused features after dedistortion.
[0095] In an embodiment of the present invention, the feature values in the fused features before de-distortion are extracted, the positions of the feature values are determined according to the multi-camera de-distortion correspondence, and they are reassembled into fused features, which are recorded as the fused features after de-distortion. For example, the fused features before de-distortion are [a, b, c, d], the multi-camera de-distortion correspondence is the index vector (2, 3, 1) representing the de-distortion lookup table, and the feature values are extracted from [a, b, c, d] according to the index vector (2, 3, 1). Since the first value in the index vector is 2, the first feature value extracted from [a, b, c, d] is b, and so on, to generate the fused features [b, c, a, d] after de-distortion.
[0096] Step 205: Generate the bird's-eye view feature according to the dedistorted fusion feature.
[0097] In the embodiment of the present invention, the fused features after dedistortion are still the feature data of the image, and then they are combined with the depth map corresponding to the image to generate the bird's-eye view features. Specifically, a discrete depth distribution is first made, and the features of the pixels can be mapped to different depth values according to the probability distribution, that is, the three-dimensional space features are completed using the fused features after dedistortion. After completion, they are flattened to the bird's-eye view space to obtain the bird's-eye view features. Specifically, any applicable method for generating bird's-eye view features can be used, and the embodiment of the present invention does not limit this.
[0098] For example, the above index vector is converted into GatherND and embedded into the neural network in the form of a GatherND node. This step can be directly implemented by the corresponding algorithm library (such as the pytorch algorithm library). The obtained GatherND node replaces the ViewTransformer implementation of the original neural network, thereby generating a bird's-eye view feature based on the feature data corresponding to multiple cameras and the corresponding relationship of multi-camera distortion removal.
[0099] In the embodiment of the present invention, when the perception model is deployed, the BEV model embedded with the de-distortion correspondence is used to directly read the un-de-distorted image for inference. For the perception model training, the neural network to be trained is first generated through the intrinsic and extrinsic parameters of a camera and the distortion parameters of a set of data, and then trained. Figure 3 The schematic diagram of the use process of the perception model that introduces the de-distortion correspondence is shown, which is mainly divided into two stages, the model training stage and the model inference stage. The model inference stage is a subset of the model training stage. When the model is deployed for inference, it is assumed that the intrinsic and extrinsic parameters of the camera corresponding to the model input image are certain values. The Inference stage is the inference process after the model is generated. When training the model, it cannot be assumed that the intrinsic and extrinsic parameters of the camera corresponding to the model input image are certain values, because these images may be collected by different cameras. It is necessary to generate the ViewTransformer module in the corresponding perception model according to each training sample (Training Samples) separately, and use the perception model generated by the current sample to perform the training step. The Training stage is the entire training process.
[0100] According to an embodiment of the present invention, by performing feature extraction on the pictures collected by each camera respectively, feature data is obtained, and a predetermined multi-camera dedistortion correspondence relationship is obtained; wherein the multi-camera dedistortion correspondence relationship is a correspondence relationship between coordinates in a world coordinate system and coordinates after dedistortion in a pixel coordinate system, and a fusion feature before dedistortion is determined according to the feature data corresponding to multiple cameras, and a feature value is extracted from the fusion feature before dedistortion according to the multi-camera dedistortion correspondence relationship to generate a fusion feature after dedistortion, and the bird's-eye view feature is generated according to the fusion feature after dedistortion, so that it is not necessary to dedistort the pictures collected by the camera, and the consumption of CPU resources for the deployment of the perception model is reduced, and the information loss caused by the cropping of the perception model input picture due to the picture dedistortion is avoided, and the performance and robustness of the perception model are greatly improved. By embedding the dedistortion process into the neural network of the perception model, the utilization rate of GPU resources when the perception model is deployed is improved, the time consumption of the perception model during training is reduced, and the iterative development of the perception model is accelerated.
[0101] In an optional embodiment of the present invention, the dedistortion correspondence includes a single-camera dedistortion correspondence of the multiple cameras; a specific implementation method of generating a bird's-eye view feature according to the feature data corresponding to the multiple cameras and the dedistortion correspondence may include: for each camera, according to the single-camera dedistortion correspondence, extracting a feature value from the feature data, and determining intermediate feature data after dedistortion; generating the bird's-eye view feature according to the intermediate feature data after dedistortion of the multiple cameras.
[0102] The dedistortion correspondence includes the single-camera dedistortion correspondence of multiple cameras. For each camera, according to the corresponding single-camera dedistortion correspondence, a feature value is extracted from the corresponding feature data, thereby generating feature data, which is recorded as the intermediate feature data after dedistortion. That is, the feature data of the picture of a single camera is first dedistorted, and then the intermediate feature data after dedistortion of multiple cameras are fused to generate the bird's-eye view feature. Specifically, any applicable method of generating the bird's-eye view feature according to the feature data of the pictures of multiple cameras can be adopted, and the embodiment of the present invention does not limit this.
[0103] In an optional embodiment of the present invention, the single-camera dedistortion correspondence relationship is a single-camera index vector representing a dedistortion lookup table corresponding to a single camera, or a dedistortion lookup table corresponding to a single camera, or a dedistortion function corresponding to a single camera, wherein the dedistortion lookup table corresponding to a single camera is a lookup table determined according to the dedistortion function.
[0104] The dedistortion function refers to the functional relationship between the coordinates in the world coordinate system and the dedistorted coordinates in the pixel coordinate system. The dedistortion function can be used to map the coordinates in the world coordinate system to the dedistorted coordinates in the pixel coordinate system.
[0105] According to the dedistortion function of a single camera, a lookup table can be determined, which is called the dedistortion lookup table, that is, the dedistortion lookup table corresponding to a single camera. Given a coordinate in a world coordinate system, find the dedistorted coordinate in the pixel coordinate system that matches the coordinate in the world coordinate system in the dedistortion lookup table containing n records.
[0106] The dedistortion lookup table corresponding to a single camera can also be represented by an index vector, which is recorded as a single camera index vector, for example, a single camera index vector (2, 3, 1).
[0107] All three methods can be used as a way to implement the single-camera dedistortion correspondence. Among them, the dedistortion lookup table and multi-camera index vector can speed up the calculation, reduce the consumption of computing resources, and are more suitable for perception models with high real-time requirements.
[0108] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0109] Reference Figure 4 , shows a structural block diagram of an embodiment of a feature generation device in a perception model provided by another embodiment of the present invention, which may specifically include the following modules:
[0110] The feature extraction module 301 is used to extract features from the pictures collected by each camera to obtain feature data;
[0111] The correspondence relationship acquisition module 302 is used to acquire a predetermined de-distortion correspondence relationship; wherein the de-distortion correspondence relationship is a correspondence relationship between coordinates in the world coordinate system and coordinates after de-distortion in the pixel coordinate system;
[0112] The bird's-eye view feature generation module 303 is used to generate bird's-eye view features according to the feature data corresponding to multiple cameras and the de-distortion correspondence relationship.
[0113] Optionally, the dedistortion correspondence is a multi-camera dedistortion correspondence obtained by combining single-camera dedistortion correspondences of the multiple cameras, and the bird's-eye view feature generation module includes:
[0114] A fusion feature submodule is used to determine the fusion features before dedistortion based on the feature data corresponding to multiple cameras;
[0115] A dedistortion submodule, configured to extract feature values from the fused features before dedistortion according to the multi-camera dedistortion correspondence relationship, and generate fused features after dedistortion;
[0116] The first bird's-eye view feature generation submodule is used to generate the bird's-eye view feature according to the dedistorted fusion feature.
[0117] Optionally, the multi-camera dedistortion correspondence is a multi-camera index vector representing a dedistortion lookup table corresponding to the multiple cameras, or a dedistortion lookup table corresponding to the multiple cameras, or a dedistortion function corresponding to the multiple cameras, wherein the dedistortion lookup table of each camera is a lookup table determined according to the dedistortion function.
[0118] Optionally, the dedistortion correspondence includes a single-camera dedistortion correspondence of the multiple cameras; and the bird's-eye view feature generation module includes:
[0119] An intermediate feature determination submodule, for each camera, extracting feature values from the feature data according to the single camera dedistortion correspondence relationship, and determining dedistorted intermediate feature data;
[0120] The second bird's-eye view feature generation submodule is used to generate the bird's-eye view feature according to the dedistorted intermediate feature data of the multiple cameras.
[0121] Optionally, the single-camera dedistortion correspondence is a single-camera index vector representing a dedistortion lookup table corresponding to a single camera, or a dedistortion lookup table corresponding to a single camera, or a dedistortion function corresponding to a single camera, wherein the dedistortion lookup table corresponding to a single camera is a lookup table determined according to the dedistortion function.
[0122] Optionally, the dedistortion function is determined based on the correspondence between coordinates in the world coordinate system and coordinates in the camera coordinate system, the correspondence between coordinates in the camera coordinate system and coordinates in the pixel coordinate system, and the correspondence between coordinates in the pixel coordinate system before dedistortion and coordinates in the pixel coordinate system after dedistortion.
[0123] According to an embodiment of the present invention, feature extraction is performed on the pictures collected by each camera respectively to obtain feature data and obtain a predetermined de-distortion correspondence relationship; wherein the de-distortion correspondence relationship is the correspondence between the coordinates in the world coordinate system and the de-distorted coordinates in the pixel coordinate system. A bird's-eye view feature is generated according to the feature data corresponding to multiple cameras and the de-distortion correspondence relationship, so that it is not necessary to de-distort the pictures collected by the camera, thereby reducing the consumption of CPU resources for the deployment of the perception model, avoiding the information loss caused by the cropping of the perception model input picture due to the picture de-distortion, and greatly improving the performance and robustness of the perception model. By embedding the de-distortion process into the neural network of the perception model, the utilization rate of GPU resources when the perception model is deployed is improved, the time consumption of the perception model during training is reduced, and the iterative development of the perception model is accelerated.
[0124] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0125] Figure 5 1 is a block diagram of an electronic device 700 for generating features in a perception model according to an exemplary embodiment. For example, the electronic device 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0126] Reference Figure 5 , the electronic device 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output (I / O) interface 712 , a sensor component 714 , and a communication component 716 .
[0127] The processing component 702 generally controls the overall operation of the electronic device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.
[0128] The memory 704 is configured to store various types of data to support operations on the device 700. Examples of such data include instructions for any application or method operating on the electronic device 700, contact data, phone book data, messages, pictures, videos, etc. The memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0129] The power supply component 706 provides power to the various components of the electronic device 700. The power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 700.
[0130] The multimedia component 708 includes a screen that provides an output interface between the electronic device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front camera and / or a rear camera. When the electronic device 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0131] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC), and when the electronic device 700 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 704 or sent via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.
[0132] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0133] The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the electronic device 700. For example, the sensor assembly 714 can detect the open / closed state of the device 700, the relative positioning of components, such as the display and keypad of the electronic device 700, and the sensor assembly 714 can also detect the position change of the electronic device 700 or a component of the electronic device 700, the presence or absence of contact between the user and the electronic device 700, the orientation or acceleration / deceleration of the electronic device 700, and the temperature change of the electronic device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0134] The communication component 716 is configured to facilitate wired or wireless communication between the electronic device 700 and other devices. The electronic device 700 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0135] In an exemplary embodiment, the electronic device 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0136] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, and the instructions can be executed by a processor 720 of an electronic device 700 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0137] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a terminal, enables the terminal to perform a feature generation method in a perception model, the method comprising:
[0138] For each camera, feature extraction is performed on the images collected by the camera to obtain feature data;
[0139] Acquire a predetermined de-distortion corresponding relationship; wherein the de-distortion corresponding relationship is a corresponding relationship between coordinates in a world coordinate system and coordinates after de-distortion in a pixel coordinate system;
[0140] A bird's-eye view feature is generated according to the feature data corresponding to the multiple cameras and the de-distortion correspondence.
[0141] Optionally, the dedistortion correspondence is a multi-camera dedistortion correspondence obtained by combining single-camera dedistortion correspondences of the multiple cameras, and generating the bird's-eye view features according to the feature data corresponding to the multiple cameras and the dedistortion correspondence includes:
[0142] Determine the fusion features before de-distortion based on the feature data corresponding to the multiple cameras;
[0143] Extracting feature values from the fused features before dedistortion according to the multi-camera dedistortion correspondence to generate fused features after dedistortion;
[0144] The bird's-eye view features are generated according to the dedistorted fusion features.
[0145] Optionally, the multi-camera dedistortion correspondence is a multi-camera index vector representing a dedistortion lookup table corresponding to the multiple cameras, or a dedistortion lookup table corresponding to the multiple cameras, or a dedistortion function corresponding to the multiple cameras, wherein the dedistortion lookup table of each camera is a lookup table determined according to the dedistortion function.
[0146] Optionally, the dedistortion correspondence includes a single-camera dedistortion correspondence of the multiple cameras; and generating a bird's-eye view feature according to feature data corresponding to the multiple cameras and the dedistortion correspondence includes:
[0147] For each camera, extracting a characteristic value from the characteristic data according to the single camera dedistortion correspondence relationship, and determining intermediate characteristic data after dedistortion;
[0148] The bird's-eye view features are generated according to the dedistorted intermediate feature data of the multiple cameras.
[0149] Optionally, the single-camera dedistortion correspondence is a single-camera index vector representing a dedistortion lookup table corresponding to a single camera, or a dedistortion lookup table corresponding to a single camera, or a dedistortion function corresponding to a single camera, wherein the dedistortion lookup table corresponding to a single camera is a lookup table determined according to the dedistortion function.
[0150] Optionally, the dedistortion function is determined based on the correspondence between coordinates in the world coordinate system and coordinates in the camera coordinate system, the correspondence between coordinates in the camera coordinate system and coordinates in the pixel coordinate system, and the correspondence between coordinates in the pixel coordinate system before dedistortion and coordinates in the pixel coordinate system after dedistortion.
[0151] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0152] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0153] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0154] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0155] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0156] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0157] 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", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0158] The above is a detailed introduction to a feature generation method in a perception model, a feature generation device in a perception model, an electronic device, and a readable storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A feature generation method in a perception model, characterized in that: include: For each camera, feature extraction is performed on the images collected by the camera to obtain feature data; Acquire a predetermined de-distortion corresponding relationship; wherein the de-distortion corresponding relationship is a corresponding relationship between coordinates in a world coordinate system and coordinates after de-distortion in a pixel coordinate system; A bird's-eye view feature is generated according to the feature data corresponding to the multiple cameras and the de-distortion correspondence.
2. The method according to claim 1, characterized in that The dedistortion correspondence is a multi-camera dedistortion correspondence obtained by combining the single-camera dedistortion correspondence of the multiple cameras, and generating the bird's-eye view features according to the feature data corresponding to the multiple cameras and the dedistortion correspondence includes: Determine the fusion features before de-distortion based on the feature data corresponding to the multiple cameras; Extracting feature values from the fused features before dedistortion according to the multi-camera dedistortion correspondence to generate fused features after dedistortion; The bird's-eye view features are generated according to the dedistorted fusion features.
3. The method according to claim 2, characterized in that The multi-camera dedistortion correspondence relationship is a multi-camera index vector representing a dedistortion lookup table corresponding to the multiple cameras, or a dedistortion lookup table corresponding to the multiple cameras, or a dedistortion function corresponding to the multiple cameras, wherein the dedistortion lookup table of each camera is a lookup table determined according to the dedistortion function.
4. The method according to claim 1, characterized in that: The dedistortion correspondence includes a single-camera dedistortion correspondence of the multiple cameras; and generating a bird's-eye view feature according to feature data corresponding to the multiple cameras and the dedistortion correspondence includes: For each camera, extracting a characteristic value from the characteristic data according to the single camera dedistortion correspondence relationship, and determining intermediate characteristic data after dedistortion; The bird's-eye view features are generated according to the dedistorted intermediate feature data of the multiple cameras.
5. The method according to claim 4, characterized in that The single-camera dedistortion correspondence relationship is a single-camera index vector representing a dedistortion lookup table corresponding to a single camera, or a dedistortion lookup table corresponding to a single camera, or a dedistortion function corresponding to a single camera, wherein the dedistortion lookup table corresponding to a single camera is a lookup table determined according to the dedistortion function.
6. The method according to claim 3 or 5, characterized in that: The dedistortion function is determined based on the correspondence between coordinates in the world coordinate system and coordinates in the camera coordinate system, the correspondence between coordinates in the camera coordinate system and coordinates in the pixel coordinate system, and the correspondence between coordinates in the pixel coordinate system before dedistortion and coordinates in the pixel coordinate system after dedistortion.
7. A feature generation device in a perception model, characterized in that: include: The feature extraction module is used to extract features from the pictures collected by each camera to obtain feature data; A correspondence relationship acquisition module, used to acquire a predetermined de-distortion correspondence relationship; wherein the de-distortion correspondence relationship is a correspondence relationship between coordinates in a world coordinate system and coordinates after de-distortion in a pixel coordinate system; The bird's-eye view feature generation module is used to generate bird's-eye view features according to feature data corresponding to multiple cameras and the de-distortion correspondence relationship.
8. The device according to claim 7, characterized in that The dedistortion correspondence is a multi-camera dedistortion correspondence obtained by combining single-camera dedistortion correspondences of the multiple cameras. The bird's-eye view feature generation module includes: A fusion feature submodule is used to determine the fusion features before dedistortion based on the feature data corresponding to multiple cameras; A dedistortion submodule, configured to extract feature values from the fused features before dedistortion according to the multi-camera dedistortion correspondence relationship, and generate fused features after dedistortion; The first bird's-eye view feature generation submodule is used to generate the bird's-eye view feature according to the dedistorted fusion feature.
9. The device according to claim 8, characterized in that The multi-camera dedistortion correspondence relationship is a multi-camera index vector representing a dedistortion lookup table corresponding to the multiple cameras, or a dedistortion lookup table corresponding to the multiple cameras, or a dedistortion function corresponding to the multiple cameras, wherein the dedistortion lookup table of each camera is a lookup table determined according to the dedistortion function.
10. The device according to claim 7, characterized in that The dedistortion correspondence includes a single-camera dedistortion correspondence of the multiple cameras; the bird's-eye view feature generation module includes: An intermediate feature determination submodule, for each camera, extracting feature values from the feature data according to the single camera dedistortion correspondence relationship, and determining dedistorted intermediate feature data; The second bird's-eye view feature generation submodule is used to generate the bird's-eye view feature according to the dedistorted intermediate feature data of the multiple cameras.
11. The device according to claim 10, characterized in that The single-camera dedistortion correspondence relationship is a single-camera index vector representing a dedistortion lookup table corresponding to a single camera, or a dedistortion lookup table corresponding to a single camera, or a dedistortion function corresponding to a single camera, wherein the dedistortion lookup table corresponding to a single camera is a lookup table determined according to the dedistortion function.
12. The device according to claim 9 or 10, characterized in that The dedistortion function is determined based on the correspondence between coordinates in the world coordinate system and coordinates in the camera coordinate system, the correspondence between coordinates in the camera coordinate system and coordinates in the pixel coordinate system, and the correspondence between coordinates in the pixel coordinate system before dedistortion and coordinates in the pixel coordinate system after dedistortion.
13. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 6 when executing a program stored in a memory.
14. A readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as claimed in any one of method claims 1 to 6.
Citation Information
Patent Citations
3D target detection method and system based on multipath fisheye images
CN115512346A
Vehicle-mounted real-time 540-degree looking-around method based on four fisheye cameras
CN117830529A
Surround scene perception using multiple sensors for autonomous systems and applications
US20240020953A1
Cited By
Method of transforming 2d distorted perspective view into undistorted view and mobility device using the method
US20260087763A1
