Ship size measurement method based on laser radar

Through the ship size measurement method based on lidar, combined with a variety of technical means, the precise monitoring and analysis of ships in inland waterways is achieved, which solves the problem of low monitoring efficiency in the existing technology and improves the detection accuracy and automation level.

CN118758172AActive Publication Date: 2024-10-11SUZHOU UNIV +1

Patent Information

Application Number
CN202410730582.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-10-11
Estimated Expiration
2044-06-06

AI Technical Summary

Technical Problem

Existing technology is difficult to achieve accurate monitoring, statistics and analysis of ships in inland waterways, resulting in low efficiency in traffic congestion, bridge anti-collision warning systems and overload and over-limit detection.

Method used

The ship size measurement method based on lidar is used to collect ship point cloud data in a digital, information-based and intelligent way. It combines spatial coordinate noise filtering, DBSCAN clustering, edge feature detection and multi-frame fusion technology to achieve ship size measurement. and accurate monitoring of traffic.

Benefits of technology

It improves the accuracy of ship detection, provides a solid data foundation, provides important support for the evaluation and analysis of waterway traffic, and realizes all-weather automated and intelligent ship main scale detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118758172A_ABST
    Figure CN118758172A_ABST
Patent Text Reader

Abstract

The invention discloses a ship size measurement method based on a laser radar. The method mainly comprises the following steps: 1) scanning and collecting point cloud data in a navigation channel in real time by using a laser radar sensor; 2) performing intra-region point cloud data extraction on the channel region by using a space coordinate noise filtering method; 3) filtering noise points on the water surface by utilizing the characteristic difference of different reflected light intensities of different objects; 4) clustering the point clouds in the channel by using a DBSCAN algorithm, and performing target detection on the ship; 5) judging the sailing direction of the ship by extracting and analyzing the edge features of the ship; 6) through multi-frame fusion and splicing of ship point clouds, compensating missing point clouds at the bow and the stern, and enhancing point cloud data to obtain more complete ship point clouds; and 7) constructing an AABB bounding box model by using the ship point cloud set, and performing size calculation on the length feature, the width feature and the height feature of the ship. The ship dimension measurement method can accurately detect dimension characteristics of the length, the width and the height of the ship.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of laser radar technology, and in particular to a ship size measurement method based on laser radar. Background Art

[0002] my country has a vast territory, numerous inland river systems and abundant water transport resources. As the Ministry of Transport of China pays more and more attention to water transport, the measurement of the dimensions of heavy ships in inland waterways is an important research topic in water transport. As the national waterway "network" becomes more and more dense, the "digitalization" of inland waterways is an important task for development at this stage. The monitoring, statistics and analysis of ships are of great significance to the development of smart waterways. At the same time, accurate measurement of the main dimensions of ships is conducive to preventing traffic congestion, strengthening the bridge anti-collision warning system, preventing ships from overloading and over-limit operation, and preventing ships from speeding. At present, there is an urgent need for a solution to realize the monitoring, statistics and analysis of ships.

[0003] LiDAR has the advantages of strong spatial perception, strong environmental adaptability, and the ability to accurately detect high-resolution microscopic ship data. The use of LiDAR in inland waterways can accurately collect point clouds of ships in the waterway, and then monitor, count and analyze ship flow, heading, size, tonnage and other information through informatization, digitization and intelligent methods, which not only saves manpower and material resources, but also greatly reduces manual observation errors, thereby improving the effectiveness of statistical results. In summary, the current digital and intelligent ship size measurement method is an urgent research direction. Summary of the invention

[0004] In order to solve the shortcomings of the prior art, the purpose of the present invention is to provide a method for measuring the size of a ship based on a laser radar. By measuring the size of a ship in a digital, informational and intelligent way, the flow information, heading information and size information of ships passing through the current waterway can be accurately grasped, providing a strong data basis for evaluating and analyzing the economic situation of waterway transportation.

[0005] In view of the above purpose, the present invention proposes a ship size measurement method based on laser radar, which specifically includes the following steps:

