A dynamic point cloud coloring method and system for autonomous driving vehicles
The point cloud compensation method of the inertial measurement unit realizes time synchronization of point clouds and photos in autonomous vehicles, solves the color deviation problem when point cloud dyeing in vehicle motion environments, and improves the point cloud dyeing effect.
Patent Information
- Application Number
- CN202210215615.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-07
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-03-07
AI Technical Summary
In a vehicle-mounted sports environment, in the point cloud dyeing method, the point collection time is inconsistent, resulting in color deviation and point cloud distortion. The existing technology lacks an effective method to synchronize photos and point clouds at all times.
The inertial measurement unit is used to collect speed and angular velocity in real time, and the point cloud compensation algorithm is used to synchronize the laser point cloud to the photo collection time to achieve time consistency between the point cloud and the photo. The conversion matrix is used to perform point cloud dyeing operations to obtain colored point clouds.
It effectively maintains the time consistency between point clouds and photos under motion, reduces point cloud coloring distortion, realizes soft synchronization of point clouds and photos, and improves the point cloud coloring effect.
Smart Images

Figure CN114627235B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of point cloud coloring, and in particular to a dynamic point cloud coloring method and system applied to an autonomous driving vehicle. Background Art
[0002] In outdoor environments, projection is a traditional method of point cloud coloring. This method combines lidar and camera to add the color information on the photo to the laser point cloud through coordinate system transformation to obtain a colored point cloud.
[0003] The technology for obtaining color point clouds is not suitable for use in moving environments because the point cloud collection time is inconsistent due to the movement, which leads to color deviation in the fusion process of photos and point clouds, causing point cloud coloring distortion.
[0004] The existing technology uses point cloud compensation methods to compensate for point cloud distortion. Because point cloud generation is collected point by point, the points on the point cloud are not all obtained at the same time. Point cloud compensation is to normalize all points on the point cloud to a time. The existing technology is only used to synchronize all points of the laser radar point cloud without combining color information. The existing technology lacks a method for directly synchronizing the time of photos and point clouds in motion.
[0005] The disclosure of the above background technology content is only used to assist in understanding the concept and technical solution of the present invention. It does not necessarily belong to the prior art of this patent application. In the absence of clear evidence that the above content has been disclosed on the filing date of this patent application, the above background technology should not be used to evaluate the novelty and creativity of the present application. Summary of the invention
[0006] In order to solve the existing problems, the present invention provides a dynamic point cloud coloring method and system applied to an autonomous driving vehicle.
[0007] In order to solve the above problems, the technical solution adopted by the present invention is as follows:
[0008] A dynamic point cloud coloring method for an autonomous driving vehicle comprises the following steps: S1: collecting data, specifically comprising: using a photo collection unit to collect a photo of an external environment and obtaining a first time t of collecting the photo; using a point cloud collection unit to collect a laser point cloud set C of the external environment, and obtaining an initial time t0 of collecting the laser point cloud set and a collection period T of collecting the laser point cloud set; the inertial measurement unit collects its own speed in real time, the speed including a linear speed obtained by integration and an angular speed obtained by direct measurement; obtaining the inertial measurement unit and the point cloud collection unit. A first conversion matrix T1, and a second conversion matrix T2 of the point cloud acquisition unit and the photo acquisition unit; S2: obtaining the linear velocity v and angular velocity w of the point cloud acquisition unit based on the first conversion matrix T1 and the linear velocity and angular velocity acquired by the inertial measurement unit; S3: normalizing the laser point cloud set C to the first moment through the linear velocity v and angular velocity w of the point cloud acquisition unit through a point cloud compensation algorithm to obtain a synchronized laser point cloud set C0; S4: performing a point cloud coloring operation on the fusion of the photo and the synchronized laser point cloud set C0 based on the second conversion matrix to obtain a colored point cloud.
[0009] Preferably, obtaining the synchronized laser point cloud set C0 comprises the following steps: S31: obtaining the collection time of any laser point on the laser point cloud set C by calculating the angle relationship; S32: fitting the collection times of all the laser points on the laser point cloud set C to the points at the first time t in sequence through spatial changes to obtain the synchronized laser point cloud set C0.
[0010] Preferably, within the acquisition cycle T of the point cloud acquisition unit, assuming that the motion of the autonomous driving vehicle is uniform motion, any laser point P on the laser point cloud set C has coordinates p (x, y, z), the time when acquisition starts is t0, and the scanning angle is 360°. The acquisition time t1 of point P is calculated by the following formula:
[0011]
[0012] Preferably, according to the uniform motion, the time at which point P is collected is fitted to the first time t through spatial variation, including: obtaining the first laser point P1 through rotation variation, the formula is as follows:
[0013] p1=R(w*(t1-t))*p
[0014] Wherein, R(.) represents the conversion of a vector into a rotation matrix, w is the angular velocity calculated by the point cloud acquisition unit, p1 is the coordinate of the first laser point P1, and p is the coordinate of the laser point P;
[0015] The second laser point P2 is obtained by translation of the first laser point P1, and the formula is as follows:
[0016] p2=p1+v*(t1-t)
[0017] Wherein, v is the linear velocity calculated by the point cloud acquisition unit, and p2 is the coordinate of the second laser point P2;
[0018] According to the above steps, the points converted to the first time t are acquired in sequence to form the synchronous laser point cloud set C0.
[0019] Preferably, the laser point cloud set C1 is processed to obtain a laser point cloud set C3 located on the photo plane, comprising the following steps: the acquired synchronous laser point cloud set C0 is transformed from the point cloud acquisition unit coordinate system to the camera coordinate system through the second transformation matrix T2 to obtain the first laser point cloud set C1 after the transformed coordinate system; the points at the negative pole of the z-coordinate axis of the camera coordinate system in the laser point cloud set C1 are removed to obtain the second laser point cloud set C2 at the positive pole of the z-coordinate axis; the second laser point cloud set C2 is spatially projected to obtain a third laser point cloud set C3 located on the photo plane.
[0020] Preferably, obtaining the colored point cloud comprises the following steps: acquiring color information of each laser point in the third laser point cloud set C3 located on the photo plane; adding the color information to the second laser point cloud set C2 and eliminating laser points without color to obtain a fourth laser point cloud set C4; performing a coordinate system transformation according to the fourth laser point cloud set C4 by the inverse of the second transformation matrix T2, transforming from the camera coordinate system to the point cloud acquisition unit coordinate system, to obtain the colored point cloud after the transformed coordinate system.
[0021] Preferably, the color information of each laser point in the third laser point cloud set C3 located on the photo plane is obtained by using a nearest neighbor method or a bicubic interpolation method.
[0022] The present invention provides a dynamic point cloud coloring system for an autonomous driving vehicle, which is used to implement any of the methods described above, including a photo acquisition unit, a point cloud acquisition unit, an inertial measurement unit, a synchronization time unit, a point cloud coloring unit, and a result output unit. The photo acquisition unit is used to acquire a photo of an external environment and transmit the photo and the first moment of acquiring the photo to the synchronization time unit; the point cloud acquisition unit is used to acquire a laser point cloud set of the external environment and transmit the laser point cloud set and the starting moment and acquisition period of acquiring the laser point cloud set to the synchronization time unit; the inertial measurement unit is used to acquire its own speed in real time, including linear speed and angular speed; the synchronization time unit is used to The speed of the point cloud acquisition unit, including the linear speed and the angular speed, is acquired based on the first conversion matrix between the inertial measurement unit and the point cloud acquisition unit and the linear speed and the angular speed acquired by the inertial measurement unit; the synchronous point cloud of the laser point cloud set is acquired based on the first moment and the starting moment and the acquisition period of acquiring the laser point cloud set; the point cloud coloring unit is used to normalize the linear speed and the angular speed of the laser point cloud through the point cloud acquisition unit to the first moment using a point cloud compensation algorithm to acquire a synchronous laser point cloud set; based on the second conversion matrix, a point cloud coloring operation is performed to fuse the photo and the synchronous laser point cloud set to obtain a colored point cloud; the result output unit outputs the colored point cloud.
[0023] Preferably, the photo acquisition unit is a camera, the point cloud acquisition unit is a laser radar, the inertial measurement unit is a vehicle-mounted IMU device, the synchronization time unit and the point cloud coloring unit are the central processing unit of the vehicle-mounted computer, and the result output unit is a display screen.
[0024] The present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0025] The beneficial effects of the present invention are: providing a dynamic point cloud coloring method and system for autonomous driving vehicles, which uses an inertial measurement unit to use a point cloud compensation method to achieve synchronization between point clouds and photos, thereby maintaining the time consistency between the point cloud and the photo when the point cloud is colored in motion to achieve point cloud distortion compensation, so that the point cloud and the photo can achieve soft synchronization. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 is a schematic diagram of a dynamic point cloud coloring method applied to an autonomous driving vehicle in an embodiment of the present invention.
[0027] Figure 2 Schematic diagram of a method for obtaining the synchronized laser point cloud set C0 in an embodiment of the present invention.
[0028] Figure 3 Schematic diagram of point cloud compensation in an embodiment of the present invention.
[0029] Figure 4 2 is a schematic diagram of a method for processing the laser point cloud set C1 to obtain the laser point cloud set C3 located on the photo plane in an embodiment of the present invention.
[0030] Figure 5 Schematic diagram of a method for obtaining the colored point cloud in an embodiment of the present invention.
[0031] Figure 6 is a schematic diagram of a dynamic point cloud coloring system applied to an autonomous driving vehicle in an embodiment of the present invention.
[0032] Figure 7 It is a schematic diagram of a dynamic point cloud coloring process applied to an autonomous driving vehicle in an embodiment of the present invention.
[0033] Figure 8 Schematic diagram of a photo in an embodiment of the present invention.
[0034] Fig. 9 Schematic diagram of a laser point cloud set in an embodiment of the present invention.
[0035] Fig.10 Schematic diagram of synchronous laser point cloud collection in an embodiment of the present invention.
[0036] Fig.11 Schematic diagram of a second laser point cloud set in an embodiment of the present invention.
[0037] Fig.12 Schematic diagram of a third laser point cloud set in an embodiment of the present invention.
[0038] Fig.13 Schematic diagram of a fourth laser point cloud in an embodiment of the present invention.
[0039] Fig.14 is a schematic diagram of a fifth laser point cloud set in an embodiment of the present invention.
[0040] Fig.15 4 is a schematic diagram of a fifth laser point cloud according to an embodiment of the present invention. DETAILED DESCRIPTION
[0041] In order to make the technical problems, technical solutions and beneficial effects to be solved by the embodiments of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0042] It should be noted that when a component is referred to as being "fixed to" or "disposed on" another component, it can be directly on the other component or indirectly on the other component. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element. In addition, connection can be used for both fixing and circuit connection.
[0043] It should be understood that the orientation or position relationship indicated by terms such as "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the embodiments of the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0044] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0045] In the prior art, the fusion of camera and laser radar is usually obtained by collecting data under static conditions. At this time, all points of the laser radar can be regarded as the same moment. However, when collecting laser point cloud data under moving conditions, the laser radar receiver will change its position over time, that is, the position of the collected laser points will be offset, and it is impossible to synchronize with the photo collection time. Therefore, the present invention proposes a method of using point cloud motion compensation to achieve time synchronization between photos and laser radar. At the same time, a point cloud coloring system is built based on this method to achieve the fusion of inertial measurement unit, laser radar, and camera data.
[0046] like Figure 1 As shown, the present invention provides a dynamic point cloud coloring method applied to an autonomous driving vehicle, comprising the following steps:
[0047] S1: Collecting data, specifically including: using a photo acquisition unit to collect photos of the external environment and obtaining the first time t of collecting the photos; using a point cloud acquisition unit to collect a laser point cloud set C of the external environment, and obtaining the initial time t0 of the laser point cloud set collection and the collection period T of the laser point cloud set collection; the inertial measurement unit collects its own speed in real time, and the speed includes the linear speed obtained by integration and the angular speed obtained by direct measurement; obtaining a first conversion matrix T1 between the inertial measurement unit and the point cloud acquisition unit, and a second conversion matrix T2 between the point cloud acquisition unit and the photo acquisition unit;
[0048] S2: Acquire the linear velocity v and angular velocity w of the point cloud acquisition unit based on the first conversion matrix T1 and the linear velocity and angular velocity acquired by the inertial measurement unit;
[0049] S3: The linear velocity v and the angular velocity w of the laser point cloud set C passing through the point cloud acquisition unit are normalized to the first moment through a point cloud compensation algorithm to obtain a synchronous laser point cloud set C0;
[0050] S4: performing a point cloud coloring operation on the fusion of the photo and the synchronized laser point cloud set C0 based on the second transformation matrix to obtain a colored point cloud.
[0051] The present invention uses an inertial measurement unit and a point cloud compensation method to achieve synchronization between point clouds and photos, thereby maintaining the time consistency between the point cloud and the photo when the point cloud is dyed in motion to achieve point cloud distortion compensation, so that the point cloud and the photo can achieve soft synchronization, solving the problem of distortion of point cloud dyeing in the projection method when the carrier is moving.
[0052] Furthermore, the present invention achieves a relatively good point cloud coloring effect by coloring the synchronous laser point cloud, and can be applied to autonomous driving vehicles to realize the function of real-time point cloud coloring.
[0053] It is understandable that a photo acquisition unit, a point cloud acquisition unit and an inertial measurement unit are generally provided in an autonomous driving vehicle. The present invention provides a dynamic point cloud coloring method applied to an autonomous driving vehicle based on the existing hardware of the autonomous driving vehicle.
[0054] like Figure 2 As shown, obtaining the synchronized laser point cloud set C0 includes the following steps:
[0055] S31: Obtaining the collection time of any laser point on the laser point cloud set C through angle relationship calculation;
[0056] S32: sequentially fitting the moments of acquisition of all the laser points on the laser point cloud set C to the points at the first moment t through spatial variation to obtain the synchronized laser point cloud set C0.
[0057] The present invention synchronizes the point cloud in the laser point cloud set collected by the point cloud collection unit of the external environment to the first moment when the photo collection unit collects the photo of the external environment to obtain the synchronized laser point cloud set C0 to achieve synchronization of the point cloud and the photo.
[0058] Specifically, since the laser radar collects data point by point, the points on the point cloud collected are not at the same time. In the case of motion, the collection position of each point changes. The point cloud at the same time can be obtained through the point cloud compensation method.
[0059] like Figure 3 As shown, in one embodiment of the present invention, within the acquisition period T of the point cloud acquisition unit, assuming that the motion of the autonomous driving vehicle is uniform motion, any laser point P on the laser point cloud set C has coordinates p (x, y, z), the time of starting acquisition is t0, the scanning angle is 360°, and the acquisition time t1 of point P is calculated by the following formula:
[0060]
[0061] According to the uniform motion, the time of point P acquisition is fitted to the first time t through spatial variation, including:
[0062] After the rotation change, the first laser point P1 is obtained, and the formula is as follows:
[0063] p1=R(w*(t1-t))*p
[0064] Wherein, R(.) represents the conversion of a vector into a rotation matrix, w is the angular velocity calculated by the point cloud acquisition unit, p1 is the coordinate of the first laser point P1, and p is the coordinate of the laser point P;
[0065] The second laser point P2 is obtained by translation of the first laser point P1, and the formula is as follows:
[0066] p2=p1+v*(t1-t)
[0067] Wherein, v is the linear velocity calculated by the point cloud acquisition unit, and p2 is the coordinate of the second laser point P2;
[0068] According to the above steps, the points converted to the first time t are acquired in sequence to form the synchronous laser point cloud set C0.
[0069] Photos only need to be collected once to have photos, and laser point clouds are formed by the return of projected points. There are many laser points in a point cloud, and the emission time of these laser points is gradually emitted. It takes a cycle to form a point cloud, that is, it can only be formed by continuously collecting laser points emitted in a cycle. Therefore, the point cloud of the autonomous driving vehicle is displaced during the movement because the laser point cloud and the photo acquisition time are inconsistent. If point cloud compensation is not used to correct to the camera moment, the points on the point cloud will not all correspond to the points at the camera moment, and the dyeing effect will be poor. The present invention adopts the method of point cloud motion compensation to achieve the time synchronization of photos and laser point clouds, maintains the time consistency of point clouds and photos when dyeing point clouds in motion, and solves the problem of distortion of projection point cloud dyeing when the carrier is moving.
[0070] like Figure 4 As shown, the laser point cloud set C1 is processed to obtain the laser point cloud set C3 located on the photo plane, including the following steps:
[0071] The acquired synchronized laser point cloud set C0 is transformed from the point cloud acquisition unit coordinate system to the camera coordinate system through the second transformation matrix T2 to obtain a first laser point cloud set C1 after the transformed coordinate system;
[0072] The points at the negative pole of the z-coordinate axis of the camera coordinate system are removed from the laser point cloud set C1 to obtain a second laser point cloud set C2 at the positive pole of the z-coordinate axis;
[0073] The second laser point cloud set C2 is spatially projected to obtain a third laser point cloud set C3 located on the photo plane.
[0074] Because the laser point cloud is 360° data, when projected onto the photo plane, the photo is just a plane, so during the projection process, both positive point clouds are projected into it, but negative point clouds are also projected onto the plane. However, the negative point cloud projection is unreasonable, so it needs to be deleted.
[0075] like Figure 5 As shown, obtaining the colored point cloud includes the following steps:
[0076] Acquire color information of each laser point in the third laser point cloud set C3 located on the photo plane;
[0077] Adding the color information to the second laser point cloud set C2 and eliminating laser points without color to obtain a fourth laser point cloud set C4;
[0078] A coordinate system transformation is performed according to the fourth laser point cloud set C4 through the inverse of the second transformation matrix T2, from the camera coordinate system to the point cloud acquisition unit coordinate system, to obtain the color point cloud after the coordinate system transformation.
[0079] In one embodiment of the present invention, the nearest neighbor method is used to obtain the color information of each laser point located on the photo plane. Since the pixel coordinates are all integers, but the laser points projected onto the photo are non-integers, the pixel point closest to the laser point is determined according to the rounding method, and the RGB information of the pixel point is attached to the laser point.
[0080] In another embodiment of the present invention, a bicubic interpolation method is used to obtain the color information of each laser point in the third laser point cloud set C3 located on the photo plane, and the color information of the surrounding pixels is fully utilized and applied to point cloud coloring. The point cloud input unit and the photo input unit are fused to fit the color of the point cloud, reduce color errors, and realize the function of point cloud coloring.
[0081] The above point cloud coloring method achieves a relatively good point cloud coloring effect and can be applied to autonomous driving vehicles to realize the function of real-time point cloud coloring.
[0082] It is understandable that other point cloud coloring methods in the prior art may also be used.
[0083] like Figure 6 As shown, the present invention also provides a dynamic point cloud coloring system for an autonomous driving vehicle, which is used to implement any of the above methods, including a photo acquisition unit, a point cloud acquisition unit, an inertial measurement unit, a synchronization time unit, a point cloud coloring unit, and a result output unit.
[0084] The photo collection unit is used to collect photos of the external environment and transmit the photos and the first time of collecting the photos to the synchronization time unit;
[0085] The point cloud acquisition unit is used to acquire the laser point cloud set of the external environment and transmit the laser point cloud set, the starting time of acquiring the laser point cloud set, and the acquisition period to the synchronization time unit;
[0086] The inertial measurement unit is used to collect its own speed in real time, including linear speed and angular speed;
[0087] The synchronization time unit is used to obtain the speed of the point cloud acquisition unit, including the linear speed and the angular speed, based on the first conversion matrix between the inertial measurement unit and the point cloud acquisition unit and the linear speed and the angular speed acquired by the inertial measurement unit; and obtain the synchronized point cloud of the laser point cloud set based on the first moment and the starting moment and the acquisition period of the laser point cloud set;
[0088] The point cloud coloring unit is used to normalize the linear velocity and angular velocity of the laser point cloud passing through the point cloud acquisition unit to the first moment using a point cloud compensation algorithm to obtain a synchronized laser point cloud set; and perform a point cloud coloring operation on the fusion of the photo and the synchronized laser point cloud set based on the second conversion matrix to obtain a colored point cloud;
[0089] The result output unit outputs the color point cloud.
[0090] In a specific embodiment, the photo acquisition unit is a camera, the point cloud acquisition unit is a laser radar, the inertial measurement unit is an IMU device, the synchronization time unit and the point cloud coloring unit are the central processing unit of the vehicle-mounted computer, and the result output unit is a display screen. Specifically, the camera model is FL2-14S3C-C; the specific model of the laser radar is Velodyne HDL-64E; the IMU device is a vehicle-mounted IMU device; the central processing unit is the vehicle-mounted computer CPU; and the display screen is Huawei MATE View.
[0091] The method and system of the present invention, when an autonomous driving vehicle is moving, utilizes the principle of point cloud compensation to use IMU data to achieve time synchronization (time calibration) between photos and point clouds, and utilizes the spatial projection method to achieve spatial synchronization (coloring) between photos and point clouds, thereby realizing a point cloud coloring method under the fusion of camera, IMU, and lidar.
[0092] like Figure 7 As shown, the following experiments are carried out, specifically:
[0093] 1. Input the collected laser point cloud set C, photo P and time t, IMU linear velocity and angular velocity, the first conversion matrix T1 between the inertial measurement unit and the point cloud acquisition unit, and the second conversion matrix T2 between the point cloud acquisition unit and the photo acquisition unit;
[0094] like Figure 8 , which is a schematic diagram of a photo in an embodiment of the present invention.
[0095] like Fig. 9 , which is a schematic diagram of a laser point cloud set in an embodiment of the present invention.
[0096] 2. According to the first transfer matrix T1, the linear velocity and angular velocity information measured by the IMU device is converted from the IMU coordinate system to the lidar coordinate system to obtain the linear velocity and angular velocity information of the lidar.
[0097] 3. The linear velocity and angular velocity information of the acquired laser point cloud set C calculated in step 2 are normalized to the first time t of the photo acquisition using the point cloud compensation algorithm to obtain the synchronized laser point cloud set C0:
[0098] like Fig.10 , which is a schematic diagram of a synchronous laser point cloud collection in an embodiment of the present invention.
[0099] 4. The acquired synchronous laser point cloud set C0 is transformed into a coordinate system through the transformation matrix T2, from the laser radar coordinate system to the camera coordinate system, and the first laser point cloud set C1 after the coordinate system transformation is obtained;
[0100] 5. Remove the point cloud at the negative pole of the z coordinate axis from the first laser point cloud set C1 to obtain the second laser point cloud set C2 at the positive pole of the z coordinate axis;
[0101] like Fig.11 , which is a schematic diagram of a second laser point cloud set in an embodiment of the present invention.
[0102] 6. Project the second laser point cloud set C2 onto the plane of the photo P by a projection method to form a third laser point cloud set C3 located on the plane of the photo;
[0103] like Fig.12 , which is a schematic diagram of a third laser point cloud set in an embodiment of the present invention.
[0104] 7. Use the nearest neighbor method or bicubic interpolation method to obtain the color information of each laser point on the photo plane. Since the pixel coordinates are all integers, but the laser points projected onto the photo are non-integers, the pixel closest to the laser point is determined by rounding, and the RGB information of the pixel is attached to the laser point.
[0105] 8. According to the obtained color information of each laser point on the third laser point cloud set C3, it is added to the laser point cloud set C2, and the laser points without color are eliminated, so as to finally obtain the laser point cloud set C4.
[0106] like Fig.13 , which is a schematic diagram of a fourth laser point cloud set in an embodiment of the present invention.
[0107] 9. According to the fourth laser point cloud set C4, a coordinate system transformation is performed through the inverse of the transformation matrix T2, from the camera coordinate system to the laser radar coordinate system, to obtain a fifth laser point cloud set C5 after the coordinate system transformation.
[0108] like Fig.14 , which is a schematic diagram of a fifth laser point cloud set in an embodiment of the present invention.
[0109] like Fig.15 , which is a schematic diagram of a fifth laser point cloud set in an embodiment of the present invention.
[0110] 10. Finally, the color laser point cloud set C5 is output and the algorithm process ends.
[0111] An embodiment of the present application also provides a control device, including a processor and a storage medium for storing a computer program; wherein the processor is used to execute at least the method described above when executing the computer program.
[0112] An embodiment of the present application also provides a storage medium for storing a computer program, which at least performs the method described above when executed.
[0113] An embodiment of the present application further provides a processor, which executes a computer program and at least performs the method described above.
[0114] The storage medium may be implemented by any type of volatile or non-volatile storage device, or a combination thereof. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAMEnhanced Synchronous Dynamic Random Access Memory), synchronous link dynamic random access memory (SLDRAM), direct memory bus random access memory (DRRAM). The storage media described in the embodiments of the present invention are intended to include, but are not limited to, these and any other suitable types of memory.
[0115] In the several embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0116] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
[0117] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0118] A person skilled in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), disks or optical disks, etc. Various media that can store program codes.
[0119] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.
[0120] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0121] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0122] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0123] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For those skilled in the art of the present invention, several equivalent substitutions or obvious variations can be made without departing from the concept of the present invention, and the performance or use is the same, which should be regarded as belonging to the protection scope of the present invention.
Claims
1. A dynamic point cloud coloring method applied to an autonomous driving vehicle, characterized in that: The steps include: S1: Collecting data, specifically including: using a photo acquisition unit to collect photos of the external environment and obtaining the first time t of collecting the photos; using a point cloud acquisition unit to collect a laser point cloud set C of the external environment, and obtaining the initial time t0 of the laser point cloud set collection and the collection period T of the laser point cloud set collection; the inertial measurement unit collects its own speed in real time, and the speed includes the linear speed obtained by integration and the angular speed obtained by direct measurement; obtaining a first conversion matrix T1 between the inertial measurement unit and the point cloud acquisition unit, and a second conversion matrix T2 between the point cloud acquisition unit and the photo acquisition unit; S2: Acquire the linear velocity v and angular velocity w of the point cloud acquisition unit based on the first conversion matrix T1 and the linear velocity and angular velocity acquired by the inertial measurement unit; S3: The linear velocity v and the angular velocity w of the laser point cloud set C passing through the point cloud acquisition unit are normalized to the first moment through a point cloud compensation algorithm to obtain a synchronous laser point cloud set C0; S4: performing a point cloud coloring operation on the fused photo and the synchronized laser point cloud set C0 based on the second transformation matrix T2 to obtain a colored point cloud; Acquiring the synchronized laser point cloud set C0 comprises the following steps: S31: Obtaining the collection time of any laser point on the laser point cloud set C through angle relationship calculation; S32: sequentially fitting the moments of acquisition of all laser points on the laser point cloud set C to the points at the first moment t through spatial variation to obtain the synchronized laser point cloud set C0; Step S1 also includes, within the acquisition period T of the point cloud acquisition unit, assuming that the motion of the autonomous driving vehicle is uniform motion, any laser point P on the laser point cloud set C, whose coordinates are p (x, y, z), the time of starting acquisition is t0, the scanning angle is 360°, and the acquisition time t1 of point P is calculated by the following formula: Step S3 specifically includes: After the rotation change, the first laser point P1 is obtained, and the formula is as follows: p1=R(w*(t1-t))*p Wherein, R(.) represents the conversion of a vector into a rotation matrix, w is the angular velocity calculated by the point cloud acquisition unit, p1 is the coordinate of the first laser point P1, and p is the coordinate of the laser point P; The second laser point P2 is obtained by translation of the first laser point P1, and the formula is as follows: p2=p1+v*(t1-t) Wherein, v is the linear velocity calculated by the point cloud acquisition unit, and p2 is the coordinate of the second laser point P2; According to the above steps, the points converted to the first time t are obtained in sequence to form the synchronized laser point cloud set C0; Step S4 also includes: The acquired synchronized laser point cloud set C0 is transformed from the point cloud acquisition unit coordinate system to the camera coordinate system through the second transformation matrix T2 to obtain a first laser point cloud set C1 after the transformed coordinate system; The points at the negative pole of the z-coordinate axis of the camera coordinate system are removed from the laser point cloud set C1 to obtain a second laser point cloud set C2 at the positive pole of the z-coordinate axis; Performing spatial projection processing on the second laser point cloud set C2 to obtain a third laser point cloud set C3 located on the photo plane; Acquire color information of each laser point in the third laser point cloud set C3 located on the photo plane; Adding the color information to the second laser point cloud set C2 and eliminating laser points without color to obtain a fourth laser point cloud set C4; A coordinate system transformation is performed according to the fourth laser point cloud set C4 through the inverse of the second transformation matrix T2, from the camera coordinate system to the point cloud acquisition unit coordinate system, to obtain the color point cloud after the coordinate system transformation.
2. The dynamic point cloud coloring method for an autonomous driving vehicle according to claim 1, characterized in that: The color information of each laser point in the third laser point cloud set C3 located on the photo plane is obtained by using the nearest neighbor method or the bicubic interpolation method.
3. A dynamic point cloud coloring system applied to an autonomous driving vehicle, characterized in that: Used to implement the method according to any one of claims 1-2, comprising a photo acquisition unit, a point cloud acquisition unit, an inertial measurement unit, a synchronization time unit, a point cloud coloring unit, and a result output unit, The photo collection unit is used to collect photos of the external environment and transmit the photos and the first time of collecting the photos to the synchronization time unit; The point cloud acquisition unit is used to acquire the laser point cloud set of the external environment and transmit the laser point cloud set, the starting time of acquiring the laser point cloud set, and the acquisition period to the synchronization time unit; The inertial measurement unit is used to collect its own velocity in real time, including linear velocity obtained by integration and angular velocity obtained by direct measurement; The synchronization time unit is used to obtain the speed of the point cloud acquisition unit, including the linear speed and the angular speed, based on the first conversion matrix between the inertial measurement unit and the point cloud acquisition unit and the linear speed and the angular speed acquired by the inertial measurement unit; and obtain the synchronized point cloud of the laser point cloud set based on the first moment and the starting moment and the acquisition period of the laser point cloud set; The point cloud coloring unit is used to normalize the linear velocity and angular velocity of the laser point cloud passing through the point cloud acquisition unit to the first moment using a point cloud compensation algorithm to obtain a synchronized laser point cloud set; and perform a point cloud coloring operation on the fusion of the photo and the synchronized laser point cloud set based on the second conversion matrix to obtain a colored point cloud; The result output unit outputs the color point cloud.
4. The dynamic point cloud coloring system for an autonomous driving vehicle according to claim 3, characterized in that: The photo acquisition unit is a camera, the point cloud acquisition unit is a laser radar, the inertial measurement unit is a vehicle-mounted IMU device, the synchronization time unit and the point cloud coloring unit are the central processing unit of the vehicle-mounted computer, and the result output unit is a display screen.
5. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 2 are implemented.
Citation Information
Patent Citations
Data processing method, device, system and computer readable storage medium
CN110517209A
Motion compensation method and apparatus applicable to laser point cloud data
US20180074176A1
