Ship berthing and leaving scene map construction method based on stereoscopic perception

Using three-dimensional sensing technology, combined with unmanned aerial vehicles and laser detection radar, a map of ship berthing and berthing scenes was constructed, which solved the problem of low positioning accuracy in dynamic environments and achieved higher safety and accuracy.

CN118691997AActive Publication Date: 2024-09-24WUHAN UNIV OF TECH

Patent Information

Application Number
CN202410941763.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-09-24
Estimated Expiration
2044-07-15

AI Technical Summary

Technical Problem

During the ship berthing and berthing process, dynamic environmental changes make it difficult for existing SLAM technology to construct accurate berthing and berthing scene maps, affecting positioning accuracy and safety, especially in tidal changes and complex port environments.

Method used

Using a method based on stereoscopic perception, three-dimensional point cloud data is obtained through video data collected by small unmanned aerial vehicles and laser detection radar, combined with inertial measurement units and global navigation satellite systems, to construct ship berthing and unberthing scene maps, and through a fully convolutional neural network Perform semantic segmentation and depth information matching, filter out noise blocks, and update dynamic maps in real time.

Benefits of technology

It achieves a smarter and more comprehensive understanding of the environment, improves the safety and positioning accuracy of ship berthing and berthing, adapts to dynamic environmental changes, provides rich guiding information, and enhances the accuracy of berthing and berthing perception.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691997A
    Figure CN118691997A
Patent Text Reader

Abstract

The invention discloses a three-dimensional perception-based ship berthing and leaving scene map construction method, which comprises the following steps of: obtaining visual data information of a ship and a surrounding environment thereof, obtaining high-precision three-dimensional point cloud data for representing space information of the ship and the surrounding environment thereof, obtaining inertial measurement data of the ship and a small unmanned aerial vehicle, and constructing a ship berthing and leaving scene map. Acquiring global position information of the ship; the visual data information, the high-precision three-dimensional point cloud data, the inertial measurement data and the global position information are converted into a north-east coordinate system for data modeling; and constructing a ship berthing and leaving map according to the high-precision three-dimensional point cloud data under an SLAM framework, correcting the high-precision three-dimensional point cloud data through inertial measurement data, and supplementing texture information through visual data information to obtain a ship berthing and leaving scene map. According to the method, richer guidance information is provided, the ship berthing and leaving safety can be improved, and the use value and practical significance are provided for methods in the berthing and leaving sensing field.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of intelligent perception of waterway traffic, and specifically relates to a method for constructing a ship berthing and unberthing scene map based on stereoscopic perception. Background Art

[0002] With the development of globalization and domestic economy, the status of shipping industry in my country is becoming more and more important. The safety of berthing and unberthing is also one of the important concerns of the shipping industry. Due to the increase in global shipping demand and the advancement of ship-related technologies, ships are developing in the direction of high speed and large size. The inertia of large hulls will seriously affect the flexibility of ship operation, especially in the process of berthing and unberthing, the speed of the ship is low, and the wind and current have a greater impact on the movement trajectory of the ship. These factors will greatly increase the potential risks of ships when berthing and unberthing. Therefore, it is particularly important to accurately obtain the relative position and speed information of the ship and the berth to improve the safety, automation and intelligence level of the ship's berthing and unberthing process. This requires the construction of a real-time comprehensive environmental understanding, higher precision, and more detailed berthing and unberthing scene map as a prerequisite.

[0003] In coastal or estuary areas, the water level of port berths will change with the periodic changes of tides. In some areas, the difference in port water level between high tide and low tide is as high as 3 meters. The change of water level in a short period of time will lead to inaccurate perception of the environment by ships and low positioning accuracy, making it impossible for ships to accurately dock at designated berths; or ships will enter port berths in unknown scenarios. Without accurate map support, it is difficult for the captain to have accurate control of the environment. Therefore, it is of great significance to build a real-time and comprehensive berthing and unberthing scene map.