[0006] S1: Ship point cloud data collection based on LiDAR. The LiDAR collection system is deployed in the center of the bridge, and the tripod is welded in the middle of the bridge and protrudes from the bridge. The LiDAR is placed on the tripod. This deployment of LiDAR can maximize the use of LiDAR harnesses, reduce the occlusion of bridge fences and between ships, and collect relatively complete ship point cloud data.

[0007] S2: Filter out noise and select the channel area by using the spatial coordinate noise filtering method. Since the laser radar is fixedly deployed on a tripod protruding from the center of the bridge, the collected original point cloud data not only contains ship point cloud data, but also other noise point clouds (including shore noise point clouds, bridge noise point clouds and fluctuating water surface noise point clouds). The channel area is a fixed area relative to the laser radar. Therefore, by calculating the laser radar deployment position and the shore position, the coordinates of the current channel area in the laser radar point cloud data coordinate system are determined. By setting the coordinate parameters, the noise points on the bridge and the shore are filtered out, and the ship point cloud data in the channel area is retained.

[0008] S3: Filter out the water surface noise points by using the different characteristics of reflected light intensity between the water surface and the ship surface. After the channel area is selected, the ship point cloud data is retained while a part of the water surface noise point cloud (dynamic water surface noise points formed after the ship passes through the water surface or the wind passes through the water surface) is retained. The reflected light intensity values ​​of the water surface noise points and the ship point cloud data are significantly different. According to the set reflected light intensity threshold, the water surface noise point cloud is filtered out and the shape of the ship point cloud data is retained.

[0009] S4: Ship target detection based on DBSCAN clustering method. Laser point cloud data is essentially a low-resolution discrete sampling data. Clustering is to divide data objects with high similarity into the same cluster and data objects with high dissimilarity into different clusters. The DBSCAN clustering algorithm is a density-based spatial clustering algorithm. The algorithm will have clusters with sufficient density and find clusters of arbitrary shapes in a noisy spatial database. Use the DBSCAN clustering method to cluster the disordered ship point cloud into clusters, and mark the ship clusters with id numbers in order.

[0010] S5: Ship flow statistics and navigation direction judgment based on edge features. Using a section as a detection method, detect and extract the edge features of the bow and stern of the ship. The number of ships passing through the section is counted by extracting edge features, and the navigation direction of the ship is judged by comparing the time difference between the appearance of the edge features of the two sections.

[0011] S6: A method for completing missing ship point clouds based on a multi-frame fusion method. Find the frames where the ship is close to the lidar, find and select a frame with a relatively complete ship point cloud as the reference frame, and save the data of the reference frame in the matrix. The ship point clouds in the frames with a large concentration of ship point clouds near the reference frame are also extracted and saved in the matrix, and point cloud fused and registered with the ship point clouds of the reference frame. Take the complete bow and stern point clouds, splice them with the relatively complete point clouds of the ship, splice the ship point clouds into a relatively complete point cloud, and at the same time enhance the ship point cloud data to obtain more complete ship point cloud data, so that the next step of calculating the ship size data is more accurate.

[0012] S5: Calculation of the main scale of the ship based on LiDAR point cloud data. The calculation of the main scale of the ship includes calculating the length, width and height information of the ship. The length of the ship refers to the full length of the ship, that is, the distance from the bow to the stern; the width of the ship refers to the full width of the ship, that is, the distance between the edge decks on both sides of the ship; the height information of the ship refers to the height distance from the ship deck to the waterline. According to the ship point cloud obtained in the previous step, an AABB bounding box model is established for the ship point cloud set. The AABB bounding box is defined as the smallest cuboid that can enclose the model to be tested and always has eight sides parallel to the spatial coordinate axes. The area of ​​the AABB bounding box is represented as follows:

[0013] S = {(x, y, z)|x min≤ x ≤ x max ,y min≤ y ≤ y max , z min≤ z ≤ z max},

[0014] Furthermore, the laser radar-based ship point cloud data acquisition system in step S1 includes four modules: a laser radar external unit, a laser radar internal unit, a switching power supply and an industrial computer. The switching power supply is used to control the on / off state of the entire system, the laser radar sensor is used to scan and collect point cloud information in the channel, and the industrial computer is used to process point cloud data.

