Image processing method and device, electronic equipment and storage medium
By processing the point cloud and image data collected by mobile devices, generating reflectance and texture images, and annotating static objects, it solves the problem of high efficiency and cost in obtaining 3D true values of static objects in autonomous driving, and improves the autonomous driving inference model. training data quality and applicability.
Patent Information
- Application Number
- CN202410583744.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-11
- Publication Date
- 2024-09-10
AI Technical Summary
In the existing technology, the efficiency and cost of obtaining 3D true values of static objects (such as lane lines and curbs) in the field of autonomous driving are high, making it difficult to meet users' needs for real-time map construction.
By obtaining sample data of the mobile device during movement, including point cloud data collected by sensors, positioning data and image data collected by cameras, these data are processed to generate reflectivity images and texture images, and static objects are annotated to obtain training. Sample data to improve the accuracy of the inference model.
It improves the efficiency and cost-effectiveness of constructing 3D true values of static objects, and enhances the applicability of training sample data for the autonomous driving inference model. Especially in extreme weather scenes, it can clearly reflect scene characteristics and improve the accuracy of the inference model.
Smart Images

Figure CN118628860A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of Internet technology, and in particular, relates to an image processing method, device, electronic device and storage medium. Background Art
[0002] With the development of autonomous driving algorithm architecture, the autonomous driving reasoning model combining the Bird's Eye View (BEV) algorithm and Transformer has begun to be widely used in the field of autonomous driving. The autonomous driving reasoning model of this architecture can effectively improve the perception accuracy and facilitate the subsequent planning and implementation of the autonomous driving algorithm.
[0003] At present, with the popularization of autonomous driving technology, users have higher requirements for the real-time map building capabilities of autonomous driving. In the process of implementing this application, the inventor found that there are at least the following problems in the prior art: it is difficult to obtain the 3D true value of static objects (such as lane lines and curbs). Summary of the invention
[0004] The embodiments of the present application provide an image processing method, apparatus, device and storage medium, which can solve the efficiency and cost issues of constructing the true value of static objects on the road surface.
[0005] In a first aspect, an embodiment of the present application provides an image processing method, the method comprising:
[0006] Acquire sample data of the mobile device during movement, the sample data including: first point cloud data collected by the sensor, positioning data of the sensor, and image data collected by the camera;
[0007] Processing the first point cloud data according to the positioning data to obtain road surface point cloud data;
[0008] Reconstructing the road surface point cloud data according to the positioning data to obtain a reflectivity image;
[0009] Generate a texture image according to the road surface point cloud data and the image data;
[0010] Static objects in the reflectivity image and the texture image are annotated according to the positioning data to obtain training sample data.
[0011] In a second aspect, an embodiment of the present application provides an image processing device, the image processing device comprising:
[0012] An acquisition module, used to acquire sample data of the mobile device during movement, wherein the sample data includes: first point cloud data acquired by the sensor, positioning data of the sensor, and image data acquired by the camera;
[0013] A processing module, used for processing the first point cloud data according to the positioning data to obtain road surface point cloud data;
[0014] The processing module is further used to reconstruct the road surface point cloud data according to the positioning data to obtain a reflectivity image;
[0015] A generating module, used for generating a texture image according to the road surface point cloud data and the image data;
[0016] The labeling module is used to label the static objects in the reflectivity image and the texture image according to the positioning data to obtain training sample data.
[0017] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, it implements the method in the first aspect or any possible implementation of the first aspect.
[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the method in the first aspect or any possible implementation of the first aspect is implemented.
[0019] In an embodiment of the present application, by acquiring sample data of a mobile device during movement, the sample data includes: first point cloud data collected by a sensor, positioning data of the sensor, and image data collected by a camera; since the first point cloud data collected includes point cloud data of multiple objects in the actual scene, it is necessary to process the first point cloud data according to the positioning data to obtain road surface point cloud data. Then, the road surface point cloud data is reconstructed according to the positioning data to obtain a reflectivity image. Next, in order to improve the applicability of the training sample data in various scenarios, a texture image is generated based on the road surface point cloud data and image data. The texture image can clearly reflect the scene features in various extreme weather scenarios and improve the applicability of the scene. Finally, the static objects in the reflectivity image and the texture image are annotated to obtain training sample data. Therefore, the training sample data can be used to improve the reasoning accuracy of the reasoning model. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0021] Figure 1 is a flow chart of an image processing method provided by an embodiment of the present application;
[0022] Figure 2 is a schematic diagram of an image processing method provided in an embodiment of the present application;
[0023] Figure 3 is a flowchart of another image processing method provided by an embodiment of the present application;
[0024] Figure 4 is a structural schematic diagram of an image processing device provided in an embodiment of the present application;
[0025] Figure 5 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present application and are not configured to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0027] 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 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 device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0028] The following is a brief introduction to the technical terms involved in this application.
[0029] Bird's Eye View (BEV), this algorithm aims to project the image information collected by multiple sensors into a unified 3D space, and then input it into a single large model for overall reasoning. Compared with traditional camera images, BEV provides a unified space that is closer to the actual physical world, providing greater convenience and more possibilities for the subsequent multi-sensor fusion and planning control module development.
[0030] Specifically, the advantages of BEV perception are: unifying the multimodal data processing dimensions, converting multiple camera or radar data into 3D perspectives, and then performing tasks such as target detection and segmentation, thereby reducing perception errors and providing richer outputs for downstream prediction and planning control modules; realizing time series information fusion, the 3D perspective under BEV can effectively reduce scale and occlusion problems compared to 2D information, and effectively improve the safety of autonomous driving; perception and prediction can be implemented in a unified 3D space, and end-to-end optimization can be directly completed through neural networks, which can effectively reduce the error accumulation of perception and prediction serially in traditional perception tasks.
[0031] The attention mechanism of Transformer can help realize the transformation of 2D image data into 3D BEV space. With the development of technology, it has begun to enter the field of image vision, and has successfully involved in three major image problems: classification, detection and segmentation. According to the WeChat public account of Auto Heart, the principle of the traditional CNN model is to construct a generalized filter through the convolution layer, so as to continuously screen and compress the elements in the image.
[0032] The Transformer network structure draws on the attention mechanism of the human brain when grafting 2D images and 3D space. When processing a large amount of information, it can only select key information to process to improve the efficiency of the neural network. Therefore, the saturation range of the Transformer is large, which is more suitable for the needs of large-scale data training. In the field of autonomous driving, compared with traditional CNN, the Transformer has stronger sequence modeling capabilities and global information perception capabilities, and is currently widely used in the conversion of visual 2D image data to 3D space.
[0033] Inertial Measurement Unit (IMU) is mainly used to measure its own posture, which includes position and attitude. The inertial navigation system is integrated with inertial sensors such as gyroscopes and accelerometers and navigation solution systems. Gyroscopes and accelerometers are the core components of the system. Gyroscopes measure the angular velocity of objects, and accelerometers measure the acceleration of objects. Typical inertial navigation products contain 3 sets of gyroscopes and accelerometers, which measure the angular velocity and acceleration of three degrees of freedom respectively. The speed and trajectory of the object in three-dimensional space can be obtained by integration.
[0034] Real Time Kinematic (RTK) carrier phase differential technology is a differential method for real-time processing of carrier phase observations of two measuring stations. The carrier phase collected by the base station is sent to the user receiver to calculate the coordinates. This is a new and commonly used satellite positioning measurement method. The previous static, fast static, and dynamic measurements all required post-calculation to obtain centimeter-level accuracy. RTK is a measurement method that can obtain centimeter-level positioning accuracy in real time in the field. It uses a carrier phase dynamic real-time differential method and is a major milestone in GPS applications. Its appearance has brought new measurement principles and methods to engineering layout, topographic mapping, and various control measurements, greatly improving work efficiency.
[0035] Figure 1 It is a flowchart of an image processing method provided in an embodiment of the present application.
[0036] like Figure 1 As shown, the image processing method may include steps 110 to 150, and the method is applied to an image processing device, as shown below:
[0037] Step 110, acquiring sample data of the mobile device during movement, the sample data including: first point cloud data collected by the sensor, positioning data of the sensor, and image data collected by the camera;
[0038] The mobile device may be a vehicle, an aircraft, a robot, or the like, which is a mobile device.
[0039] The first point cloud data may be: laser radar point cloud data.
[0040] LiDAR point cloud data is a data set of spatial points scanned by 3D LiDAR equipment. Each point contains 3D coordinate information, which is also the three elements of X, Y, and Z. Some also contain color information, reflection value, echo number information, etc. LiDAR point cloud data is obtained by the laser scanning system emitting laser signals to the surroundings and then collecting the reflected laser signals. Through field data collection, combined navigation, and point cloud solution, the accurate spatial information of these points can be calculated.
[0041] Positioning data may include: IMU data, RTK data, Global Positioning System (GPS) data, and Global Navigation Satellite System (GNSS) information.
[0042] The positioning data can be collected by sensors provided in the mobile device.
[0043] Image data can be collected by a camera with a surround view function. For example, the camera consists of four fisheye cameras, each of which has a field of view of more than 180 degrees; a 360-degree perception field of view is formed by stitching the four fields of view together.
[0044] Step 120, processing the first point cloud data according to the positioning data to obtain road surface point cloud data;
[0045] In autonomous driving, environmental information collected by sensors such as lidar is usually represented in the form of point clouds. Point clouds are data sets consisting of a large number of discrete three-dimensional coordinate points, each of which represents a position in space.
[0046] Since the first point cloud data collected includes point cloud data of various objects in the actual scene, such as vehicles, pedestrians, and signboards, etc., it is necessary to process the first point cloud data according to the positioning data to obtain road point cloud data. Figure 2 As shown, the first point cloud data is processed according to the positioning data to obtain road surface point cloud data, and the road surface point cloud data is used to subsequently generate a reflectivity image and a texture image.
[0047] Step 130, reconstructing the road surface point cloud data according to the positioning data to obtain a reflectivity image;
[0048] Wherein, since the originally collected first point cloud data includes reflectivity, the reflectivity associated with the road surface point cloud data is used to reconstruct the road surface elements using the positioning data to obtain a reflectivity image. Step 140, generating a texture image based on the road surface point cloud data and the image data;
[0049] For rainy, foggy and dusty weather conditions, the texture images generated based on the road point cloud data and image data can clearly reflect the road elements.
[0050] Step 150 , annotating static objects in the reflectivity image and the texture image according to the positioning data to obtain training sample data.
[0051] The static objects in the reflectivity image and the texture image are annotated according to the positioning data, and specifically at least one of the following may be annotated: lane lines, ground signs and crosswalks.
[0052] Labeling static objects in the reflectivity image and the texture image according to the positioning data can improve the features of the reconstructed road surface and improve the effectiveness of the training sample data.
[0053] In an embodiment of the present application, by acquiring sample data of a mobile device during movement, the sample data includes: first point cloud data collected by a sensor, positioning data of the sensor, and image data collected by a camera; since the first point cloud data collected includes point cloud data of multiple objects in the actual scene, it is necessary to process the first point cloud data according to the positioning data to obtain road surface point cloud data. Then, the road surface point cloud data is reconstructed according to the positioning data to obtain a reflectivity image. Next, in order to improve the applicability of the training sample data in various scenarios, a texture image is generated based on the road surface point cloud data and image data. The texture image can clearly reflect the scene features in various extreme weather scenarios and improve the applicability of the scene. Finally, the static objects in the reflectivity image and the texture image are annotated to obtain training sample data. Therefore, the training sample data can be used to improve the reasoning accuracy of the reasoning model.
[0054] The contents of step 110 to step 150 are described below respectively:
[0055] This involves step 110 .
[0056] Acquire sample data of the mobile device during movement, the sample data including: first point cloud data collected by the sensor, positioning data of the sensor, and image data collected by the camera;
[0057] The mobile device is provided with a sensor and a camera.
[0058] Sensors include lidar, millimeter-wave radar, depth cameras or 3D scanners, which can obtain real-world environmental information such as the geometry, shape and scale information of objects and environments from the real world.
[0059] The positioning data may include at least one of the following: IMU data, RTK data, GPS data, and GNSS data.
[0060] The image data can be collected by a camera with a surround view function.
[0061] In a possible embodiment, step 110 may specifically include the following steps:
[0062] Determine the scene where the mobile device is located;
[0063] When the scene is a preset scene, a plurality of sample data collected by the mobile device during multiple movement processes are obtained.
[0064] The scene where the mobile device is located can be determined by the 3D point cloud segmentation technology. Specifically, the point cloud in the road environment is divided into different categories, such as road surface, buildings, trees, etc. The scene where the mobile device is located is determined according to the category corresponding to the point cloud.
[0065] The scenarios in which mobile devices are located can be roughly divided into the following two types:
[0066] Simple scenario: highways and urban expressways.
[0067] Complex scenes: intersections in urban areas, etc.
[0068] Among them, the preset scene involved in the embodiments of the present application is a complex scene.
[0069] Different data collection methods and data processing methods may be adopted for different scenarios where mobile devices are located.
[0070] On the one hand, for simple scenes, sample data can be collected once, and the complete road surface point cloud data can be reconstructed based on the sample data collected once.
[0071] On the other hand, for complex scenes, the mobile device needs to perform multiple movement processes to obtain multiple sample data collected by the mobile device during the multiple movement processes, and then obtain complete road surface point cloud data by aggregating data collected in different time periods.
[0072] Therefore, when the scene is a preset scene, multiple sample data collected by the mobile device during multiple movements can be flexibly obtained according to the scene in which the mobile device is located, thereby enabling more complete sample data to be obtained.
[0073] This involves step 120 .
[0074] Processing the first point cloud data according to the positioning data to obtain road surface point cloud data;
[0075] Specifically, point cloud segmentation and obstacle detection may be performed on the first point cloud data, point cloud data corresponding to the road surface may be extracted from the first point cloud data, and the road surface point cloud data may be obtained by splicing;
[0076] Point cloud segmentation aims to classify and segment the points in the point cloud according to the objects or regions they belong to. By assigning points in the point cloud to different categories, it is possible to recognize and understand different objects in the environment.
[0077] Obstacle detection refers to the detection and identification of obstacles on the road, such as other vehicles, pedestrians, bicycles, etc. This provides important information for vehicle path planning, collision avoidance, and decision making.
[0078] Wherein, step 120 may specifically include the following steps:
[0079] In a possible embodiment, step 120 may specifically include the following steps:
[0080] removing the point cloud data corresponding to the dynamic object from the first point cloud data to obtain second point cloud data;
[0081] The second point cloud data is processed according to the positioning data to obtain road surface point cloud data.
[0082] Before the above-mentioned step of removing the point cloud data corresponding to the dynamic object from the first point cloud data to obtain the second point cloud data, the following steps may also be included:
[0083] Single-frame point cloud target detection is performed on the first point cloud data to identify dynamic objects, wherein the dynamic objects include at least one of the following: vehicles, pedestrians, and bicycles. Thus, the point cloud data corresponding to the dynamic objects can be removed from the first point cloud data to obtain the second point cloud data.
[0084] The step of processing the second point cloud data according to the positioning data to obtain the road surface point cloud data may specifically include the following steps:
[0085] Perform ground segmentation on the second point cloud data to extract third point cloud data;
[0086] splicing the third point cloud data according to the positioning data to obtain fourth point cloud data;
[0087] The fourth point cloud data is subjected to point cloud downsampling processing to obtain road surface point cloud data.
[0088] Since ground point cloud data is a data set composed of a large number of points, point cloud data is usually very large, resulting in a heavy burden on calculation and storage. Point cloud downsampling technology reduces the complexity of data and improves data processing efficiency by reducing the number of points.
[0089] Therefore, by removing dynamic objects from the originally collected first point cloud data to obtain second point cloud data that does not include dynamic objects, and splicing the second point cloud data that does not include dynamic objects according to the positioning data, it is possible to quickly and accurately generate road surface point cloud data based on the first point cloud data, thereby facilitating subsequent reconstruction of the road surface point cloud data.
[0090] This involves step 130 .
[0091] Reconstruct the road surface point cloud data according to the positioning data to obtain a reflectivity image;
[0092] The first point cloud data includes reflectivity, and the reflectivity associated with the road surface point cloud data is used to reconstruct road surface elements to obtain a reflectivity image.
[0093] In a possible embodiment, the first point cloud data includes reflectivity, and step 130 may specifically include the following steps:
[0094] Determining reflectivity associated with the road surface point cloud data from the first point cloud data;
[0095] The road surface point cloud data is reconstructed according to the reflectivity associated with the road surface point cloud data to obtain a reflectivity image.
[0096] The 3D sensor usually stores the multi-dimensional information of each point in the form of a 3D point cloud, including three-dimensional coordinates, reflectivity, size, etc. Among them, the first point cloud data includes reflectivity.
[0097] The data structure of the first point cloud data is: [x, y, z, Intensity]. “Intensity” is the reflectivity, and the value range of the reflectivity is: [0, 255]. The reflectivity value and the RGB value of the image are matched one by one through a rule method.
[0098] To reconstruct the road point cloud data, you can first color it according to a certain feature of the point cloud data. Since different objects have different information such as reflectivity and height, different points can be rendered in different colors based on reflectivity or height to distinguish them.
[0099] Specifically include:
[0100] (1) The reflectivity of lane lines is mostly concentrated in the range of 0.1-50. (2) The reflectivity of point clouds that are less than or greater than this range is set to 0.1 or 50. (3) The mean of the reconstructed ground point cloud is calculated, and the mean is considered to be the reflectivity threshold of the ground point cloud excluding the lane lines and other parts with high reflectivity. After calculation, it is approximately between 2 and 3. (4) Point clouds that are less than the ground point cloud threshold are assigned to the RGB value range of [0,0,0]-[50,50,50] according to the change of reflectivity. (5) Point clouds that are greater than the ground threshold are assigned to the range of [51,51,51]-[255,255,255] according to the increase of reflectivity to increase the distinction between lane lines and ground point clouds.
[0101] Since the reflectivity of lane lines and traffic signs is usually very different from the surrounding environment, the labeling task of lane lines or traffic signs can be achieved through reflectivity mapping.
[0102] Therefore, the road surface point cloud data is reconstructed according to the reflectivity associated with the road surface point cloud data, and the obtained reflectivity image can reflect the difference between static objects such as lane lines and curbs and the surrounding environment.
[0103] In a possible embodiment, when the scene is a preset scene, step 130 may specifically include the following steps:
[0104] Determine the transformation matrix between the road surface point cloud data corresponding to any two movement processes;
[0105] The road surface point cloud data corresponding to the multiple movement processes are spliced according to the transformation matrix to obtain the road surface point cloud data;
[0106] The road surface point cloud data is reconstructed according to the reflectivity associated with the road surface point cloud data to obtain a reflectivity image.
[0107] Since the mobile device has multiple movement processes when the scene is a preset scene, the above step 110 correspondingly obtains multiple sample data collected by the mobile device during the multiple movement processes.
[0108] The plurality of sample data are processed in step 120 to obtain a plurality of road surface point cloud data.
[0109] In order to reconstruct multiple road surface point cloud data collected during multiple movements, the road surface point cloud data needs to be corrected.
[0110] Specifically, the road surface point cloud data corresponding to any two movement processes can be registered to determine the transformation matrix between the road surface point cloud data corresponding to any two movement processes. The transformation matrix is used to characterize the relative position relationship between the road surface point cloud data corresponding to any two movement processes.
[0111] Then, the road surface point cloud data corresponding to the multiple movement processes are spliced according to the transformation matrix to obtain the road surface point cloud data in the preset position area.
[0112] Since the first point cloud data includes reflectivity, the reflectivity associated with the road surface point cloud data can be determined from the reflectivity associated with the first point cloud data, and the road surface point cloud data is reconstructed according to the reflectivity associated with the road surface point cloud data to obtain a reflectivity image.
[0113] Therefore, for complex scenes such as intersections in urban areas, the mobile device is required to perform multiple movement processes to obtain multiple sample data collected by the mobile device during the multiple movement processes, and then reconstruct the road point cloud data corresponding to the multiple movement processes to obtain a reflectivity image. Therefore, for complex scenes, the embodiment of the present application can generate a more complete reflectivity image through multiple collected road point cloud data.
[0114] Before the step of determining the conversion matrix between the road surface point cloud data corresponding to any two movement processes, the following steps may also be included:
[0115] Obtaining reference object position information collected during multiple movements;
[0116] Clustering the reference object position information collected multiple times to obtain aggregated reference object position information;
[0117] Determine the intersection location information according to the aggregated reference object location information;
[0118] According to the intersection location information, the road surface point cloud data collected each time is identified from the road surface point cloud data corresponding to the multiple movement processes.
[0119] The reference objects may include at least one of the following: static reference objects such as traffic lights, road signs and billboards.
[0120] The following description is made by taking the reference object position information as the traffic light position information as an example:
[0121] By identifying the position of the traffic light, the global fusion positioning is used to transfer the position of the traffic light to the global coordinate system to obtain the traffic light position information collected during multiple movements.
[0122] Since there are many overlaps in the positions of traffic lights detected multiple times and there are many traffic lights at intersections, it is necessary to cluster the traffic light position information collected multiple times to obtain aggregated traffic light position information.
[0123] Determine the center position of the intersection based on the aggregated traffic light position information;
[0124] The intersection location information is determined according to the center location of the intersection.
[0125] The intersection location information may be a location range determined based on the center location of the intersection, for example, taking the center location of the intersection as the center point and selecting a location range of 300 meters×300 meters.
[0126] According to the intersection location information, the road surface point cloud data collected each time is identified from the road surface point cloud data corresponding to the multiple movement processes, which is equivalent to separating the road surface point cloud data obtained from the multiple movement processes to obtain multiple single road surface point cloud data.
[0127] Among them, according to the intersection location information, identifying the road surface point cloud data collected each time from the road surface point cloud data corresponding to the multiple movement processes may specifically include:
[0128] According to the positioning data of the mobile device, the road surface point cloud data of all paths passing through the intersection location information are selected, and then the starting point time of the path corresponding to these road surface point cloud data is determined, and multiple single road surface point cloud data are determined respectively.
[0129] Therefore, according to the intersection location information, the road surface point cloud data collected each time can be identified from the road surface point cloud data corresponding to multiple movement processes, so as to facilitate the determination of the conversion matrix between the road surface point cloud data corresponding to any two single movement processes.
[0130] This involves step 140 .
[0131] Generate texture images based on road surface point cloud data and image data;
[0132] For extreme weather conditions, such as rainy, foggy, and dusty weather, texture images can accurately reflect static objects, so the road point cloud data and image data are fused to generate a texture map of the road elements.
[0133] In a possible embodiment, step 140 may specifically include the following steps:
[0134] Step 310, projecting the road surface point cloud data onto image data corresponding to the coordinate systems of multiple cameras to obtain a first pixel value corresponding to the road surface point cloud data;
[0135] Step 320: reconstruct the first pixel value according to the positioning data to obtain a texture image.
[0136] In step 310, the road point cloud data of the same frame can be segmented for ground fitting. The ground point cloud is interpolated using the result of segmented fitting to form dense ground point cloud data. Segmented fitting is ground point clouds in different spatial intervals, such as from -50 meters to 50 meters, divided into ten segments. Then the dense ground point cloud data is projected into the image data corresponding to the coordinate system of multiple cameras to obtain the first pixel value corresponding to the road point cloud data.
[0137] Specifically, the road surface point cloud data can be projected onto the plane where the camera is located through the internal and external parameters of the sensor and the camera, so that the first pixel value corresponding to the road surface point cloud data can be obtained.
[0138] In step 320, the first pixel value is spliced and rendered according to the positioning data to obtain a texture image.
[0139] In a possible embodiment, step 310 includes:
[0140] In the case where the road surface point cloud data corresponds to multiple coordinate systems, determining a second pixel value corresponding to the image data of the road surface point cloud data in each coordinate system;
[0141] According to the second pixel value corresponding to the image data in each coordinate system, and the first pixel value corresponding to the road point cloud data.
[0142] For the ground point cloud data of the same point, if it can be projected onto different coordinate systems, the second pixel value corresponding to the image data of the road surface point cloud data in each coordinate system is determined.
[0143] Among them, it can be determined whether the ground point cloud data of the same point can be projected into different coordinate systems according to the coordinate system range of the camera.
[0144] According to the second pixel value corresponding to the image data in each coordinate system and the first pixel value corresponding to the road point cloud data, the following steps may be specifically included:
[0145] For the ground point cloud data of the same point, the second pixel value corresponding to the image data of the road surface point cloud data in each coordinate system is averaged to obtain the first pixel value.
[0146] Therefore, the image data collected by multiple camera coordinate systems can be comprehensively considered, and the first pixel value corresponding to the road point cloud data can be determined based on the second pixel value corresponding to the image data in each coordinate system. This can improve the accuracy of the road point cloud data in each coordinate system.
[0147] In a possible embodiment, step 320 includes:
[0148] Subtracting the pixel value of the dynamic object from the first pixel value to obtain a third pixel value;
[0149] The third pixel value is reconstructed according to the positioning data to obtain a texture image.
[0150] Since some ground points projected onto the image are not road surface points on the image, dynamic objects need to be identified.
[0151] Specifically, the dynamic object can be identified through a 3D detection frame, wherein the 3D detection frame can be an external module, and specifically, the bevfusion model can be used for detection.
[0152] By removing the pixel value of the dynamic object from the first pixel value, the pixel value of the dynamic object in different images can be removed to obtain a third pixel value. Therefore, the texture image obtained by reconstructing the third pixel value according to the positioning data will not include the pixel value corresponding to the dynamic object, which is convenient for subsequent marking of the static object in the texture image.
[0153] This involves step 150 .
[0154] Static objects in the reflectivity image and the texture image are annotated according to the positioning data to obtain training sample data.
[0155] Automatically labeling static elements in the reflectivity image and the texture image according to the positioning data can reduce the workload of manual labeling and improve the efficiency of obtaining training sample data.
[0156] In a possible embodiment, step 150 includes:
[0157] According to the positioning data, the reflectivity image and the texture image are divided into a plurality of sub-images, wherein the plurality of sub-images include: a plurality of first sub-images generated based on the reflectivity image and a plurality of second sub-images generated based on the texture image;
[0158] Respectively marking the position information of the static objects in the first sub-image and the second sub-image;
[0159] The static object position information in each sub-image is merged according to the positioning data to obtain the target static element position information;
[0160] The position information of the target static elements is marked on the reflectivity image and the texture image to obtain the training sample data.
[0161] According to the positioning data, the reflectivity image and the texture image are divided into a plurality of sub-images, and the size of each sub-image may be 1000×1000.
[0162] A neural network is then used as an encoder to obtain the feature map of the sub-image, and the decoder is used to annotate the static object position information in the first sub-image and the second sub-image respectively to obtain the instance-level static element position information.
[0163] Static objects include at least one of the following: lane lines, curbs, traffic signs, stop lines, and sidewalks;
[0164] That is to say, model inference is performed on each sub-image obtained by segmentation to obtain the static element position information of a single sub-image, and then the static object position information is spliced according to the positioning data to obtain the target static element position information.
[0165] Finally, the position information of the target static elements is marked on the reflectivity image and the texture image to obtain the training sample data.
[0166] Optionally, before marking the target static element position information on the reflectivity image and the texture image to obtain the training sample data, the method may further include: manually correcting the target static element position information.
[0167] In an embodiment of the present application, by acquiring sample data of a mobile device during movement, the sample data includes: first point cloud data collected by a sensor, positioning data of the sensor, and image data collected by a camera; since the first point cloud data collected includes point cloud data of multiple objects in the actual scene, it is necessary to process the first point cloud data according to the positioning data to obtain road surface point cloud data. Then, the road surface point cloud data is reconstructed according to the positioning data to obtain a reflectivity image. Next, in order to improve the applicability of the training sample data in various scenarios, a texture image is generated based on the road surface point cloud data and image data. The texture image can clearly reflect the scene features in various extreme weather scenarios and improve the applicability of the scene. Finally, the static objects in the reflectivity image and the texture image are annotated to obtain training sample data. Therefore, the training sample data can be used to improve the reasoning accuracy of the reasoning model.
[0168] Based on the above Figure 1 The image processing method shown in the figure, the embodiment of the present application also provides an image processing device, such as Figure 2 As shown, the image processing device 400 may include:
[0169] An acquisition module 410 is used to acquire sample data of the mobile device during movement, wherein the sample data includes: first point cloud data acquired by the sensor, positioning data of the sensor, and image data acquired by the camera;
[0170] A processing module 420, configured to process the first point cloud data according to the positioning data to obtain road surface point cloud data;
[0171] The processing module 420 is further used to reconstruct the road surface point cloud data according to the positioning data to obtain a reflectivity image;
[0172] A generating module 430, configured to generate a texture image according to the road surface point cloud data and the image data;
[0173] The labeling module 440 is used to label the static objects in the reflectivity image and the texture image according to the positioning data to obtain training sample data.
[0174] In a possible embodiment, the processing module 420 is specifically configured to:
[0175] removing point cloud data corresponding to the dynamic object from the first point cloud data to obtain second point cloud data;
[0176] The second point cloud data is processed according to the positioning data to obtain the road surface point cloud data.
[0177] In a possible embodiment, the first point cloud data includes reflectivity, and the processing module 420 is specifically used to:
[0178] Determining a reflectivity associated with the road surface point cloud data from the first point cloud data;
[0179] The road surface point cloud data is reconstructed according to the reflectivity associated with the road surface point cloud data to obtain the reflectivity image.
[0180] In a possible embodiment, the acquisition module 410 is specifically configured to:
[0181] Determining a scene where the mobile device is located;
[0182] When the scene is a preset scene, a plurality of sample data collected by the mobile device during multiple movements are obtained.
[0183] In a possible embodiment, the processing module 420 is specifically configured to:
[0184] Determine a transformation matrix between road surface point cloud data corresponding to any two movement processes;
[0185] splicing the road surface point cloud data corresponding to the multiple movement processes according to the transformation matrix to obtain the road surface point cloud data;
[0186] The road surface point cloud data is reconstructed according to the reflectivity associated with the road surface point cloud data to obtain the reflectivity image.
[0187] In a possible embodiment, the acquisition module 410 is further used to acquire the reference object position information collected during the multiple movement processes;
[0188] The image processing device 400 may include:
[0189] A clustering module, used to cluster the reference object position information obtained by multiple collections to obtain aggregated reference object position information;
[0190] A determination module, used to determine the intersection position information according to the aggregated reference object position information;
[0191] The identification module is used to identify the road surface point cloud data collected each time from the road surface point cloud data corresponding to the multiple movement processes according to the intersection position information.
[0192] In a possible embodiment, the generating module 430 is specifically configured to:
[0193] Projecting the road surface point cloud data onto image data corresponding to the coordinate systems of the plurality of cameras to obtain a first pixel value corresponding to the road surface point cloud data;
[0194] The first pixel value is reconstructed according to the positioning data to obtain the texture image.
[0195] In a possible embodiment, the generating module 430 is specifically configured to:
[0196] In a case where the road surface point cloud data corresponds to a plurality of coordinate systems, determining a second pixel value corresponding to the road surface point cloud data in each of the coordinate systems;
[0197] According to the second pixel value corresponding to each of the coordinate systems, the first pixel value corresponding to the road point cloud data.
[0198] In a possible embodiment, the generating module 430 is specifically configured to:
[0199] Subtracting the pixel value of the dynamic object from the first pixel value to obtain a third pixel value;
[0200] The third pixel value is reconstructed according to the positioning data to obtain the texture image.
[0201] In a possible embodiment, the marking module 440 is specifically configured to:
[0202] According to the positioning data, the reflectivity image and the texture image are divided into a plurality of sub-images, wherein the plurality of sub-images include: a plurality of first sub-images generated based on the reflectivity image and a plurality of second sub-images generated based on the texture image;
[0203] Respectively marking the position information of static objects in the first sub-image and the second sub-image;
[0204] Merging the static object position information in each of the sub-images according to the positioning data to obtain the target static element position information;
[0205] The target static element position information is marked on the reflectivity image and the texture image to obtain the training sample data.
[0206] In an embodiment of the present application, by acquiring sample data of a mobile device during movement, the sample data includes: first point cloud data collected by a sensor, positioning data of the sensor, and image data collected by a camera; since the first point cloud data collected includes point cloud data of multiple objects in the actual scene, it is necessary to process the first point cloud data according to the positioning data to obtain road surface point cloud data. Then, the road surface point cloud data is reconstructed according to the positioning data to obtain a reflectivity image. Next, in order to improve the applicability of the training sample data in various scenarios, a texture image is generated based on the road surface point cloud data and image data. The texture image can clearly reflect the scene features in various extreme weather scenarios and improve the applicability of the scene. Finally, the reflectivity image and the texture image are automatically annotated to obtain the training sample data. Therefore, the training sample data can be used to improve the reasoning accuracy of the reasoning model.
[0207] Figure 5 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.
[0208] The electronic device may include a processor 501 and a memory 502 storing computer program instructions.
[0209] Specifically, the processor 501 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0210] The memory 502 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 502 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 502 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 502 is a non-volatile solid-state memory. In a specific embodiment, the memory 502 includes a read-only memory (ROM). In appropriate cases, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.
[0211] The processor 501 implements any one of the image processing methods in the embodiments shown in the figures by reading and executing the computer program instructions stored in the memory 502 .
[0212] In one example, the electronic device may further include a communication interface 505 and a bus 510. Figure 5 As shown, the processor 501, the memory 502, and the communication interface 505 are connected via a bus 510 and communicate with each other.
[0213] The communication interface 505 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0214] Bus 510 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 510 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0215] The electronic device can execute the image processing method in the embodiment of the present application, thereby realizing the combination Figure 2 Describe the image processing method.
[0216] In addition, in combination with the image processing method in the above embodiment, the embodiment of the present application can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, the Figure 1 image processing method.
[0217] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0218] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0219] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0220] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. An image processing method, characterized in that: The method comprises: Acquire sample data of the mobile device during movement, the sample data including: first point cloud data collected by the sensor, positioning data of the sensor, and image data collected by the camera; Processing the first point cloud data according to the positioning data to obtain road surface point cloud data; Reconstructing the road surface point cloud data according to the positioning data to obtain a reflectivity image; Generate a texture image according to the road surface point cloud data and the image data; Static objects in the reflectivity image and the texture image are annotated according to the positioning data to obtain training sample data.
2. The method according to claim 1, characterized in that The step of processing the first point cloud data according to the positioning data to obtain road point cloud data includes: removing point cloud data corresponding to the dynamic object from the first point cloud data to obtain second point cloud data; The second point cloud data is processed according to the positioning data to obtain the road surface point cloud data.
3. The method according to claim 1 or 2, characterized in that: The first point cloud data includes reflectivity, and the reconstructing the road surface point cloud data according to the positioning data to obtain a reflectivity image includes: Determining a reflectivity associated with the road surface point cloud data from the first point cloud data; The road surface point cloud data is reconstructed according to the reflectivity associated with the road surface point cloud data to obtain the reflectivity image.
4. The method according to claim 1, characterized in that The obtaining of a plurality of sample data of the mobile device during movement includes: Determining a scene where the mobile device is located; When the scene is a preset scene, a plurality of sample data collected by the mobile device during multiple movements are obtained.
5. The method according to claim 4, characterized in that The reconstructing the road surface point cloud data according to the positioning data to obtain a reflectivity image includes: Determine a transformation matrix between road surface point cloud data corresponding to any two movement processes; splicing the road surface point cloud data corresponding to the multiple movement processes according to the transformation matrix to obtain the road surface point cloud data; The road surface point cloud data is reconstructed according to the reflectivity associated with the road surface point cloud data to obtain the reflectivity image.
6. The method according to claim 5, characterized in that Before determining the transformation matrix between the road surface point cloud data corresponding to any two movement processes, the method further includes: Acquire the reference object position information collected during the multiple movement processes; Clustering the reference object position information collected multiple times to obtain aggregated reference object position information; Determine the intersection location information according to the aggregated reference object location information; According to the intersection position information, the road surface point cloud data collected each time is identified from the road surface point cloud data corresponding to the multiple movement processes.
7. The method according to claim 1, characterized in that Generating a texture image according to the road surface point cloud data and the image data comprises: Projecting the road surface point cloud data onto image data corresponding to the coordinate systems of the plurality of cameras to obtain a first pixel value corresponding to the road surface point cloud data; The first pixel value is reconstructed according to the positioning data to obtain the texture image.
8. The method according to claim 7, characterized in that The step of projecting the road surface point cloud data onto the image data corresponding to the coordinate systems of the plurality of cameras to obtain first pixel values respectively corresponding to the road surface point cloud data includes: In a case where the road surface point cloud data corresponds to a plurality of coordinate systems, determining a second pixel value corresponding to the road surface point cloud data in each of the coordinate systems; According to the second pixel value corresponding to each of the coordinate systems, the first pixel value corresponding to the road point cloud data.
9. The method according to claim 7 or 8, characterized in that: The step of reconstructing the first pixel value according to the positioning data to obtain the texture image includes: Subtracting the pixel value of the dynamic object from the first pixel value to obtain a third pixel value; The third pixel value is reconstructed according to the positioning data to obtain the texture image.
10. The method according to claim 1, characterized in that The step of labeling static objects in the reflectivity image and the texture image according to the positioning data to obtain training sample data includes: According to the positioning data, the reflectivity image and the texture image are divided into a plurality of sub-images, wherein the plurality of sub-images include: a plurality of first sub-images generated based on the reflectivity image and a plurality of second sub-images generated based on the texture image; Respectively marking the position information of static objects in the first sub-image and the second sub-image; Merging the static object position information in each of the sub-images according to the positioning data to obtain the target static element position information; The target static element position information is marked on the reflectivity image and the texture image to obtain the training sample data.
11. An image processing device, characterized in that: The image processing device comprises: An acquisition module, used to acquire sample data of the mobile device during movement, wherein the sample data includes: first point cloud data acquired by the sensor, positioning data of the sensor, and image data acquired by the camera; A processing module, used for processing the first point cloud data according to the positioning data to obtain road surface point cloud data; The processing module is further used to reconstruct the road surface point cloud data according to the positioning data to obtain a reflectivity image; A generating module, used for generating a texture image according to the road surface point cloud data and the image data; The labeling module is used to label the static objects in the reflectivity image and the texture image according to the positioning data to obtain training sample data.
12. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the image processing method according to any one of claims 1 to 10 is implemented.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the image processing method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Lane line generation method and device
CN109598199A
Target object labeling method and device
CN110598743A
Point cloud data labeling method, labeling system and controller
CN116503861A
Data labeling method and device, electronic equipment and storage medium
CN116597122A
Image joint annotation method, computer equipment and medium
CN117557999A
Cited By
Visual lofting algorithm and GNSS integrated navigation system based on image matching
CN119413181A