[0004] SLAM technology is a hot topic in the field of perception research and is widely used in various aspects of perception research. In recent years, based on the front-end plus back-end architecture, whether it is front-end technology based on filtering or optimization, or back-end factor graph optimization technology or loop detection and other related technical solutions, significant progress has been made. A number of related products such as warehouse AGV, unmanned sweeper, and low-speed unmanned delivery vehicle have been launched. However, many SLAM technologies are currently based on static environment assumptions, and robust mapping and positioning technology in dynamic environments is still an urgent problem to be solved. Due to environmental changes, the actual environment during mapping is often different from the environment during positioning operations, which is likely to cause positioning deviations and affect the final operation results. In the process of ship berthing and unberthing, this disadvantage will be more obvious, because there are often other ships, buoys, surges, tides and other dynamic factors in the port berthing area. These complex environmental information will affect the perception method's understanding of the environment and reduce the accuracy of positioning, which is not conducive to robust mapping and positioning in berthing and unberthing scenarios. Summary of the invention

[0005] The purpose of the present invention is to provide a method for constructing a ship berthing and unberthing scene map based on stereoscopic perception, to achieve a smarter and more comprehensive environmental understanding, and to provide richer guiding information, which will help improve the safety of ship berthing and unberthing, and provide use value and practical significance for methods in the field of berthing and unberthing perception.

[0006] In order to solve the above technical problems, the technical solution of the present invention is: a method for constructing a ship berthing and unberthing scene map based on stereoscopic perception, comprising the following steps: S1. Data is collected from ships within the preset berthing and unberthing range through a video data information collector installed on a small unmanned aerial vehicle, and video data information of the ship's surrounding environment is scanned to obtain the spatial position, speed, and size information of each object in the video. High-precision three-dimensional point cloud data used to represent the spatial information of the ship and its surrounding environment is obtained through a laser detection radar, including the position of each point in three-dimensional space, reflection intensity, time when it is captured, and distance depth information to each point, etc.; inertial measurement units are respectively installed on the ship and the small unmanned aerial vehicle to obtain inertial measurement data of the ship and the small unmanned aerial vehicle. The inertial measurement data of the ship and the small unmanned aerial vehicle include the attitude of the ship and the unmanned aerial vehicle: respectively composed of roll angle, pitch angle, heading angle, and angular velocity and acceleration of the three axes of roll, pitch and heading. The global position information of the ship, including longitude, latitude, altitude, etc., is obtained through the global navigation satellite system.

[0007] S2, converting visual data, high-precision 3D point cloud data, inertial measurement data and global position information into a north-east coordinate system for data modeling; S3. Under the SLAM framework, a ship berthing and departure map is constructed based on the high-precision three-dimensional point cloud data of the lidar, and the high-precision three-dimensional point cloud data is corrected by inertial measurement data to optimize the accuracy of the ship berthing and departure map constructed by the lidar. The texture information of the ship berthing and departure map is supplemented by the visual data collected by a small unmanned aerial vehicle to obtain the final ship berthing and departure scene map.

[0008] It also includes: S4, a visual inertial odometer subsystem is formed by a video data information collector and an inertial measurement unit set on a small unmanned aerial vehicle, which is used to estimate the position and posture of the ship on the water surface and assist in the precise positioning of the ship; An improved U-Net model based on a fully convolutional neural network is constructed on the visual inertial odometry subsystem to output segmented images of the ship berthing and unberthing scene map with various preset meaning information, and perform semantic segmentation and annotation on the various preset meaning information to obtain the semantic information of the segmented image.

[0009] It also includes: S5, obtaining depth information from high-precision three-dimensional point cloud data, matching the semantic information of the segmented image with the high-precision three-dimensional point cloud data, aligning the depth information with the dynamic object area detected by the U-Net model to ensure that each dynamic object area has corresponding depth information, presetting a depth consistency threshold, and for each pixel in the segmented image, calculating the difference between its depth value and the average depth value of the corresponding dynamic object area. When the difference of a pixel exceeds the depth consistency threshold, the pixel is marked as a noise block and the pixel is filtered out.

[0010] It also includes: S6, modeling the pixel points of the dynamic objects that are not filtered out in the dynamic object area detected by the U-Net model in the ship berthing and leaving scene map, tracking the movement of the dynamic objects, predicting their movement trajectories in combination with the kinematic model, adding the predicted trajectory information to the ship berthing and leaving scene map and continuously tracking it, and updating it in real time to obtain a dynamic map of the ship berthing and leaving scene.