[0015] Furthermore, the waterway area division based on the spatial coordinate method in step S2. According to the data scanned by the laser radar, the range of the inland waterway in the x, y, and z axes is found and calculated, and the coordinate range of the bridge noise point, the coordinate range of the waterway, and the coordinate range of the shore noise point are found in the visualization software. By intercepting the range of the coordinate axis, the visualization software can only display the point cloud in the inland waterway, that is, the ship point cloud in the waterway can be directly obtained. This method uses the different ranges of the spatial coordinates of different objects in the x, y, and z axes to effectively filter out noise point clouds outside the waterway, such as shore point clouds and bridge noise point clouds.

[0016] Furthermore, in step S3, the water surface noise points are filtered out based on the different characteristics of the reflected light intensity. When the water surface is calm, there are almost no noise points on the water surface. However, when the water surface is fluctuating, waves will form on the water surface and surface noise points will begin to appear. When collecting data, the water surface will produce waves due to the wind blowing on the water surface, and the water surface will also produce waves when the ship passes through the water surface. Some of these wave point clouds are independent of the ship point cloud, and some are closely connected to the ship point cloud. It is found through observation that the intensity of light reflected from the ship surface is different from the intensity of light reflected from the water surface. By screening the point cloud, the point water surface noise is removed, thereby achieving the filtering of the surface noise points.

[0017] Furthermore, in step S4, the ship target detection is performed. After removing the wave point cloud, the remaining point cloud is still a series of disordered points, and various information of the target cannot be directly obtained. In order to obtain information such as the position and size of the target, it is necessary to use a clustering algorithm to cluster the point clouds from the same target into an independent whole. When the ship point cloud reaches the detection area D,

[0018] D={(x,y,z)|-40≤x≤40, 0≤y≤100,-11.3≤z≤-2},

[0019] Start clustering the point cloud that appears in the detection area using the DBSCAN clustering method. DBSCAN clustering is a density-based spatial clustering algorithm. The algorithm divides areas with sufficient density into clusters and finds clusters of arbitrary shapes in a noisy spatial database. The DBSCAN algorithm does not need to determine the number of clusters in advance, but needs to determine two parameters: Eps and MinPts. Eps is the distance threshold of the point neighborhood. If Eps is too large, more points will fall into the same cluster, thereby reducing the number of clusters, and vice versa, the number of clusters will increase; MinPts represents the minimum number of samples in a cluster. When Eps is fixed, a smaller MinPts will produce more clusters and noise points, and a larger MinPts will produce larger clusters because many smaller clusters are swallowed up. Using this clustering method, if a single ship passes through the detection area, only one point cloud cluster will be generated in the detection area. If multiple ships pass through, multiple point cloud clusters will be generated. Mark these generated clusters with id numbers in order and save them.

[0020] Furthermore, the ship's navigation direction is determined based on edge features in S5. A section is used as a detection means to detect and extract the edge features of the bow and the stern of the ship. The number of ships passing through the section is counted by extracting edge features, and the navigation direction of the ship is determined by comparing the time difference between the appearance of the edge features of the two sections. When the point cloud data on the selected section is detected from no to some, the edge feature of the bow is detected, and the time is recorded as T head ; When the point cloud data on the selected section changes from presence to absence, the edge feature of the stern is detected, and the time is recorded as T end . Select two sections, through the two sections T head and T end The time difference is used to determine the ship's sailing direction.

[0021] Furthermore, multiple frames of ship point clouds are fused in S6. The frames of complete ship point clouds that are close to the laser radar are further searched as reference frames, and the frames of relatively complete ship point clouds with large concentrations of other ship point clouds are extracted as compensation frames, and the reference frames and compensation frames are fused and registered. The edge features of the bow and stern of the ship are extracted and saved in a matrix. The method for detecting and extracting the edge features of the ship includes: selecting a section in the detection area, and when the section point cloud data is detected from nothing to something, the bow edge feature is detected, and the recording time is T head ; When the point cloud data is detected from existence to non-existence, the edge feature of the stern is detected, and the recording time is T end . Extract these two frame numbers T head 、T end The bow and stern features under the ship are combined with the fused and registered ship point cloud and the bow or stern point cloud to form a complete ship point cloud to obtain the enhanced ship point cloud. The original ship point cloud is enhanced to obtain more complete ship point cloud data, which is a preparation for the subsequent more accurate calculation of the ship size.

