Unmanned aerial vehicle mapping method, system and terminal based on multi-sensor fusion
UAVs are equipped with lidar and binocular cameras, combined with inertial measurement data, to realize a multi-sensor fusion system, which solves the problems of insufficient information mining and low visualization in disaster scenes, improves data coupling and image processing capabilities, and provides high-precision 3D maps and high-definition images.
Patent Information
- Application Number
- CN202410435561.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-11
- Publication Date
- 2024-08-23
AI Technical Summary
Existing technologies lack in-depth research on multi-sensor fusion and system software design in disaster scenarios, resulting in insufficient multi-dimensional information mining and low visualization.
Build a multi-sensor fusion system by equipping drones with lidar and binocular cameras, using lidar to obtain three-dimensional geographic information and cameras to obtain high-definition images, combined with inertial measurement data to achieve three-dimensional mapping and detection, improving data coupling capabilities and images Real-time processing capabilities.
It effectively solves the problems of insufficient multi-dimensional information mining and low visualization in disaster scenes, improves multi-data coupling capabilities and real-time image processing capabilities, and provides high-precision three-dimensional maps and high-definition image information.
Smart Images

Figure CN118534476A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of geographic information analysis technology, and in particular to an unmanned aerial vehicle mapping method, system, terminal and computer-readable storage medium based on multi-sensor fusion. Background Art
[0002] When a geological disaster occurs, drones can be used to quickly fly to the disaster site for monitoring at the same time as surveyors arrive at the scene, without having to worry about the impact of the surrounding terrain. They can also quickly detect the required targets at any height, any angle, and any time, while ignoring the ground damage caused by geological disasters and replacing surveyors to enter dangerous areas.
[0003] LiDAR (Light Detection and Ranging) can obtain high-precision three-dimensional geographic information of the surrounding environment in real time regardless of the influence of light, while the camera can obtain high-definition image information, providing important data support for subsequent image processing and analysis. Fusion of the two data to achieve three-dimensional mapping and detection has become an important support for disaster investigation and post-disaster reconstruction.
[0004] However, currently more research focuses on a single aspect of related hardware and algorithms. There is a lack of in-depth research on multi-sensor fusion or its supporting system software design. Information mining can only be performed from a single dimension, resulting in insufficient multi-dimensional information mining and low visualization in disaster scenarios.
[0005] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0006] The main purpose of the present invention is to provide a UAV mapping method, system, terminal and computer-readable storage medium based on multi-sensor fusion, aiming to solve the problem that there is a lack of research on multi-sensor fusion or the design of system software supporting it in the prior art, which leads to insufficient multi-dimensional information mining and low visualization in disaster scenes.
[0007] To achieve the above object, the present invention provides a UAV mapping method based on multi-sensor fusion, and the UAV mapping method based on multi-sensor fusion comprises the following steps:
[0008] Receiving laser radar information in the test area collected by the drone through the laser radar, constructing a laser radar coordinate system, processing the laser radar information according to the laser radar coordinate system, and obtaining spatial coordinate information of the laser radar point cloud in the laser radar information;
[0009] Constructing a camera coordinate system, converting the spatial coordinate information in the camera coordinate system, and obtaining camera coordinate information of a camera point cloud in the camera coordinate system;
[0010] Constructing an image coordinate system, and obtaining image coordinate information of an image point cloud in the image coordinate system according to the camera coordinate information;
[0011] Obtaining an intrinsic parameter matrix of the binocular camera of the drone, and determining pixel coordinate information of a pixel point cloud according to the intrinsic parameter matrix and the camera coordinate information;
[0012] Receiving optical image information in the test area collected by the binocular camera on the drone, inputting the three primary color values of all original point clouds in the optical image information and the image coordinate information into all pixel point clouds corresponding to the pixel coordinate information to obtain a final point cloud;
[0013] The inertial measurement data and flight attitude information collected by the inertial measurement unit in the flight controller of the UAV are received, and a three-dimensional map of the area to be measured is obtained according to the inertial measurement data, the flight attitude information and the final point cloud.
[0014] Optionally, the UAV mapping method based on multi-sensor fusion, wherein the receiving UAV laser radar information in the area to be measured collected by the laser radar, constructing a laser radar coordinate system, processing the laser radar information according to the laser radar coordinate system, and obtaining the spatial coordinate information of the laser radar point cloud in the laser radar information, specifically includes:
[0015] Receive the laser radar information in the area to be measured collected by the drone through the laser radar;
[0016] Taking the laser radar as the first origin, constructing a laser radar coordinate system;
[0017] According to the laser radar information, the distances from all the laser radar point clouds in the test area to the first origin, and the azimuth and elevation angles in the laser radar coordinate system are obtained;
[0018] According to the distance, the azimuth and the pitch angle, the spatial coordinate information of all the laser radar point clouds is calculated and expressed as:
[0019] P L =[R cosεcosα, R cosεsinα, R sinε] T ;
[0020] or P L =(X L , Y L , Z L) T ;
[0021] Among them, P L represents the coordinate position of the laser radar point cloud in the laser radar coordinate system, R represents the distance, α represents the azimuth, ε represents the pitch angle, T represents transposition, X L and Rcosεcosα represents the horizontal coordinate of the lidar point cloud in the lidar coordinate system, Y L and R cos ε sin α represents the ordinate of the lidar point cloud in the lidar coordinate system, Z L and R sin ε represents the vertical coordinate of the lidar point cloud in the lidar coordinate system.
[0022] Optionally, the method for unmanned aerial vehicle mapping based on multi-sensor fusion, wherein the step of constructing a camera coordinate system and converting the spatial coordinate information in the camera coordinate system to obtain the camera coordinate information of the camera point cloud in the camera coordinate system, specifically includes:
[0023] The camera coordinate system is constructed by taking the camera light point of the binocular camera as the second origin and coinciding the second vertical axis with the camera optical axis of the binocular camera;
[0024] The spatial coordinate information is transformed in the camera coordinate system using a preset rotation matrix and a translation matrix to obtain the camera coordinate information of the camera point cloud, which is expressed as:
[0025]
[0026] or P C =(x C , Y C , Z C ) T ;
[0027] Among them, P C represents the coordinate position of the camera point cloud in the camera coordinate system, represents the rotation matrix, represents the translation matrix, X C , Y C and Z C Respectively represent the horizontal coordinate, vertical coordinate and vertical coordinate of the camera point cloud in the camera coordinate system.
[0028] Optionally, in the drone mapping method based on multi-sensor fusion, the plane formed by the horizontal axis and the vertical axis in the camera coordinate system is a horizontal plane;
[0029] The constructing of the image coordinate system, obtaining the image coordinate information of the image point cloud in the image coordinate system according to the camera coordinate information, specifically includes:
[0030] Obtaining the focal length of the binocular camera, taking a point at the focal length from the second origin on the vertical axis of the camera coordinate system as the third origin of the image coordinate system, and constructing the image coordinate system in parallel with the horizontal plane, wherein the image coordinate system is a plane coordinate system;
[0031] Connecting the camera point cloud and the second origin to obtain a connecting line, obtaining an intersection point of the connecting line and the image coordinate system, and using the intersection point as the image coordinate of the image point cloud in the image coordinate system;
[0032] According to the focal length and the camera coordinate information, the image coordinate information of the image point cloud is calculated and expressed as:
[0033]
[0034] Among them, P I represents the coordinate position of the image point cloud in the image coordinate system, and f represents the focal length.
[0035] Optionally, the UAV mapping method based on multi-sensor fusion, wherein the step of obtaining an intrinsic parameter matrix of a binocular camera of the UAV and determining pixel coordinate information of a pixel point cloud according to the intrinsic parameter matrix and the camera coordinate information, specifically includes:
[0036] The intrinsic parameter matrix of the binocular camera is obtained, and the camera coordinate information is converted into pixel coordinate information using the intrinsic parameter matrix, which is expressed as:
[0037] P u =KP C ;
[0038] Among them, P u represents the coordinate position of the pixel point cloud in the pixel coordinate system, and K represents the intrinsic parameter matrix;
[0039] According to the pixel coordinate information, the pixel coordinate system is constructed with the upper left corner of the area to be measured as the fourth origin, and the pixel coordinate system is a plane coordinate system.
[0040] Optionally, the UAV mapping method based on multi-sensor fusion, wherein the receiving of optical image information within the area to be measured collected by the binocular camera on the UAV, inputting the three primary color values of all original point clouds in the optical image information and the image coordinate information into all pixel point clouds corresponding to the pixel coordinate information, to obtain the final point cloud, specifically includes:
[0041] Receiving optical image information in the area to be measured collected by the binocular camera, and acquiring three primary color values of each original point cloud in the area to be measured according to the optical image information;
[0042] The nonlinear distortion coefficient of the binocular camera of the drone is obtained, and the image coordinate information is dedistorted according to the nonlinear distortion coefficient to obtain the second image coordinate information, which is expressed as:
[0043] x distorted =x(1+k1r 2 +k2r 4 +k3r 6 )+2k4xy+k5(r 2 +2x 2 );
[0044] y distorted =y(1+k1r 2 +k2r 4 +k3r 6 )+k4(r 2 +2y 2 )+2k5xy;
[0045] Among them, x distorted and distorted Respectively represent the abscissa and ordinate of the image point cloud in the image coordinate system after dedistortion, x and y respectively represent the abscissa and ordinate of the image point cloud in the image coordinate information, r represents the distance between the camera point cloud and the second origin of the camera coordinate system, k1, k2, k3, k4 and k5 represent the nonlinear distortion coefficients of the binocular camera;
[0046] According to the pixel coordinate information, each of the three primary color values and the second image coordinate information is input into a corresponding pixel point cloud to obtain a final point cloud;
[0047] A point cloud structure is constructed, and the final point cloud is stored in the point cloud structure.
[0048] Optionally, the UAV mapping method based on multi-sensor fusion, wherein the receiving of inertial measurement data and flight attitude information collected by an inertial measurement unit in a flight controller of the UAV, and obtaining a three-dimensional map of the area to be measured according to the inertial measurement data, the flight attitude information and the final point cloud, specifically includes:
[0049] Receiving inertial measurement data and flight attitude information collected by an inertial measurement unit in a flight controller of the UAV;
[0050] Input the flight attitude information into the YOLO model for detection, and output the detection result;
[0051] The bounding box, confidence, category data and inertial measurement data in the detection result are input into the onboard computer of the UAV, and the three-dimensional map sent by the onboard computer is received.
[0052] In addition, to achieve the above-mentioned purpose, the present invention also provides an unmanned aerial vehicle mapping system based on multi-sensor fusion, wherein the unmanned aerial vehicle mapping system based on multi-sensor fusion includes:
[0053] A spatial coordinate information acquisition module is used to receive the laser radar information in the test area collected by the drone through the laser radar, construct a laser radar coordinate system, process the laser radar information according to the laser radar coordinate system, and obtain the spatial coordinate information of the laser radar point cloud in the laser radar information;
[0054] A camera coordinate information acquisition module, used to construct a camera coordinate system, transform the spatial coordinate information in the camera coordinate system, and obtain the camera coordinate information of the camera point cloud in the camera coordinate system;
[0055] An image coordinate information acquisition module is used to construct an image coordinate system and obtain image coordinate information of an image point cloud in the image coordinate system according to the camera coordinate information;
[0056] A pixel coordinate information acquisition module is used to acquire an intrinsic parameter matrix of the binocular camera of the drone, and determine the pixel coordinate information of the pixel point cloud according to the intrinsic parameter matrix and the camera coordinate information;
[0057] A final point cloud acquisition module is used to receive the optical image information in the test area collected by the binocular camera on the drone, input the three primary color values of all original point clouds in the optical image information and the image coordinate information into all pixel point clouds corresponding to the pixel coordinate information, and obtain a final point cloud;
[0058] The three-dimensional map acquisition module is used to receive the inertial measurement data and flight attitude information collected by the inertial measurement unit in the flight controller of the UAV, and obtain the three-dimensional map of the area to be measured according to the inertial measurement data, the flight attitude information and the final point cloud.
[0059] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal, wherein the terminal includes: a memory, a processor, and a drone mapping program based on multi-sensor fusion stored in the memory and executable on the processor, wherein the drone mapping program based on multi-sensor fusion, when executed by the processor, implements the steps of the drone mapping method based on multi-sensor fusion as described above.
[0060] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a drone mapping program based on multi-sensor fusion, and when the drone mapping program based on multi-sensor fusion is executed by a processor, the steps of the drone mapping method based on multi-sensor fusion as described above are implemented.
[0061] In the present invention, laser radar is used to obtain laser radar information in the area to be measured, and pixel coordinate information is obtained through multiple conversions; binocular camera is used to obtain optical image information in the area to be measured, and the three primary color values of all original point clouds in the optical image information are input into all pixel point clouds in the pixel coordinate information to obtain the final point cloud; inertial measurement unit is used to obtain inertial measurement data and flight attitude information, and the inertial measurement data, flight attitude information and final point cloud are input into the three-dimensional mapping module to output the three-dimensional map of the area to be measured. The present invention uses a multi-sensor unmanned aerial vehicle platform to design a matching software system, uses laser radar to obtain high-precision three-dimensional geographic information of the surrounding environment in real time and high-definition image information obtained by optical camera, and integrates the two data to realize three-dimensional mapping and detection, thereby reducing the problems of insufficient multi-dimensional information mining and low visualization in current disaster scenes, and improving the multi-data coupling capability and real-time image processing capability. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 It is a flow chart of a preferred embodiment of the UAV mapping method based on multi-sensor fusion of the present invention;
[0063] Figure 2 This is the first hardware composition diagram of the UAV mapping method based on multi-sensor fusion of the present invention;
[0064] Figure 3 This is a second hardware composition diagram of the UAV mapping method based on multi-sensor fusion of the present invention;
[0065] Figure 4 It is a diagram of the architecture of a drone for mapping tasks of the drone mapping method based on multi-sensor fusion of the present invention;
[0066] Figure 5 It is a diagram of the architecture of a detection mission drone of the drone mapping method based on multi-sensor fusion of the present invention;
[0067] Figure 6 It is a schematic diagram of the laser radar coordinate system of the UAV mapping method based on multi-sensor fusion of the present invention;
[0068] Figure 7 It is a schematic diagram of the camera coordinate system and the image coordinate system of the UAV mapping method based on multi-sensor fusion of the present invention;
[0069] Figure 8It is a colored laser point cloud image of the drone mapping method based on multi-sensor fusion of the present invention;
[0070] Fig. 9 It is a UML diagram of disaster detection based on the multi-sensor fusion UAV mapping method of the present invention;
[0071] Fig.10 This is a diagram showing the disaster detection implementation of the drone mapping method based on multi-sensor fusion in the present invention;
[0072] Fig.11 It is an indoor corridor test diagram of a preferred embodiment of the drone mapping method based on multi-sensor fusion of the present invention;
[0073] Fig.12 It is a parking lot test diagram of a preferred embodiment of the drone mapping method based on multi-sensor fusion of the present invention;
[0074] Fig.13 It is a software architecture diagram of a disaster mapping system of a preferred embodiment of the drone mapping method based on multi-sensor fusion of the present invention;
[0075] Fig.14 It is a communication function realization diagram of a preferred embodiment of the UAV mapping method based on multi-sensor fusion of the present invention;
[0076] Fig.15 It is a UML diagram of the communication function of a preferred embodiment of the drone mapping method based on multi-sensor fusion of the present invention;
[0077] Fig.16 It is a flight state function realization diagram of a preferred embodiment of the unmanned aerial vehicle mapping method based on multi-sensor fusion of the present invention;
[0078] Fig.17 It is a UML diagram of the flight state of a preferred embodiment of the UAV mapping method based on multi-sensor fusion of the present invention;
[0079] Fig.18 It is a schematic diagram of the principle of a preferred embodiment of the UAV mapping system based on multi-sensor fusion of the present invention;
[0080] Fig.19 Schematic diagram of the operating environment of a preferred embodiment of the terminal of the present invention. DETAILED DESCRIPTION
[0081] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. 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.
[0082] The drone mapping method based on multi-sensor fusion described in the preferred embodiment of the present invention is as follows: Figure 1 As shown, the UAV mapping method based on multi-sensor fusion includes the following steps:
[0083] Step S10, receiving the laser radar information in the test area collected by the drone through the laser radar, constructing a laser radar coordinate system, processing the laser radar information according to the laser radar coordinate system, and obtaining the spatial coordinate information of the laser radar point cloud in the laser radar information.
[0084] Among them, Figure 2 and Figure 3 As shown, in order to achieve multi-sensor data acquisition, the present invention uses two drones carrying different mission payloads, the mapping mission drone (such as Figure 2 The sensors are a 3D laser radar and a binocular camera to detect the mission drone (such as Figure 3 As shown in FIG. 1 , the sensor carried by the camera is a pan-tilt camera. Figure 4 and Figure 5 As shown in the figure, both drones use the same power system and flight control system, and only differ in the mission load system. The onboard computers are installed with the same system environment. Two sets of sensor load corresponding holes are reserved in advance in the rack motherboard, and the sensor loads of each other can be replaced at any time. In this way, the operation tasks of the drones can be switched by replacing the loads without performing multi-machine tasks. For example, the original detection mission drone performs the detection mission by carrying a gimbal camera. At this time, if you do not want to perform the detection mission, you can replace the gimbal camera with a lidar and a binocular camera, and then switch the detection drone to a mapping drone to perform mapping tasks, which improves the work efficiency of low-altitude operations.
[0085] Furthermore, the flight controller and the onboard computer are connected via a USB cable, and the two can communicate through the MAVROS tool and the Robot Operating System (ROS) running on the onboard computer, making it convenient for the onboard computer to read sensor data on the flight controller. At the same time, the flight controller and the onboard computer can simultaneously achieve two-way communication with the ground station computer through a set of image and data transmission link communication equipment, making it convenient for the ground station to obtain information from both and issue relevant instructions to both.
[0086] Specifically, the laser radar information in the test area collected by the drone through the laser radar is received; the laser radar is used as the first origin to construct the laser radar coordinate system; according to the laser radar information, the distance from all the laser radar point clouds in the test area to the first origin, the azimuth and the pitch angle in the laser radar coordinate system are obtained; according to the distance, the azimuth and the pitch angle, the spatial coordinate information of all the laser radar point clouds is calculated and expressed as:
[0087] P L =[R cosεcosα, R cosεsinα, Rsinε] T ;
[0088] or P L =(X L , Y L , Z L ) T ;
[0089] Among them, P L represents the coordinate position of the laser radar point cloud in the laser radar coordinate system, R represents the distance, α represents the azimuth, ε represents the pitch angle, T represents transposition, X L and Rcosεcosα represents the horizontal coordinate of the lidar point cloud in the lidar coordinate system, Y L and R cos ε sin α represents the ordinate of the lidar point cloud in the lidar coordinate system, Z L and R sin ε represents the vertical coordinate of the lidar point cloud in the lidar coordinate system.
[0090] 3D LiDAR can obtain high-precision 3D geographic information of the surrounding environment in real time regardless of the influence of light, and the measurement model of LiDAR (LiDAR coordinate system) is also called Range Azimuth Elevation (RAE) model. Figure 6 As shown in the figure, the laser radar on the mapping mission drone is used as the first origin to construct the laser radar coordinate system. At the same time, the laser radar information of the area to be measured collected by the mapping mission drone through the laser radar is received. According to the laser radar information, it can be determined that the laser point (P L ) in the laser radar coordinate system and the distance (R) of the laser point from the center of the laser radar (i.e., the first origin). According to the laser radar information, the emission angle of the laser beam can also be obtained, thereby determining the azimuth (α) and pitch angle (ε) of the laser point in the laser radar coordinate system; based on this information, the coordinates of the laser point in the laser radar coordinate system can be determined:
[0091] PL=[R cosεcosα, R cosεsinα, R sinε] T ;
[0092] That is, the spatial information of the laser radar point cloud data obtained by the laser radar, which can be used (X L , Y L , Z L ) T To express.
[0093] Step S20: construct a camera coordinate system, transform the space coordinate information in the camera coordinate system, and obtain camera coordinate information of the camera point cloud in the camera coordinate system.
[0094] Specifically, the camera light point of the binocular camera is used as the second origin, and the second vertical axis coincides with the camera optical axis of the binocular camera to construct the camera coordinate system; the spatial coordinate information is transformed in the camera coordinate system using a preset rotation matrix and a translation matrix to obtain the camera coordinate information of the camera point cloud, which is expressed as:
[0095]
[0096] or P C =(X C , Y C , Z C ) T ;
[0097] Among them, P C represents the coordinate position of the camera point cloud in the camera coordinate system, represents the rotation matrix, represents the translation matrix, X C , Y C and Z C Respectively represent the horizontal coordinate, vertical coordinate and vertical coordinate of the camera point cloud in the camera coordinate system.
[0098] Among them, Figure 7 As shown in the figure, the camera coordinate system takes the camera optical center of the binocular camera as the second origin and the camera optical axis of the binocular camera as the vertical axis. Then the laser point (P L ) can be expressed in the camera coordinate system through a rigid transformation rotation matrix and translation matrix as P C , where the rotation matrix and translation matrix are and And P L and P C The relationship is expressed as: Correspondingly, the camera coordinates of the laser point in the camera coordinate system can also be obtained.
[0099] Step S30: construct an image coordinate system, and obtain image coordinate information of the image point cloud in the image coordinate system according to the camera coordinate information.
[0100] Specifically, the focal length of the binocular camera is obtained, and on the vertical axis of the camera coordinate system, a point at the focal length from the second origin is used as the third origin of the image coordinate system, and the image coordinate system is constructed in parallel with the horizontal plane, and the image coordinate system is a plane coordinate system; the camera point cloud and the second origin are connected to obtain a connecting line, and the intersection of the connecting line and the image coordinate system is obtained, and the intersection is used as the image coordinate of the image point cloud in the image coordinate system; according to the focal length and the camera coordinate information, the image coordinate information of the image point cloud is calculated and expressed as:
[0101]
[0102] Among them, P I represents the coordinate position of the image point cloud in the image coordinate system, and f represents the focal length.
[0103] Among them, Figure 7 As shown in the figure, the process of a binocular camera transforming a point in the three-dimensional world (in meters) into a two-dimensional image plane (in pixels) can generally be represented by the camera's pinhole model (camera coordinate system). Obtain the focal length of the binocular camera, and on the vertical axis of the camera coordinate system, use the point at the focal length from the second origin as the third origin of the image coordinate system, and construct a planar two-dimensional coordinate system (image coordinate system) parallel to the plane formed by the horizontal axis and the vertical axis in the camera coordinate system. At this time, the line connecting the camera point cloud in the camera coordinate system and the second origin will intersect with the image coordinate system. This intersection is the image point cloud (P) that falls on the image coordinate system after the camera point cloud is projected through the optical center. I ), when the focal length (f) of the binocular camera is determined, according to the geometric relationship of similar triangles, the camera point cloud (P C ) to determine the coordinates of the image point cloud in the image coordinate system The high-definition image information of each point cloud in the test area is obtained through the binocular camera, and the corresponding conversion is performed, providing important data support for subsequent image processing and analysis.
[0104] Step S40: Obtain an intrinsic parameter matrix of the binocular camera of the drone, and determine pixel coordinate information of the pixel point cloud according to the intrinsic parameter matrix and the camera coordinate information.
[0105] Specifically, the intrinsic parameter matrix of the binocular camera is obtained, and the camera coordinate information is converted into pixel coordinate information using the intrinsic parameter matrix, which is expressed as:
[0106] Pu =KP C ;
[0107] Among them, P u represents the coordinate position of the pixel point cloud in the pixel coordinate system, K represents the intrinsic parameter matrix; according to the pixel coordinate information, the pixel coordinate system is constructed with the upper left corner of the area to be measured as the fourth origin, and the pixel coordinate system is a plane coordinate system.
[0108] Among them, when the binocular camera is shooting, the image obtained is a pixel, which can be calculated by the camera point cloud (P C ) is transformed, there will be a certain scaling and translation relationship, which can be expressed in pixel coordinate system to obtain P C The coordinate P in the pixel coordinate system u =(u,v) T For example, take the image (area to be measured) as the pixel coordinate system, take the upper left corner of the image as the fourth origin (the origin of the pixel coordinate system), and assume that the origin of the image is translated by [c x , c y ] T , scaled a times on the u axis and b times on the v axis, the pixel coordinates (u, v) T and the camera point cloud coordinates (X C , Y C , Z C ) T The relationship is:
[0109] u=aX C +c x ;
[0110] v=bY C + c y ;
[0111] Usually aX C Represented as f x , will be C Represented as f y , combining the above formulas and using homogeneous coordinates and matrices to represent camera coordinates and pixel coordinates, we can get the following formula:
[0112]
[0113] Among them, the middle matrix is generally represented by the symbol K, which is the intrinsic parameter matrix of the camera. This matrix is used to describe the linear transformation relationship of the three-dimensional coordinate points in the real world in the camera coordinate system to the two-dimensional pixel coordinate system of the image.
[0114] Furthermore, in order to obtain the relative position relationship between the laser radar and the camera so as to obtain the coordinate representation of the laser point cloud in the camera coordinate system, it is necessary to perform an external parameter calibration between the laser radar and the camera. The result of the external parameter calibration is the transformation matrix mentioned above. The general process is to let the laser radar and the binocular camera extract the line and surface features of the object being measured, and then establish the same-name points based on the line and surface features, and calculate the relative position relationship between the two sensors according to the matching relationship between the same-name points between the two sensors. Generally, the rotation matrix is represented by a 3*3 matrix, and the translation matrix is represented by a 3*1 vector. For the convenience of expression, the rotation matrix and the translation matrix can be represented by a 4*4 transformation matrix. At the same time, the conversion of laser radar coordinates to pixel coordinates can be represented by the internal parameter matrix K, and the coordinate PL of a point in the real world in the laser radar coordinate system to the pixel coordinate P can be obtained. u The conversion relationship is:
[0115]
[0116] Among them, Figure 8 As shown in the figure, by calibrating the laser radar and binocular camera sensors, the following calibration results can be obtained:
[0117]
[0118] By using a binocular camera to obtain a camera point cloud and converting it into a pixel point cloud through an intrinsic parameter matrix, the texture information in the real image can be provided for the laser point cloud, thereby improving the data coupling degree and image processing capabilities, and improving the information of the obtained point cloud.
[0119] Step S50, receiving the optical image information in the test area collected by the binocular camera on the drone, inputting the three primary color values of all original point clouds in the optical image information and the image coordinate information into all pixel point clouds corresponding to the pixel coordinate information, to obtain a final point cloud.
[0120] Specifically, the optical image information in the area to be measured collected by the binocular camera is received, and the three primary color values of each of the original point clouds in the area to be measured are obtained according to the optical image information; the nonlinear distortion coefficient of the binocular camera of the drone is obtained, and the image coordinate information is dedistorted according to the nonlinear distortion coefficient to obtain the second image coordinate information, which is expressed as:
[0121] x distorted =x(1+k1r 2 +k2r 4 +k3r 6 )+2k4xy+k5(r2 +2x 2 );
[0122] y distorted =y(1+k1r 2 +k2r 4 +k3r 6 )+k4(r 2 +2y 2 )+2k5xy;
[0123] Among them, x distorted and distorted Respectively represent the horizontal coordinate and vertical coordinate of the image point cloud in the image coordinate system after dedistortion, x and y respectively represent the horizontal coordinate and vertical coordinate of the image point cloud in the image coordinate information, r represents the distance between the camera point cloud and the second origin of the camera coordinate system, k1, k2, k3, k4 and k5 represent the nonlinear distortion coefficient of the binocular camera; according to the pixel coordinate information, each of the three primary color values and the second image coordinate information is input into the corresponding pixel point cloud to obtain the final point cloud; construct a point cloud structure, and store the final point cloud in the point cloud structure.
[0124] Among them, the optical image information of all original point clouds in the test area collected by the binocular camera is obtained, and all original point clouds are converted into lidar point clouds, camera point clouds, image point clouds and pixel point clouds one by one as in the above steps.
[0125] Furthermore, real cameras have manufacturing and assembly errors, so the imaging process does not strictly follow the linear model, which will cause distortion effects in the pictures (area to be measured) acquired by the binocular camera. Therefore, the present invention introduces the nonlinear distortion coefficient of the binocular camera to compensate for the camera lens distortion, so as to improve the accuracy of obtaining the point cloud information of each area to be measured. The image point cloud can be dedistorted by the nonlinear distortion coefficients k1, k2, k3, k4 and k5 to obtain the dedistorted second image coordinate information.
[0126] Among them, the correspondence between all pixel point clouds, image point clouds and original point clouds can be determined according to the pixel coordinate information, and the second image coordinate information of the de-distorted image point cloud and the three primary color values in the original point cloud are input into the corresponding pixel point cloud according to the correspondence to obtain the final point cloud, and a point cloud structure is defined to store and represent the information that all point clouds need to carry. The spatial three-dimensional information obtained by the lidar and the color and texture information of the scene objects obtained by the binocular camera are integrated through various models (coordinate systems), realizing three-dimensional mapping and reconnaissance of the scene, meeting the needs of disaster investigation and post-disaster reconstruction data, solving the problems of insufficient multi-dimensional information mining and low visualization in current disaster scenes, and improving the multi-data coupling capability and real-time image processing capability.
[0127] Step S60: receiving inertial measurement data and flight attitude information collected by an inertial measurement unit in a flight controller of the UAV, and obtaining a three-dimensional map of the area to be measured according to the inertial measurement data, the flight attitude information and the final point cloud.
[0128] Specifically, the inertial measurement data and flight attitude information collected by the inertial measurement unit in the flight controller of the UAV are received; the flight attitude information is input into the YOLO model for detection, and the detection result is output; the bounding box, confidence, category data and the inertial measurement data in the detection result are input into the onboard computer of the UAV, and the three-dimensional map sent by the onboard computer is received.
[0129] Among them, the drone carrying the gimbal camera performs detection tasks and does not participate in the construction of the three-dimensional map. It only displays damage detection information and flight attitude information (both drones can obtain flight attitude information). The damage detection information can be combined with the three-dimensional map. Figure 1 Together, we can determine the specific circumstances of the current disaster scenario.
[0130] Among them, the camera is directly connected to the onboard computer through the self-organizing network function of the image data transmission hardware HOMER, and then the target detection algorithm is deployed on the onboard computer. The calculation of all algorithms is completed on the airborne end, and the detection results are transmitted to the ground station through ROS to realize the visualization of damage detection results. The specific process is as follows:
[0131] (1) Create a YOLOROS class, subscribe to the image topic with a subscriber, process the image with the image processing callback function, and publish the processed image to the detection image topic through a publisher;
[0132] (2) The image processing callback function is responsible for loading the YOLO model and detecting the image;
[0133] (3) publishing the bounding box, confidence, and category data extracted from the detection results in the publish result function, and drawing the above information on the image in the publish result image function;
[0134] (4) Fig. 9 As shown, the ground station receives images through the label control and creates image subscribers and image processing callback functions in Qnode (pointer to QueueNode structure);
[0135] (5) The image processing callback function in Qnode needs to process the image into an image in Qt (application development framework, Qt Toolkit) format and emit a signal for the topic;
[0136] (6) Fig.10 As shown, the signal is received on MainWindow, and the image subscribed to the corresponding topic is updated and displayed in its slot function.
[0137] Furthermore, in order to verify the effectiveness of the mapping system in different indoor and outdoor scenes, several representative scenes were selected based on the true color 3D point cloud mapping algorithm (i.e., the point cloud conversion achieved using various coordinate systems as mentioned above), including the indoor corridor and underground parking lot.
[0138] Among them, Fig.11 As shown in the figure, the indoor corridor scene is characterized by a small scene area and usually strong light intensity. This scene can be used to verify the mapping effect of this mapping system under short distance and high light conditions. It can be seen that the mapping results, whether in terms of coloring effect or three-dimensional structure, have well restored the original appearance of the corridor scene. The closer the laser radar is to the scene object, the higher the density of the three-dimensional point cloud of the restored scene will be. Fig.12 As shown in the figure, the indoor parking lot scene is selected not only to verify whether the mapping system can achieve real-time mapping, but also the light intensity in underground parking lots is usually low, which can better verify the point cloud coloring effect of this system under low light conditions. It can be seen that in some areas with higher light intensity in the indoor parking lot, the texture information of the scene can be well attached to the point cloud map, while in some areas with weaker light intensity, the texture information presents a black effect. This is because the color information of the object is poorly reflected under low light intensity, so it is difficult for the camera image to present the texture information of the scene under high light conditions, which leads to poor color point cloud effect.
[0139] Furthermore, if Fig.13As shown, the present invention also realizes the software design of the disaster mapping system, realizes the communication between the ground terminal, the onboard computer and the flight controller; the built-in IMU (Inertial Measurement Unit) of the flight controller can be integrated with the GPS to realize accurate attitude solution, and can receive instructions from the QGC (ground station, QGroundControl) and the remote control to realize the operation of flight control. At the same time, the data of the IMU can be read by ROS and sent to the SLAM module (three-dimensional mapping module, Simultaneous Localization and Mapping), and the final three-dimensional map is obtained by calculation together with the camera image and LiDAR point cloud. The image can also be sent to the target detection module to realize the detection of road damage. The three-dimensional map and detection information can be read by ROS and published to the client interface developed by Qt to realize the final visualization.
[0140] Further, the software also includes a communication connection module, and ROS can be used to have a distributed multi-machine communication mechanism to realize different machine communication. The key is to ensure that multiple machines are in the same local area network, that is, the IPs of multiple machines need to be located under the same network segment at the same time, and then different IP addresses and port numbers are set for each machine to communicate with this. The present invention provides independent IP addresses for two drones by using two HOMER image data transmission hardware as the sky end, and a HOMER ground end provides an IP address for the ground station computer, and the ground end is used as the main route, and the sky end is used as a connector, so that the onboard computers of the two drones can communicate with the ground station computer in the same local area network, so that the onboard computers of the drone and the ground station computer can be in the same local area network, and the ground station software needs to obtain the communication connection between the ground station computer and the drone, and the present invention realizes this function, as long as the button is clicked, the init function in Qnode will be automatically executed using the signal and slot mechanism to create a gui node, and the node located at the ground station communicates with the drone with multi-machine communication set in the previous text. The ground station provides two connection modes, one is to connect using system environment variables, and the other is to connect using a custom IP address.
[0141] Among them, when the IP address needs to be changed, the ground station also provides a visual way to modify the IP address. The ground station will read and write related configuration information through the WriteSetting function and the ReadSetting function. In the on_button_connect_clicked function, it will determine which connection method to use, and then use the function overloading mechanism to set the Qnode::init function of the two connection methods to determine whether to initialize. In addition to creating a ros node, this function also defines all ros subscribers and publishers.
[0142] like Fig.14 As shown in the figure, in order to determine whether the drone and the ground station are successfully connected, the publisher chatter_publish publishes the message "Drone connected", and prints the message in the log function and displays it in the log column. The UML diagram of the communication connection module is as follows Fig.15 shown.
[0143] Furthermore, the software also includes a drone detection module, which can obtain the status information of the drone during flight in real time, such as the attitude information, longitude and latitude, altitude information and battery power information of the drone during flight. The specific process is as follows:
[0144] (1) Subscribe to the relevant topic information in Qnode and emit the signal of the topic in the callback function;
[0145] (2) Receive the signal in MainWindow and call the corresponding slot function;
[0146] (3) Use Qt control label in the power display slot function, attitude display slot function and latitude and longitude display slot function to receive the power value, attitude value and latitude and longitude value respectively. The attitude information displayed by MAVROS is in quaternion format, which is not in line with people's intuitive impression. Use Eigen to convert the quaternion into Euler angle format;
[0147] (4) Use a progress bar in the battery display slot function to display the battery power percentage. MAVROS only gives the voltage value, and calculates the ratio of the current voltage to the maximum and minimum battery power as a percentage;
[0148] (5) Fig.16 As shown, corresponding dashboards are used to receive the above-mentioned Euler angle information, one dashboard displays the pitch and roll information of the drone, and the other dashboard displays the yaw information of the drone.
[0149] Furthermore, the UML diagram of the drone status detection module is as follows: Fig.17 shown.
[0150] The present invention uses a multi-sensor UAV platform and a matching software system to acquire high-precision three-dimensional geographic information of the surrounding environment in real time using a lidar and high-definition image information acquired by an optical camera, and fuses the two types of data to achieve three-dimensional mapping and detection, thereby reducing the problems of insufficient multi-dimensional information mining and low visualization in current disaster scenarios, and improving the multi-data coupling capability and real-time image processing capability.
[0151] Furthermore, if Fig.18As shown, based on the above-mentioned drone mapping method based on multi-sensor fusion, the present invention also provides a drone mapping system based on multi-sensor fusion, wherein the drone mapping system based on multi-sensor fusion includes:
[0152] The spatial coordinate information acquisition module 51 is used to receive the laser radar information in the test area collected by the drone through the laser radar, construct a laser radar coordinate system, process the laser radar information according to the laser radar coordinate system, and obtain the spatial coordinate information of the laser radar point cloud in the laser radar information;
[0153] A camera coordinate information acquisition module 52, used to construct a camera coordinate system, transform the spatial coordinate information in the camera coordinate system, and obtain the camera coordinate information of the camera point cloud in the camera coordinate system;
[0154] An image coordinate information acquisition module 53 is used to construct an image coordinate system and obtain image coordinate information of an image point cloud in the image coordinate system according to the camera coordinate information;
[0155] A pixel coordinate information acquisition module 54 is used to acquire an intrinsic parameter matrix of the binocular camera of the drone, and determine the pixel coordinate information of the pixel point cloud according to the intrinsic parameter matrix and the camera coordinate information;
[0156] The final point cloud acquisition module 55 is used to receive the optical image information in the test area collected by the binocular camera on the drone, input the three primary color values of all original point clouds in the optical image information and the image coordinate information into all pixel point clouds corresponding to the pixel coordinate information, and obtain the final point cloud;
[0157] The three-dimensional map acquisition module 56 is used to receive the inertial measurement data and flight attitude information collected by the inertial measurement unit in the flight controller of the UAV, and obtain the three-dimensional map of the area to be measured according to the inertial measurement data, the flight attitude information and the final point cloud.
[0158] Furthermore, if Fig.19 As shown, based on the above-mentioned drone mapping method and system based on multi-sensor fusion, the present invention also provides a terminal accordingly, and the terminal includes a processor 10, a memory 20 and a display 30. Fig.19 Only some components of the terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0159] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Further, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed on the terminal, such as the program code of the installation terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, a drone mapping program 40 based on multi-sensor fusion is stored on the memory 20, and the drone mapping program 40 based on multi-sensor fusion can be executed by the processor 10, thereby realizing the drone mapping method based on multi-sensor fusion in the present application.
[0160] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the drone mapping method based on multi-sensor fusion.
[0161] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal and to display a visual user interface. The components 10-30 of the terminal communicate with each other via a system bus.
[0162] In one embodiment, when the processor 10 executes the drone mapping program 40 based on multi-sensor fusion in the memory 20, the steps of the drone mapping method based on multi-sensor fusion as described above are implemented.
[0163] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores an unmanned aerial vehicle mapping program based on multi-sensor fusion, and when the unmanned aerial vehicle mapping program based on multi-sensor fusion is executed by a processor, the steps of the unmanned aerial vehicle mapping method based on multi-sensor fusion as described above are implemented.
[0164] In summary, the present invention provides a UAV mapping method based on multi-sensor fusion and related equipment, the method comprising: the present invention uses a UAV platform equipped with multiple sensors, designs a matching software system, uses a laser radar to obtain high-precision three-dimensional geographic information of the surrounding environment in real time and high-definition image information obtained by an optical camera, and fuses the two types of data to achieve three-dimensional mapping and detection, thereby solving the problems of insufficient multi-dimensional information mining and low visualization in current disaster scenarios, and improving the multi-data coupling capability and real-time image processing capability.
[0165] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or terminal including the element.
[0166] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.
[0167] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A UAV mapping method based on multi-sensor fusion, characterized in that: The UAV mapping method based on multi-sensor fusion includes: Receiving laser radar information in the test area collected by the drone through the laser radar, constructing a laser radar coordinate system, processing the laser radar information according to the laser radar coordinate system, and obtaining spatial coordinate information of the laser radar point cloud in the laser radar information; Constructing a camera coordinate system, converting the spatial coordinate information in the camera coordinate system, and obtaining camera coordinate information of a camera point cloud in the camera coordinate system; Constructing an image coordinate system, and obtaining image coordinate information of an image point cloud in the image coordinate system according to the camera coordinate information; Obtaining an intrinsic parameter matrix of the binocular camera of the drone, and determining pixel coordinate information of a pixel point cloud according to the intrinsic parameter matrix and the camera coordinate information; Receiving optical image information in the test area collected by the binocular camera on the drone, inputting the three primary color values of all original point clouds in the optical image information and the image coordinate information into all pixel point clouds corresponding to the pixel coordinate information to obtain a final point cloud; The inertial measurement data and flight attitude information collected by the inertial measurement unit in the flight controller of the UAV are received, and a three-dimensional map of the area to be measured is obtained according to the inertial measurement data, the flight attitude information and the final point cloud.
2. The method for UAV mapping based on multi-sensor fusion according to claim 1 is characterized in that: The receiving laser radar information in the test area collected by the drone through the laser radar, constructing a laser radar coordinate system, processing the laser radar information according to the laser radar coordinate system, and obtaining the spatial coordinate information of the laser radar point cloud in the laser radar information specifically includes: Receive the laser radar information in the area to be measured collected by the drone through the laser radar; Taking the laser radar as the first origin, constructing a laser radar coordinate system; According to the laser radar information, the distances from all the laser radar point clouds in the test area to the first origin, and the azimuth and elevation angles in the laser radar coordinate system are obtained; According to the distance, the azimuth and the pitch angle, the spatial coordinate information of all the laser radar point clouds is calculated and expressed as: P L =[Rcosεcosα,Rcosεsinα,Rsinε] T ; or P L =(X L , Y L , Z L ) T ; Among them, P L represents the coordinate position of the laser radar point cloud in the laser radar coordinate system, R represents the distance, α represents the azimuth, ε represents the pitch angle, T represents transposition, X L and Rcosεcosα represents the horizontal coordinate of the lidar point cloud in the lidar coordinate system, Y L and Rcosεsinα represents the ordinate of the lidar point cloud in the lidar coordinate system, Z L and Rsinε represents the vertical coordinate of the lidar point cloud in the lidar coordinate system.
3. The method for UAV mapping based on multi-sensor fusion according to claim 2 is characterized in that: The constructing of the camera coordinate system and converting the spatial coordinate information in the camera coordinate system to obtain the camera coordinate information of the camera point cloud in the camera coordinate system specifically includes: The camera coordinate system is constructed by taking the camera light point of the binocular camera as the second origin and coinciding the second vertical axis with the camera optical axis of the binocular camera; The spatial coordinate information is transformed in the camera coordinate system using a preset rotation matrix and a translation matrix to obtain the camera coordinate information of the camera point cloud, which is expressed as: or P C =(X C , Y C , Z C ) T ; Among them, P C represents the coordinate position of the camera point cloud in the camera coordinate system, represents the rotation matrix, represents the translation matrix, X C , Y C and Z C Respectively represent the horizontal coordinate, vertical coordinate and vertical coordinate of the camera point cloud in the camera coordinate system.
4. The method for UAV mapping based on multi-sensor fusion according to claim 3 is characterized in that: The plane formed by the horizontal axis and the vertical axis in the camera coordinate system is a horizontal plane; The constructing of the image coordinate system, obtaining the image coordinate information of the image point cloud in the image coordinate system according to the camera coordinate information, specifically includes: Obtaining the focal length of the binocular camera, taking a point at the focal length from the second origin on the vertical axis of the camera coordinate system as the third origin of the image coordinate system, and constructing the image coordinate system in parallel with the horizontal plane, wherein the image coordinate system is a plane coordinate system; Connecting the camera point cloud and the second origin to obtain a connecting line, obtaining an intersection point of the connecting line and the image coordinate system, and using the intersection point as the image coordinate of the image point cloud in the image coordinate system; According to the focal length and the camera coordinate information, the image coordinate information of the image point cloud is calculated and expressed as: Among them, P I represents the coordinate position of the image point cloud in the image coordinate system, and f represents the focal length.
5. The method for UAV mapping based on multi-sensor fusion according to claim 3 is characterized in that: The acquiring of the intrinsic parameter matrix of the binocular camera of the drone and determining the pixel coordinate information of the pixel point cloud according to the intrinsic parameter matrix and the camera coordinate information specifically includes: The intrinsic parameter matrix of the binocular camera is obtained, and the camera coordinate information is converted into pixel coordinate information using the intrinsic parameter matrix, which is expressed as: P u =KP C ; Among them, P u represents the coordinate position of the pixel point cloud in the pixel coordinate system, and K represents the intrinsic parameter matrix; According to the pixel coordinate information, the pixel coordinate system is constructed with the upper left corner of the area to be measured as the fourth origin, and the pixel coordinate system is a plane coordinate system.
6. The method for UAV mapping based on multi-sensor fusion according to claim 1, characterized in that: The receiving of the optical image information in the test area collected by the binocular camera on the drone, inputting the three primary color values of all original point clouds in the optical image information and the image coordinate information into all pixel point clouds corresponding to the pixel coordinate information to obtain the final point cloud, specifically includes: Receiving optical image information in the area to be measured collected by the binocular camera, and acquiring three primary color values of each original point cloud in the area to be measured according to the optical image information; The nonlinear distortion coefficient of the binocular camera of the drone is obtained, and the image coordinate information is dedistorted according to the nonlinear distortion coefficient to obtain the second image coordinate information, which is expressed as: x distorted =x(1+k1r 2 +k2r 4 +k3r 6 )+2k4xy+k5(r 2 +2x 2 ); <h2 style=";text-align:left;direction:ltr">y<h2 style=";text-align:left;direction:ltr"> distorted <h2 style=";text-align:left;direction:ltr"> =y(1+k1r<h2 style=";text-align:left;direction:ltr"> 2 <h2 style=";text-align:left;direction:ltr"> +k2r<h2 style=";text-align:left;direction:ltr"> 4 <h2 style=";text-align:left;direction:ltr"> +k3r<h2 style=";text-align:left;direction:ltr"> 6 <h2 style=";text-align:left;direction:ltr"> )+k4(r<h2 style=";text-align:left;direction:ltr"> 2 <h2 style=";text-align:left;direction:ltr"> +2y<h2 style=";text-align:left;direction:ltr"> 2 <h2 style=";text-align:left;direction:ltr"> )+2k5xy; Among them, x distorted and distorted Respectively represent the abscissa and ordinate of the image point cloud in the image coordinate system after dedistortion, x and y respectively represent the abscissa and ordinate of the image point cloud in the image coordinate information, r represents the distance between the camera point cloud and the second origin of the camera coordinate system, k1, k2, k3, k4 and k5 represent the nonlinear distortion coefficients of the binocular camera; According to the pixel coordinate information, each of the three primary color values and the second image coordinate information is input into a corresponding pixel point cloud to obtain a final point cloud; A point cloud structure is constructed, and the final point cloud is stored in the point cloud structure.
7. The method for UAV mapping based on multi-sensor fusion according to claim 1, characterized in that: The receiving of inertial measurement data and flight attitude information collected by an inertial measurement unit in a flight controller of the UAV, and obtaining a three-dimensional map of the area to be measured according to the inertial measurement data, the flight attitude information and the final point cloud, specifically includes: Receiving inertial measurement data and flight attitude information collected by an inertial measurement unit in a flight controller of the UAV; Input the flight attitude information into the YOLO model for detection, and output the detection result; The bounding box, confidence, category data and inertial measurement data in the detection result are input into the onboard computer of the UAV, and the three-dimensional map sent by the onboard computer is received.
8. An unmanned aerial vehicle mapping system based on multi-sensor fusion, characterized in that: The UAV mapping system based on multi-sensor fusion includes: A spatial coordinate information acquisition module is used to receive the laser radar information in the test area collected by the drone through the laser radar, construct a laser radar coordinate system, process the laser radar information according to the laser radar coordinate system, and obtain the spatial coordinate information of the laser radar point cloud in the laser radar information; A camera coordinate information acquisition module, used to construct a camera coordinate system, transform the spatial coordinate information in the camera coordinate system, and obtain the camera coordinate information of the camera point cloud in the camera coordinate system; An image coordinate information acquisition module is used to construct an image coordinate system and obtain image coordinate information of an image point cloud in the image coordinate system according to the camera coordinate information; A pixel coordinate information acquisition module is used to acquire an intrinsic parameter matrix of the binocular camera of the drone, and determine the pixel coordinate information of the pixel point cloud according to the intrinsic parameter matrix and the camera coordinate information; A final point cloud acquisition module is used to receive the optical image information in the test area collected by the binocular camera on the drone, input the three primary color values of all original point clouds in the optical image information and the image coordinate information into all pixel point clouds corresponding to the pixel coordinate information, and obtain a final point cloud; The three-dimensional map acquisition module is used to receive the inertial measurement data and flight attitude information collected by the inertial measurement unit in the flight controller of the UAV, and obtain the three-dimensional map of the area to be measured according to the inertial measurement data, the flight attitude information and the final point cloud.
9. A terminal, characterized in that: The terminal includes: a memory, a processor, and a drone mapping program based on multi-sensor fusion stored in the memory and executable on the processor. When the drone mapping program based on multi-sensor fusion is executed by the processor, the steps of the drone mapping method based on multi-sensor fusion as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a drone mapping program based on multi-sensor fusion, and when the drone mapping program based on multi-sensor fusion is executed by a processor, the steps of the drone mapping method based on multi-sensor fusion as described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Multi-sensor information visualization method and device, electronic equipment and storage medium
CN121453025A