[0011] The specific method in S3 for correcting the high-precision three-dimensional point cloud data by inertial measurement data to optimize the accuracy of the ship berthing and unberthing map constructed by the laser detection radar is as follows: The set of high-precision three-dimensional point cloud data collected by the preset laser detection radar is expressed as P={ }, the pitch angle of the small unmanned aerial vehicle detected by the inertial measurement unit is , the scanning angle of the laser detection radar is , the corrected laser detection radar scanning angle is , then the compensation formula for the pitch angle and the correction formula for the scanning angle are expressed as:

[0012]

[0013] When estimating the position and attitude of a ship by the generalized iterative closed point method, the observed data will contain noise to varying degrees, which will lead to the cumulative error of attitude estimation. The cumulative error is expressed as:

[0014] in, is the error function, is the number of points in the high-precision 3D point cloud data, is the normal vector of the plane, is the rotation matrix of the ship, and They are the corresponding points in the previous frame and the next frame respectively, so as to eliminate the cumulative error and further optimize the accuracy of the ship berthing and leaving map constructed by the lidar.

[0015] The U-Net model in S4 is an improved network structure based on a fully convolutional neural network. The network is characterized by a U-shaped symmetrical structure and consists of three parts: an encoder, a skip connection, and a decoder. In the encoder stage, the semantic features and contextual information of the docking and undocking video images are extracted through a 3×3 convolution layer, a Re-LU activation function, and a 2×2 maximum pooling layer downsampling operation. The decoder uses a 2×2 deconvolution operation and a skip connection layer to concatenate the deconvolution result with the corresponding feature map to restore the lost edge features and retain the underlying position information. After upsampling, a 1×1 convolution layer is used to adjust the number of channels and output a segmented image of the ship docking and undocking scene map with various preset meaning information.

[0016] S4 also includes: calculating the loss of each pixel position through pixel-by-pixel cross entropy loss, and then summing and averaging to obtain the loss of the entire segmented image , expressed as:

[0017] in, represents the number of samples, represents the number of categories, represents the true label, Represents the predicted label.

[0018] The method for calculating the difference between its depth value and the average depth value of the corresponding dynamic object area in S5 is:

[0019] Among them, the depth value of the dynamic object area is , The difference between its depth value and the average depth value of the dynamic object area; if the difference exceeds the depth consistency threshold, the pixel is marked as a noise block; only the pixels whose depth information and the depth of the detected dynamic object area are less than or equal to the depth consistency threshold are retained, and the new dynamic object area is expressed as:

[0020] in, is the set of pixels after filtering the noise block, is the original pixel set.

[0021] The sampling frequencies of the lidar, inertial measurement unit and global navigation satellite system are adjusted to be consistent, and the lowest value of the three sampling frequencies is taken as the unified sampling frequency.

[0022] A computer-readable storage medium is also provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0023] Compared with the prior art, the present invention has the following beneficial effects: The present invention extracts the correlation between dynamic information through the information of the previous and next continuous frames taken by a small unmanned aerial vehicle, semantic information, etc., and filters the dynamic information in the environment in combination with the scene depth information provided by the ship-borne laser detection radar, thereby adapting to the dynamic environment. At the same time, integrating semantic information into SLAM is also valuable for the perception level, and can help identify information such as port facilities, ship signs, and dock structures. A smarter and more comprehensive understanding of the environment is achieved, and more abundant guiding information is provided. This will help improve the safety of ship berthing and unberthing, and provide use value and practical significance for methods in the field of berthing and unberthing perception. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is a schematic diagram of the overall structure of an embodiment of the present invention; Figure 2 A schematic diagram of a SLAM method framework integrating spatial stereoscopic perception in an embodiment of the present invention; FIG3 (a) is a simplified schematic diagram of an actual working scenario in an embodiment of the present invention; FIG3( b ) is a simplified schematic diagram of a predicted SLAM scanning scene in an embodiment of the present invention. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solutions and advantages 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 intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0026] The present invention aims to provide a SLAM perception system based on laser detection radar-small unmanned aerial vehicle vision-IMU fusion and assisted by GNSS to solve the problems raised in the above background technology.