[0022] Furthermore, the calculation of the main dimensions of the ship in S7 includes the calculation of the length, width and height of the ship. Based on the ship point cloud obtained in the previous step, an AABB bounding box model is established for each ship point cloud set. The AABB bounding box is defined as the smallest rectangular parallelepiped that can enclose the model to be tested and always has eight sides parallel to the spatial coordinate axes. The construction of the AABB bounding box is very simple. It only requires the maximum value x of all nodes of the object on the three coordinate axes, namely the x, y, and z axes. max ,y max 、z max and the minimum value x min ,y min 、z min The six points of the corresponding bounding box can be obtained, and these six points determine the AABB bounding box of the object. The intersection test of the bounding box is to determine the overlap of the projections of two AABB bounding boxes on the three coordinate axes. The bounding boxes intersect if and only if the projections on the three coordinate axes overlap. The projection area can be derived from the maximum and minimum values ​​on each coordinate axis, and a maximum of six comparison operations are required here. The area of ​​the AABB bounding box is expressed as follows:

[0023] S = {(x, y, z)|x min ≤x≤x max ,y min ≤y≤y max , z min ≤z≤z max},

[0024] Among them, x min 、x max ,ymax ,y min 、z max 、z min Consistent with the definition in the bounding box, they are the extreme points of the object's projection on the x, y, and z axes.

[0025] The method for calculating the main dimensions of a ship provided by the present invention has the following advantages:

[0026] 1. Build an advanced automated data acquisition system, use lidar to collect high-resolution micro data, and combine it with intelligent data processing algorithms to realize automated and intelligent ship main scale detection functions, improve detection accuracy, and provide solid data indicators for evaluating waterway traffic and control.

[0027] 2. Compared with video sensors, the laser radar sensor used in the present invention has the advantages of strong environmental applicability and high detection accuracy, and can realize all-weather ship size measurement. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0029] Figure 1 Flow chart for LiDAR-based ship dimension measurement;

[0030] Figure 2 This is a schematic diagram of the composition of the laser radar data acquisition system;

[0031] Figure 3 This is a schematic diagram of the original point cloud data after coordinate rotation;

[0032] Figure 4 This is the effect diagram of the ship point cloud data after the surface noise points are filtered out;

[0033] Figure 5 This is a schematic diagram of the ship point cloud after DBSCAN clustering;

[0034] Figure 6 It is a curve chart showing the number of ships passing through the detection area;

[0035] Figure 7 This is a schematic diagram of the fusion of a ship's point cloud compensation frame and reference frame;

[0036] Figure 8 A schematic diagram of point cloud enhancement after the edge features of a ship and the complete ship point cloud are stitched together;

[0037] Fig. 9 Schematic diagram of the AABB bounding box model of a ship point cloud set. DETAILED DESCRIPTION

[0038] Next, the embodiments are described in detail in conjunction with the accompanying drawings to help researchers in the field to further understand. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the contents. Based on the embodiments of the present invention, other embodiments obtained by researchers in the field without creativity and novelty are all within the scope of protection of the present invention.

[0039] The embodiment of the present invention provides a method for measuring ship dimensions based on laser radar, such as Figure 1 As shown, the following steps are included:

[0040] Step S1: Ship point cloud data collection based on LiDAR sensor. Specific steps are as follows: S101 to S103:

[0041] S101: Composition of LiDAR data collection system. Reference Figure 2 The data acquisition system includes a laser radar external unit, a laser radar external unit, a switching power supply and an industrial computer. The laser radar is fixed on a protruding welding tripod in the middle of the bridge to collect ship point cloud data in real time. The data collected by the laser radar external unit is transmitted to the laser radar internal unit, and then transmitted to the industrial computer for data preprocessing. The switching power supply is used to control the working time of the whole system at any time.

[0042] S102: Deployment method for collecting point cloud data of waterway ships. The present invention deploys a laser radar and a camera in the central part of the bridge to ensure that the laser radar scanning width can cover the entire inland waterway and obtain complete internal data of the inland waterway. Since the laser beam emitted by the laser radar is scanned from the center of the bridge to the waterway below, this installation and deployment scheme not only avoids the point cloud occlusion problem between ships, but also can obtain a relatively complete hull feature point cloud close to the bridge, providing better quality data for subsequent ship target detection and size calculation. Among them, the camera is responsible for collecting ship video data, providing a data basis for subsequent comparison with the real scene.