[0027] refer to Figure 1 - Figure 3 (b), the present invention adopts the following technical solution: a method for constructing a ship berthing and unberthing scene map based on stereoscopic perception, the main steps of which are as follows: S1, GNSS, IMU, LiDAR and small UAV visual data collection A high-resolution binocular optical camera mounted on a small unmanned aerial vehicle (a high-resolution binocular optical camera is used as a video data information collector in this embodiment) is used to shoot ships within the set range of berthing and unberthing, and the hovering position and height of the small unmanned aerial vehicle are adjusted so that the preset berth is in the center of the image screen, and high-resolution overhead visual data of the berthing and unberthing process is obtained. At the same time, a laser detection radar is used to obtain high-precision three-dimensional point cloud data to provide spatial information of the ship and the surrounding environment. There are two IMU devices, which are respectively mounted on the ship and the small unmanned aerial vehicle, which record the attitude of the ship, the angular velocity and acceleration of the three axes of roll, pitch and heading, and the attitude of the small unmanned aerial vehicle, and the angular velocity of the three axes of roll, pitch and yaw in real time. The global position information of the ship is obtained through GNSS.

[0028] S2. Online processing of multi-sensor data The present invention mainly uses the NED coordinate system as the coordinate reference system for display and result analysis, models the spatial coordinate system of the visual data of the small unmanned aerial vehicle, calibrates the internal parameters of the camera carried by the small unmanned aerial vehicle: such as focal length, distortion, and external parameters: the position and posture of the camera relative to the small unmanned aerial vehicle, and ensures that the pixel coordinates in the image collected by the small unmanned aerial vehicle can be mapped to the coordinates of the real world. The visual data, three-dimensional point cloud data, and IMU data are all converted to the NED coordinate reference system, and the origin of the NED coordinate reference system is set to the position of the ship in the initial state. During data processing, the earth's inertial coordinate system also needs to be converted to the NED coordinate system. The conversion of the small unmanned aerial vehicle visual coordinate reference system to the NED coordinate reference system can be achieved by formula (1): (1) in, is the rotation angle, is the position of the small unmanned aerial vehicle in the visual coordinate system, is the position in the NED coordinate system, is the translation matrix of the small unmanned aerial vehicle along three axes.

[0029] In the ship's body coordinate system The velocity components and rotation angles of the three axes are calculated as , which is measured by the IMU. The motion in the vessel's body coordinate system can be converted to the motion in the NED coordinate system by the following formula: (2) (3) (4) (5) (6) in , , Respectively around Three-axis rotation The rotation matrix of degrees; The Euler angle rotation matrix for rotating the attached coordinate reference system to the NED coordinate reference system; is the ship's position in the NED coordinate system The location at the moment; is the sampling time; for The three-axis attitude angle of the ship at the moment; for The velocity components of the three axes of the ship at the moment.

[0030] There will be inevitable deviations in the installation positions and angles of the laser detection radar and the IMU, so it is also necessary to convert the data of the point cloud coordinate system to the ship's body coordinate system, and then convert the point cloud data to the NED coordinate system through the IMU data. The processing from the point cloud coordinate system to the body coordinate system is similar to that from the body coordinate system to the NED coordinate system. First, you need to define the rotation matrix The Euler angle rotation matrix for rotating the point cloud coordinate system to the attached coordinate system; secondly, because the laser detection radar and the ship are relatively stationary, only a translation matrix needs to be established To correct this offset. The coordinates of one of the points at time It can be calculated by formula (7): (7) in, is the position of the point in the coordinate system of the ship's body, The rotation parameter is converted from the body coordinate system to the NED coordinate system, and the generated point cloud coordinates will be converted to the NED coordinate system.

[0031] Since the sampling frequencies of the sensors are different, the laser point cloud needs to be aligned in time. In this embodiment, the sampling frequency of the unmanned boat laser detection radar is 10 Hz, the sampling frequency of the IMU is 50 Hz, and the sampling frequency of the GNSS is 10 Hz. In order to process the data of different frequencies, 10 Hz is selected as the base frequency for processing, and the IMU data is downsampled. Through the interpolation method, the original 50 Hz IMU data is adjusted to the same 10 Hz frequency as the laser detection radar and GNSS data, thereby ensuring that the data of each sensor is aligned in time.

[0032] S3, real-time construction of ship berthing and departure maps Visual SLAM methods are more sensitive to details such as color and texture, and are suitable for target recognition and scene understanding. However, in poor lighting conditions or in large outdoor scenes, their matching accuracy will decrease, performance will be limited, and monocular cameras cannot directly measure the absolute scale in the scene. Laser SLAM methods can provide accurate distance and height information and are used in various lighting conditions, but they have higher requirements for the performance of algorithms and hardware, and are very sensitive to rain, which is not conducive to the wide application of this method. The visual and laser fusion SLAM method complements the advantages of the two data to obtain better positioning and mapping capabilities, but the accuracy calibration between the two sensors is often difficult, and there is a lack of more tightly coupled LiDAR and visual sensor fusion algorithms. At present, experiments combining LiDAR and visual sensors often only stay at a relatively low level of fusion, mainly using the results of two range measurement steps to complete, which means that LiDAR detection and visual detection cannot help closely, and decisions are made only when the relative displacement estimation is fused, which will not fully utilize the capabilities of LiDAR.

[0033] Therefore, the present invention uses a SLAM framework of LiDAR-IMU-UAV visual fusion with tighter coupling for docking and undocking scenes. The framework is based on multi-sensor equipment and combines LiDAR, cameras carried by small unmanned aerial vehicles, IMU, and GNSS. Among them, GNSS provides positioning for the visual coordinate system and LiDAR coordinate system of the small unmanned aerial vehicle. The remaining sensors mainly constitute two subsystems, one is a laser inertial odometer (LIO) subsystem composed of ship-borne LiDAR and IMU. The LIO subsystem constructs the geometric structure of the docking and undocking map by aligning the point cloud measurement values ​​of each input LiDAR scan. The Gaussian interpolation algorithm is first used to densify the machine LiDAR point cloud data, and then the generalized iterative closed point (GICP) method is used to iteratively estimate the LiDAR attitude and other system states by minimizing the distance from each point in the scan to the plane fitted from the corresponding point in the map, and the attitude change of the ship between different time steps is estimated. Then, the estimated state estimation is used to attach new points to the map, and the continuous LiDAR scan data is converted into a coherent map. When a ship is operating at sea, it may be affected by natural factors such as waves and its hull may undergo pitch motion. The resulting change in scanning height may cause disturbances in the data collected by the LiDAR. More importantly, changes in the pitch angle may also cause distortion in the LiDAR scanning angle, resulting in the inability to properly match and associate the laser point cloud data of the previous and next frames, thereby affecting the accuracy and stability of the SLAM method for mapping and positioning. Therefore, it is necessary to correct the collected laser point cloud data through the pitch angle information obtained by the IMU to ensure the consistency of the data in the horizontal direction. Assume that the set of data points collected by the LiDAR is P={ }, the pitch angle is , the laser detection radar scanning angle is , the corrected laser detection radar scanning angle is The compensation formula for the pitch angle and the correction formula for the scan angle are as follows: (8) (9) When the generalized iterative closed point method is used to estimate the position and attitude of a ship, the observed data will contain noise to varying degrees. Noise will lead to cumulative errors in attitude estimation, and this error will increase over time. This requires the back-end to eliminate the cumulative error through filtering or optimization algorithms to improve the accuracy of positioning and mapping. The present invention requires scanning matching to achieve the estimation of the pose transformation of adjacent frames of the ship. According to the pose transformation, it cannot be guaranteed that all the laser detection radar data of the previous frame is completely consistent with the laser data of the next frame. The error calculation is shown in formula (10), where, is the error function, is the number of points in the point cloud, is the normal vector of the plane, is the rotation matrix of the ship, and They are the corresponding points in the previous frame and the next frame, respectively, to eliminate the accumulated error and further optimize the map constructed by the lidar.

[0034] (10) The other is a visual inertial odometry (VIO) subsystem consisting of a binocular camera and an IMU carried by a small UAV. The VIO subsystem can use the visual information captured by the small UAV and the IMU data it carries to estimate the position of the ship on the water surface and assist in the accurate positioning of the ship. At the same time, the visual data captured by the small UAV can supplement the texture information for the map constructed by the laser detection radar.