[0043] S103: Data preprocessing. In order to more conveniently filter out the background and construct the ship AABB bounding box model, and simplify the calculation difficulty of the ship size, the coordinates of all point cloud data must be rotated before processing the point cloud data. The point cloud data is rotated around the Z axis at a corresponding angle so that the channel direction is parallel to the Y axis in the new coordinate system. The rotation matrix formula is as follows:

[0044]

[0045] Where (X, Y, Z) is the original coordinate of the point cloud data, (X′, Y′, Z′) is the coordinate of the point cloud data after rotation around the Z axis, and θ is the rotation angle. Figure 3 , which is the original point cloud data of the channel after coordinate rotation processing.

[0046] Step S2: Select the channel area based on the spatial coordinate method and noise filtering method. The specific steps are as follows: S201-S202:

[0047] S201: Noise point cloud data background filtering. According to the data scanned by the laser radar, the current laser radar coordinate position, the height of the laser radar from the water surface, the shore coordinates of the channel and the coordinate range of the channel are found and calculated in the visualization software.

[0048] S202: The spatial coordinate method noise filtering method is used to obtain the internal area of ​​the channel. Based on the obtained spatial coordinates of the channel, point cloud background filtering is performed to remove the point cloud noise data of the two banks of the river and bridges, and retain the point cloud data of ships in the channel. Thus, the X-axis value range of the channel space in the laser radar coordinate system is determined to be [-40, 40], the Y-axis value range is [0, 100], and the Z-axis value range is [-11.3, -2], all in units of m.

[0049] Step S3: Filter out the water surface noise points based on the characteristic that the reflected light intensity (Intensity) of the water surface points is different from the reflected light intensity of the hull surface point cloud. The specific steps are as follows S301:

[0050] S301: Removal of surface noise point cloud based on reflected light intensity setting. There are basically no reflection points on the calm water surface in the channel, but when the water surface fluctuates, the laser beam will reflect back a part of the surface noise point cloud when it is irradiated vertically on the water surface. The reflected light intensity of this type of noise point is: Intensity = 1 and Intensity = 2; another case is that the surface waves caused by the ship passing through the current waters will generate surface noise points, and the reflected light intensity of this type of noise point is also: Intensity = 1 and Intensity = 2. The reflected light intensity range of the ship point cloud data scanned by the laser radar is [1, 60]. Therefore, removing the point cloud data with reflected light intensity of Intensity = 1 and Intensity = 2 can filter out the surface noise points and retain most of the ship point cloud. Reference Figure 4 , which is the effect diagram of the ship point cloud data after the surface noise points are filtered out.

[0051] Step S4: Detect ship targets based on DBSCAN clustering method. The specific steps include S401 to S402:

[0052] S401: Algorithm parameter setting. The DBSCAN algorithm is used to cluster points with sufficient density (i.e., high density) in high-dimensional space, and mark those sparse points that cannot be classified into any category as noise. The algorithm uses the concept of local density to divide each point into a core point, a boundary point, and a noise point. The DBSCAN algorithm is a classic clustering algorithm that characterizes the compactness of sample distribution through the neighborhood radius Eps and the minimum number of points in the neighborhood MinPts, determines the connectivity between samples from the close relationship between samples, divides samples with connectivity into the same cluster, and then continuously expands the clustering clusters in the noisy spatial data to finally generate clustering results. The selection of parameters Eps and MinPts directly affects the results of target detection. In this embodiment, based on the distribution characteristics of the ship point cloud, the neighborhood radius Eps is set to 1.5m, and the minimum number of points in the neighborhood MinPts is set to 20.