[0035] S4. Integrate the U-Net model in the VIO subsystem to realize the recognition of semantic information of docking and undocking scenes and semantic modeling of maps The U-Net model is constructed and used to obtain the meaning information of objects in the environment. U-Net is an improved network structure based on the fully convolutional neural network. The network is characterized by a U-shaped symmetrical structure and consists of three parts: encoder, jump connection, and decoder. In the encoder stage, the semantic features and contextual information of the docking and departure video images are extracted through 3×3 convolution layers, Re-LU activation functions, and 2×2 maximum pooling layer downsampling operations. The right decoder uses a 2×2 deconvolution operation and combines the jump connection layer to splice the deconvolution result with the corresponding feature map to restore the lost edge features and retain the underlying position information. After upsampling, the number of channels is adjusted through a 1×1 convolution layer, and finally the segmented images of various meanings of the docking and departure scenes are output.

[0036] After the model is built, the collected image data is segmented and annotated with corresponding meanings, and each pixel is assigned to the corresponding meaning category: such as ships, docks, buoys, water surfaces, shorelines, waves, etc. The pre-annotated data set is divided into training sets, validation sets, and test sets to train and evaluate the model. The loss function is minimized as shown in formula (11). The trained and verified U-Net model is used to perform semantic segmentation on the new input docking and undocking scene images. After recognition and classification by U-Net, the distribution and state changes of each landmark in the docking and undocking scene can be more accurately reflected in the semantic map. Due to the flexibility of the U-Net network structure and the effective capture of detailed features, it can realize the semantic feature recognition of complex water scenes, complement the constructed three-dimensional map, and provide a more comprehensive environmental perception.

[0037] (11) in, represents the number of samples, represents the number of categories, represents the true label, The predicted label represented by . The pixel-by-pixel cross entropy loss is used here to calculate the loss of each pixel position, and then the sum and average are used to obtain the loss of the entire image. During the training process, by minimizing the cross entropy loss function, the model can learn more accurate pixel-level prediction results on the training data, thereby improving the accuracy of image segmentation. With the help of the completed semantic information extraction, it is classified to distinguish dynamic and static objects, and filter out dynamic information such as ships, buoys, and personnel.

[0038] S5. Combining scene semantic information and depth information to filter out dynamic object areas However, due to the complex environmental changes in docking and undocking scenarios, changes in illumination will cause the U-Net model to misjudge some static objects or debris in the background as dynamic objects. The model's identified area may not fully cover the moving object, or the coverage area may be too much. In particular, the boundary of the object and the boundary information will leak into the point cloud map, forming a large number of noise blocks, affecting the accuracy of mapping and positioning. Since the shape of the noise block is generally long and narrow and distributed in the boundary area of ​​the object, but the depth information value of the noise block is often very different from that of the actual boundary area of ​​the object, the present invention adopts a filtering strategy based on depth information to remove the noise block. The LIO subsystem and the VIO subsystem are combined together, wherein the LIO subsystem is mainly composed of a LiDAR sensor, an inertial measurement unit, and a computing unit; the VIO subsystem is composed of a high-resolution binocular optical camera, an inertial measurement unit, and a computing unit. By combining the two subsystems, the map point cloud features are extracted from the data scanned by the laser detection radar and the depth information of the content in the scene is obtained. The semantic information that has been recognized is selected from the image data, and the laser point cloud data features and visual semantic information are matched to align the depth information with the dynamic object area detected by the U-Net model to ensure that each dynamic object area has corresponding depth information. Set a depth consistency threshold , for each pixel, calculate the difference between its depth value and the average depth value of the corresponding dynamic object area. As shown in formula (12): (12) Among them, the depth value of the dynamic object area is , the difference between its depth value and the average depth value of the dynamic object area is , if the difference exceeds the set threshold, the pixel is marked as a noise block. Only the pixels whose depth information is consistent with the depth of the detected dynamic object area are retained, and the pixels that are inconsistent with it are removed. The new dynamic object area is shown in formula (13).

[0039] (13) in, is the set of pixels after filtering the noise block, The two subsystems jointly and gradually build a three-dimensional environment map that can adapt to the dynamic environment and contain the meaning information of the corresponding objects in real time.

[0040] S6. Dynamic map construction The construction of the laser three-dimensional point cloud map is completed through the laser inertial odometry subsystem. The visual semantic map is constructed in the visual inertial odometry subsystem, and the noise blocks are filtered out in combination with the depth information of the laser point cloud map, making the map more accurate. By matching the pixel coordinates of the camera with the points on the laser point cloud, the pixel-level category information obtained by semantic segmentation is mapped to the three-dimensional point cloud to ensure that each point can get a corresponding label. According to the meaning information obtained by projection, a corresponding label is added to each point in the three-dimensional point cloud. The semantic information of each point is stored as an additional attribute and the color in the point cloud is modified to represent different categories. At the same time, the point cloud marked with semantic information is fused with the original map to update the meaning information of each point in the map. The detected dynamic objects are modeled in the map. The movement of the dynamic object is tracked and its motion trajectory is predicted in combination with the kinematic model, as shown in formula (14). The external forces and external torques acting on the hull are shown in formula (15). Among them, the subscripts are They represent the forces and moments acting on the hull from static ocean fluid, propeller, rudder, wind, wave, and flow. The predicted trajectory information is added to the map and continuously tracked and updated. A 3D environment map containing semantic information that can adapt to dynamic environments is constructed in real time.

[0041] (14) (15) It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for constructing a ship berthing and unberthing scene map based on stereoscopic perception, characterized in that: The following steps are involved: S1. Data is collected from ships within the preset berthing and unberthing range by using a video data information collector installed on a small unmanned aerial vehicle, and video data information of the ship and its surroundings is obtained by scanning. The video data information includes the spatial position, speed, and size information of the ship and its surroundings, and high-precision three-dimensional point cloud data used to represent the spatial information of the ship and its surroundings is obtained by using a laser detection radar. The high-precision three-dimensional point cloud data includes the position of each point in the image in three-dimensional space, the reflection intensity, the time when it is captured, and the distance depth information to each point; inertial measurement units are respectively installed on the ship and the small unmanned aerial vehicle to obtain inertial measurement data of the ship and the small unmanned aerial vehicle. The inertial measurement data of the ship and the small unmanned aerial vehicle include the attitudes of the ship and the small unmanned aerial vehicle: the roll angle, pitch angle, heading angle, and the angular velocity and acceleration of the three axes of roll, pitch and heading, respectively; the global position information of the ship is obtained through the global navigation satellite system, and the global position information includes longitude, latitude, and altitude; S2, converting visual data, high-precision 3D point cloud data, inertial measurement data and global position information into a north-east coordinate system for data modeling; S3. Under the SLAM framework, a ship berthing and departure map is constructed based on the high-precision three-dimensional point cloud data of the lidar, and the high-precision three-dimensional point cloud data is corrected by inertial measurement data to optimize the accuracy of the ship berthing and departure map constructed by the lidar. The texture information of the ship berthing and departure map is supplemented by the visual data collected by a small unmanned aerial vehicle to obtain the final ship berthing and departure scene map.

2. According to the method for constructing a ship berthing and unberthing scene map based on stereoscopic perception in claim 1, it is characterized in that: Also includes: S4. A visual inertial odometer subsystem is formed by a video data information collector and an inertial measurement unit installed on a small unmanned aerial vehicle to estimate the position of the ship on the water surface and assist in the precise positioning of the ship; An improved U-Net model based on a fully convolutional neural network is constructed on the visual inertial odometry subsystem to output segmented images of the ship berthing and unberthing scene map with various preset meaning information, and perform semantic segmentation and annotation on the various preset meaning information to obtain the semantic information of the segmented image.

3. The method for constructing a ship berthing and unberthing scene map based on stereoscopic perception according to claim 2, characterized in that: Also includes: S5. Obtain depth information from high-precision three-dimensional point cloud data, match the semantic information of the segmented image with the high-precision three-dimensional point cloud data, align the depth information with the dynamic object area detected by the U-Net model to ensure that each dynamic object area has corresponding depth information, preset a depth consistency threshold, and for each pixel in the segmented image, calculate the difference between its depth value and the average depth value of the corresponding dynamic object area. When the difference of a pixel exceeds the depth consistency threshold, the pixel is marked as a noise block and filtered out.

4. The method for constructing a ship berthing and unberthing scene map based on stereoscopic perception according to claim 3 is characterized in that: Also includes: S6. Model the pixel points of the dynamic objects that are not filtered out in the dynamic object area detected by the U-Net model in the ship berthing and leaving scene map, track the movement of the dynamic objects, predict their movement trajectories in combination with the kinematic model, add the predicted trajectory information to the ship berthing and leaving scene map and continue tracking, and update the dynamic map of the ship berthing and leaving scene in real time.