[0053] S402: Ship target detection. If it is a single ship scene, only one point cloud cluster will be generated in the detection area; if it is a multi-ship scene, several clusters will be generated in the detection area. Each cluster represents a ship point cloud set, and the points of these clusters, that is, the point cloud set of the ship, are retained in the matrix. Each ship is marked with an ID number according to the time sequence of the ship passing through the bridge. This method can not only realize ship target detection, but also realize flow detection in the channel. Reference Figure 5 , is a schematic diagram of the ship point cloud after DBSCAN clustering. Figure 6 , is the change curve of the number of ships passing through the detection area for 1 hour and 6 hours.

[0054] Step S5: Ship flow statistics and navigation direction judgment based on edge features. The details of step S5 are described as follows S501-S502:

[0055] S501: Ship edge feature detection and extraction. The ship edge features include the bow edge features and the stern edge features. A section is selected in the detection area to detect the ship edge features. When the point cloud data is detected from nothing to something, the bow edge feature is detected and the time is recorded as T head ; When the point cloud data is detected from existence to non-existence, the edge feature of the stern is detected, and the time is recorded as T end .

[0056] S502: Determine the ship's navigation direction based on the ship's edge features. Set two detection sections, the upper section and the lower section. Record the time when the ship's head edge features pass through the upper section as T up The time when the edge feature of the ship's head passes through the lower section is recorded as T down When T up <T downWhen T up >T down , it indicates that the ship is sailing from bottom to top.

[0057] Step S6: Point cloud data compensation based on multi-frame fusion. The details of step S6 are described as follows S601 to S604:

[0058] S601: Extract the relatively complete point cloud of the ship as the reference frame. Find the point cloud showing relatively complete ship features when the ship is close to the laser radar, store the point cloud of this frame number in the matrix X, and find the maximum and minimum values ​​of the point cloud on the x and y axes: x max 、x min ,y max ,y min , store all these data in matrix X, where

[0059] X={(x、y、z)|(class i , P id , x max , x min ,y max ,y min )},

[0060] Among them, class represents the type of ship, P id Indicates the ship ID number, x max 、x min ,y max ,y min It represents the maximum and minimum values ​​of the reference frame on the x and y axes.

[0061] S602: Extract 20 relatively complete ship point cloud frames near the ship reference frame as compensation frames. Store the ship point cloud data of each frame in the 20 frames into the matrix Y i ,

[0062] Y i ={(x, y, z)|(class i , P id , x i-max , x i-min ,y i-max ,y i-min )},

[0063] i refers to the frame number, x refers to the frame number, i-max 、x i-min ,y i-max ,y i-min Refers to the maximum and minimum values ​​of the ship point cloud in each frame of the compensation frame on the x and y axes.

[0064] S603: Multi-frame fusion of the compensation frame and the reference frame. i-min The minimum value y on the y-axis of the reference frame min Difference: Δy1=|y i-min- y min |, all the ship point clouds on each frame of the compensation frame are translated by Δy units on the y-axis and fused and registered with the reference frame to obtain a multi-frame fused ship point cloud with enhanced point cloud quantity. Figure 7 , which is a schematic diagram of the fusion of a ship's point cloud compensation frame and reference frame.

[0065] S604: Splice the ship edge feature point cloud and the fused ship point cloud. For a top-down ship, the stern point cloud is generally incomplete, so the stern point cloud is completed and the stern point cloud is moved along the y-axis by Δy2=|y i-max -y max | units, y max Indicates the maximum value of the reference frame on the y-axis. Fill in the missing part of the stern of the ship point cloud. For a ship from bottom to top, the head and tail point clouds are generally incomplete, so fill in the head cloud of the ship and move the bow point cloud along the y-axis by Δy3=|y i-min -y min | units. Fill in the missing part of the bow of the ship point cloud. Through the above steps, a ship point cloud with complete features can be constructed to prepare for the next step of accurately measuring the ship size. Figure 8 , which is a schematic diagram of point cloud enhancement after stitching the edge features of a ship and the complete ship point cloud.

[0066] Step S7: Extracting the ship size based on the AABB bounding box model. The specific steps include S701 to S702:

[0067] S701: Construct an AABB bounding box model based on the ship point cloud set. Based on the ship point cloud set with complete features obtained in the previous step, an AABB bounding box model is established for each ship point set to calculate the scale characteristics of the ship. The AABB bounding box is defined as the smallest cuboid that can enclose the model to be tested and always has eight sides parallel to the spatial coordinate axes. The AABB bounding box can be represented by the maximum and minimum values: by calculating the six points x with the maximum and minimum values ​​on the x, y, and z axes min 、x max ,y min ,y max 、z min 、z max To determine the six points of a bounding box. The six parameters representing the AABB bounding box can be divided into the following two groups:

[0068] P min =[x min ,y min, z min ]

[0069] P max =[x max ,y max , z max ]

[0070] The area of ​​the AABB bounding box is represented as follows:

[0071] S = {(x, y, z)|x min ≤x≤x max ,y min ≤y≤y max , z min ≤z≤z max},

[0072] refer to Fig. 9 , which is a schematic diagram of the AABB bounding box model of a ship point cloud set.

[0073] S702: Calculate the length, width and height of the ship. The length L is obtained by extracting the AABB bounding box established by the ship point set. ship 、Ship width W ship and ship height H ship .

[0074] The length of the ship is L ship The calculation formula is as follows:

[0075] L ship =|y max -y min |

[0076] Ship width W ship The calculation formula is as follows:

[0077] W ship =|x max -x min |

[0078] Ship height H ship The calculation formula is as follows:

[0079] H ship =|z max -z min |

[0080] As shown in Table 1, the detected information of ships passing through the channel includes the ship number, ship size (length, width, height) and ship sailing direction.

[0081] Table 1 Channel ship inspection information

[0082] Vessel Number Ship's sailing direction Length(m) Ship width(m) Ship height(m) 1 1 46 8.9 1.99 2 0 48 8.3 2.65 3 1 52 11.65 3.6 4 1 45 8.2 2.31 5 1 46 8.6 2.54 6 0 45 7.98 2.36 7 0 38 6.79 2.4 … … … … …

[0083] The ship's sailing direction is 1, which means the ship is sailing from top to bottom, and 0, which means the ship is sailing from bottom to top.

[0084] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A ship size measurement method based on laser radar, characterized in that: The method comprises the steps of: S1: Use LiDAR to collect ship point cloud data in the channel space in real time; S2: Based on the point cloud data collected by the laser radar, the spatial coordinate noise filtering method is used to find the coordinate range of the channel according to the laser radar coordinate system, and the corresponding x, y, and z axis coordinate parameters are set to select the corresponding channel area range, and the ship point cloud data in the channel is extracted; S3: Using the difference between the intensity of reflected light from the water surface and the intensity of reflected light from the ship surface, the noise points on the water surface are filtered out and the point cloud data of the ship is retained; S4: When the point cloud enters the target detection area, the DBSACN clustering algorithm is used to cluster the point cloud appearing in the detection area, so that each ship point cloud forms a cluster after clustering. The point cloud cluster of each ship is marked with an ID number according to the time sequence of the ship passing through. S5: Detect and extract edge features of the ship, and then perform ship flow statistics based on the edge features and determine the navigation direction of the ship; S6: Perform multi-frame fusion on the ship point cloud to complete the missing point clouds at the bow and stern of the ship point cloud and enhance the point cloud data; S7: Using the ship point cloud information obtained in step S6, an AABB bounding box model is constructed for the ship point cloud set, and the length, width and height feature information of the ship are further calculated, thereby realizing the size calculation of the ship.

2. A ship size measurement method based on laser radar according to claim 1, characterized in that: Step S1 further includes: deploying a 32-line lidar sensor in the central part of the bridge of the waterway so that the scanning width covers the ship point cloud data in the entire waterway, and collecting the ship point cloud data in the current waterway in real time; rotating the coordinates of all point cloud data, and rotating the point cloud data around the Z axis at a preset angle so that the waterway direction is parallel to the coordinate Y axis in the new coordinate system.

3. The ship size measurement method based on laser radar according to claim 1 is characterized in that: Step S2 further includes: finding and calculating the coordinate range of the bridge and the coordinate range of the waterway in the laser radar coordinate system, filtering out shore noise points and bridge noise points, saving the ship point cloud in the waterway, and obtaining the target detection area.

4. The ship size measurement method based on laser radar according to claim 1 is characterized in that: Step S3 further includes: filtering out surface noise points by setting the reflected light intensity and retaining the ship point cloud data.