5. The method for constructing a ship berthing and unberthing scene map based on stereoscopic perception according to claim 1, characterized in that: The specific method in S3 for correcting the high-precision three-dimensional point cloud data by inertial measurement data to optimize the accuracy of the ship berthing and unberthing map constructed by the laser detection radar is as follows: The set of high-precision three-dimensional point cloud data collected by the preset laser detection radar is expressed as P={ }, the pitch angle of the small unmanned aerial vehicle detected by the inertial measurement unit is , the scanning angle of the laser detection radar is , the corrected laser detection radar scanning angle is , then the compensation formula for the pitch angle and the correction formula for the scanning angle are expressed as: When estimating the position and attitude of a ship by the generalized iterative closed point method, the observed data will contain noise to varying degrees, which will lead to the cumulative error of attitude estimation. The cumulative error is expressed as: in, is the error function, is the number of points in the high-precision 3D point cloud data, is the normal vector of the plane, is the rotation matrix of the ship, and They are the corresponding points in the previous frame and the next frame respectively, so as to eliminate the cumulative error and further optimize the accuracy of the ship berthing and leaving map constructed by the lidar.

6. The method for constructing a ship berthing and unberthing scene map based on stereoscopic perception according to claim 2, characterized in that: The U-Net model in S4 is an improved network structure based on a fully convolutional neural network. The network is characterized by a U-shaped symmetrical structure and consists of three parts: an encoder, a skip connection, and a decoder. In the encoder stage, the semantic features and context information of the video image are extracted through a 3×3 convolutional layer, a Re-LU activation function, and a 2×2 maximum pooling layer downsampling operation. The decoder performs a 2×2 deconvolution operation and combines the jump connection layer to concatenate the deconvolution result with the corresponding feature map to restore the lost edge features and retain the underlying position information. After upsampling, it adjusts the number of channels through a 1×1 convolution layer to output a segmented image of the ship berthing and unberthing scene map with various preset meanings.

7. The method for constructing a ship berthing and unberthing scene map based on stereoscopic perception according to claim 2, characterized in that: S4 also includes: calculating the loss of each pixel position through pixel-by-pixel cross entropy loss, and then summing and averaging to obtain the loss of the entire segmented image , expressed as: in, represents the number of samples, represents the number of categories, represents the true label, Represents the predicted label.

8. The method for constructing a ship berthing and unberthing scene map based on stereoscopic perception according to claim 3 is characterized in that: The method for calculating the difference between its depth value and the average depth value of the corresponding dynamic object area in S5 is: Among them, the depth value of the dynamic object area is , The difference between its depth value and the average depth value of the dynamic object area; if the difference exceeds the depth consistency threshold, the pixel is marked as a noise block; only the pixels whose depth information and the depth of the detected dynamic object area are less than or equal to the depth consistency threshold are retained, and the new dynamic object area is expressed as: in, is the set of pixels after filtering the noise block, is the original pixel set.

9. The method for constructing a ship berthing and unberthing scene map based on stereoscopic perception according to claim 1, characterized in that: The sampling frequencies of the lidar, inertial measurement unit and global navigation satellite system are adjusted to be consistent, and the lowest value of the three sampling frequencies is taken as the unified sampling frequency.

10. A computer-readable storage medium having a computer program stored thereon, 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 9 are implemented.

Citation Information

Patent Citations

  • Visual perception device and method for ship navigation environment

    CN113705375A

  • Multi-sensor fusion-based unmanned ship synchronous positioning and mapping method (SLAM) and multi-sensor fusion-based unmanned ship synchronous positioning and mapping system

    CN115031718A

  • SLAM technology-based three-dimensional scene reconstruction and display system for ship entering and leaving port

    CN115115777A

  • Unmanned aerial vehicle indoor mapping and positioning method for ship detection

    CN115902930A

  • Nearshore real-time positioning and mapping method for unmanned surface vehicle with multiple distance measuring sensors

    US11450016B1

Cited By

  • Parking map construction method, device and system and vehicle

    CN120008582A

  • Bulk cargo cabin real-time fusion detection method based on laser point cloud

    CN120953342A

  • Intelligent ship water diversion method and system based on multi-source laser radar sensing fusion

    CN121325188A

  • Ship intelligent water diversion method and system based on multi-view vision fusion and semantic perception

    CN121459300A