5. The ship size measurement method based on laser radar according to claim 1, characterized in that: Step S4 further includes: clustering the ship point clouds into clusters by using the DBSCAN clustering method, and sorting and marking the id numbers of each ship point cloud cluster in sequence according to the time when the ship cluster passes the bridge.

6. The ship size measurement method based on laser radar according to claim 1, characterized in that: In step s5, the edge features of the ship are divided into the bow edge features and the stern edge features; a section is selected in the detection area, and when the section point cloud data is detected from none to present, the bow edge feature is detected, and the time is recorded as T head ; When the point cloud data is detected from existence to non-existence, the edge feature of the stern is detected, and the recording time is T end ; Select two sections in the channel and judge the ship's heading by comparing the difference in time when the ship passes through the two sections.

7. The ship size measurement method based on laser radar according to claim 6 is characterized in that: The method of selecting two sections in the waterway and determining the ship's heading by comparing the time difference when the ship passes through the two sections includes: The time when the edge feature of the ship's head passes through the upper section is recorded as T up The time when the edge feature of the ship's head passes through the lower section is recorded as T down ; When T up <T down When T up >T down , it indicates that the ship is sailing from bottom to top.

8. The ship size measurement method based on laser radar according to claim 1, characterized in that: Step S6 further includes: finding a relatively complete ship point cloud close to the laser radar, and taking this frame as a reference frame; extracting a frame number of ship point clouds with a large concentration of other ship point clouds near the reference frame as compensation frames; multi-frame fusion and registration of the compensation frame and the reference frame; extracting the edge features of the bow and stern, and splicing the extracted edge features of the bow and stern with the fused ship point cloud to obtain a complete ship point cloud set without missing bow and stern.

9. The ship size measurement method based on laser radar according to claim 8, characterized in that: The compensation frame and the reference frame are multi-frame fused and registered; the edge features of the bow and stern are extracted, and the extracted edge features of the bow and stern are spliced ​​with the fused ship point cloud to obtain a complete ship point cloud set without missing bow and stern, including: The minimum value y on the y-axis of each frame of the compensation frame i-min The minimum value y on the y-axis of the reference frame min Difference: Δy1=|y i-min- y min |, all the ship point clouds on each frame of the compensation frame are translated by Δy1 units on the y-axis and fused and registered with the reference frame to obtain a multi-frame fused ship point cloud with enhanced point cloud quantity; For a top-down ship, complete the stern point cloud and move the stern point cloud along the y-axis by Δy2=|y i-max -y max | units, y max Indicates the maximum value of the reference frame on the y-axis, y i-max Indicates the maximum value of each frame on the y-axis of the compensation frame, and fills in the missing part of the stern of the ship point cloud; for the bottom-up ship, fill in the ship head cloud and move the bow point cloud along the y-axis by Δy3=|y i-min- y min | units to complete the missing part of the bow of the ship point cloud.

10. The ship size measurement method based on laser radar according to claim 8, characterized in that: Step S7 further includes: calculating the main scale of the ship, establishing an AABB bounding box model through the ship point cloud set obtained in step s6, finding the maximum and minimum values ​​of each ship point cloud on the x, y, and z axes, and calculating the length, width, and height information of the ship through the difference between the maximum and minimum values ​​of the point cloud data on the x, y, and z axes.

Citation Information

Patent Citations

  • Shipborne sandstone volume automatic computation method supporting real-time monitoring

    CN110118526A

  • Channel ship flow statistical method and system based on laser radar

    CN116626649A

  • Ship measurement and identification method and system based on laser radar

    CN117173650A

  • Method for calibrating bow direction of ship based on geographic orientation under condition that ship in ship lock is static

    CN117974773A

  • Ship type identification method based on laser radar

    CN120279334A

Cited By

  • Ship berthing and mooring integrated safety monitoring method and system

    CN119044964A

  • Integrated safety monitoring method and system for ship berthing and mooring

    CN119044964B

  • Navigation fleet size detection method based on laser radar and image fusion

    CN119229040A

  • Shipping fleet size detection method based on lidar and image fusion

    CN119229040B

  • Ship navigation scale and traffic flow detection method, device, equipment and medium

    CN120403431A