Ship loader anti-collision system and method for cabin detection based on three-dimensional point cloud
Through three-dimensional laser scanning and two-dimensional image processing technology, the position of the ship cabin is identified and the collision between the ship loader and the ship cabin hatch is prevented, which solves the collision problem caused by the limited viewing angle of the ship loader and improves the loading efficiency and real-time detection capabilities.
Patent Information
- Application Number
- CN202410986582.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When the ship loader is loading containers, due to the limited viewing angle of the driver's cab, it is easy to collide with the cabin hatch, affecting work efficiency. It is difficult for the existing video surveillance system to effectively solve this problem.
A 3D laser scanner is used to generate a real-time 3D point cloud image. The cabin detection and positioning device is used to identify the position and shape of the cabin. The positional relationship between the ship loader boom and the cabin frame is determined in combination with the boom projection length measurement device. The control device is used when the preset threshold is low. Send an emergency stop signal to prevent collision.
It effectively avoids the collision between the ship loader and the cabin hatch, improves the loading efficiency, reduces the amount of three-dimensional data through two-dimensional image processing, and ensures the feasibility of real-time detection.
Smart Images

Figure CN118753744A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of port ship loader automation, and in particular to a ship loader anti-collision system and method for cabin detection based on three-dimensional point cloud. Background Art
[0002] Ship loader is a large machine used in bulk coal loading and unloading operations. Since the working area of the ship loader is far away from the cab, the driver's cab has a limited view and cannot see the entire operation process. It is easy to collide when using containers and reverse loading, affecting work efficiency. At present, the main way to solve this problem is to use a video monitoring system, that is, to install cameras in appropriate places, transmit video signals of the loading area to the driver's cab, and then make corresponding operations. Summary of the invention
[0003] The object of the present invention is to provide a ship loader anti-collision system and method for cabin detection based on three-dimensional point cloud, which can prevent the ship loader from colliding with the cabin hatch when using containers for loading.
[0004] In order to achieve the above-mentioned purpose, the present invention provides a ship loader anti-collision method for cabin detection based on three-dimensional point cloud, the system comprising a three-dimensional laser scanner for generating a real-time three-dimensional cabin point cloud map; a cabin detection and positioning device for identifying the position and shape of the cabin by performing a series of processing on the three-dimensional point cloud data of the ship loader acquired by the laser radar; a boom projection length measuring device for determining the positional relationship between the boom projection of the ship loader and the cabin coordinates; and a control device for executing an alarm or controlling the ship loader to stop operating according to the above-mentioned positional relationship.
[0005] The following steps are involved:
[0006] Step 1: The angle sensor on the loader is used to detect whether the hull has entered the detection range. When the angle sensor determines that the hull has entered the detection range, the detection begins; the three-dimensional laser scanner collects the point cloud data of the cabin in real time. Among them, a rectangular coordinate system is established according to the laser scanner. The rectangular coordinate system of the laser scanner takes the scanner light spot as the origin. When the laser scanner is at 0°, its direction vector is projected on the horizontal plane as the x-axis, the z-axis is opposite to the direction of gravity, and the y-axis direction is determined by the right-hand rule. xoy is the horizontal plane.
[0007] Step 2: The cabin detection and positioning device converts the three-dimensional point cloud data into a two-dimensional image and stores the information of the three-dimensional image through a grayscale image. The x-axis and y-axis coordinates of each point in the two-dimensional image are equivalent to the x-axis and y-axis coordinates of the corresponding position in the point cloud, and the grayscale value of each point in the grayscale image corresponds to the z-axis coordinate in the point cloud image;
[0008] Step 3: The laser scanner is fixed in position and can only scan a sector-shaped area. Based on known conditions, a rectangular frame with a variable size and movable search is established as a search seed to determine the coordinates of the corner points of the cabin;
[0009] Step 4: Use the calibrated LiDAR parameters, combined with the corner point positions and corresponding grayscale values obtained in step 3, to remap the spatial position coordinates in the point cloud data, and then calibrate the cabin border;
[0010] Step 5, the arm projection length measuring device measures the positional relationship between the arm of the ship loader and the cabin frame, and sends the positional relationship to the corresponding control device;
[0011] Step 6: When the control device detects that the position relationship is lower than a preset threshold, it sends an emergency stop signal to avoid a collision.
[0012] Preferably, the step 2 includes:
[0013] Step 2-1: First, filter, enhance and downsample the 3D point cloud to remove noise and discrete points in the data;
[0014] Step 2-2: Convert the three-dimensional point cloud image obtained in step 2-1 into a two-dimensional grayscale image. The conversion formula is: The "Linear scale" in the equation refers to the mapping coefficient between the z-axis coordinate and the grayscale. Considering the actual situation of the port, the Linear scale is selected as 0.25m -1 ;
[0015] Step 2-3: Binarize the grayscale image obtained in step 2-2 to further reduce the dimension. Considering the actual situation of the port, the coastline T of the port is selected as the threshold. The conversion formula is: Store a 2D image in a 0-1 matrix.
[0016] Preferably, the step 3 includes:
[0017] Step 3-1, using opening and closing operations on the two-dimensional image obtained in step 2-3 to fill small holes, smooth the edges of objects, remove noise, and improve image quality;
[0018] Step 3-2, define the search seed matrix, with coordinate position (m,n), size (l,h), and move from the lower left corner of the image. Since there are only 0 and 1 in the 0-1 matrix, when the search seed matrix detects the intersection point of 0 and 1 that can be approximately fitted with the matrix vertex, it is determined as the coordinate of the cabin corner point, where the angle interval of the approximate fitting is set between 85° and 95°.
[0019] Preferably, the step 4 includes:
[0020] Step 4-1: Use the grayscale value to infer the z-axis coordinate of the point. The mapping formula is:
[0021] Step 4-2: The conversion formula for mapping the corner point coordinates obtained in step 3-2 to the point cloud data is: in is the internal parameter matrix of the laser scanner.
[0022] A system is also provided for running any of the ship loader anti-collision methods for performing cabin detection based on three-dimensional point clouds, comprising a three-dimensional laser scanner for generating a real-time three-dimensional cabin point cloud map; a cabin detection and positioning device for identifying the position and shape of the cabin by performing a series of processing on the three-dimensional point cloud data of the ship loader acquired by a laser radar; a boom projection length measuring device for determining the positional relationship between the boom projection of the ship loader and the cabin coordinates; and a control device for executing an alarm or controlling the ship loader to stop operating according to the above-mentioned positional relationship.
[0023] The working principle of the patent of this invention mainly relies on the cabin detection after two-dimensional image processing, and then determines the position relationship through the boom projection length measurement device to avoid collision.
[0024] Compared with the prior art, the advantages of the present invention are:
[0025] 1. Use 3D point cloud to detect the hatch of the loading machine to avoid collision between the container and the hatch due to limited vision in the driver's cab.
[0026] 2. By performing two-dimensional image processing on the three-dimensional point cloud, the real-time detection performance can be prevented from being affected by excessive three-dimensional data. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a flow chart of ship loader anti-collision for cabin detection based on three-dimensional point cloud of the present invention;
[0028] Figure 2 It is a schematic diagram of real-time cabin point cloud data acquisition in the present invention;
[0029] Figure 3 It is a schematic diagram of hull point cloud data acquisition in the present invention;
[0030] Figure 4 It is a real-time cabin projection schematic diagram in the present invention;
[0031] Figure 5 It is a schematic diagram of real-time cabin binarization in the present invention;
[0032] Figure 6is a two-dimensional image subjected to opening and closing operations of the present invention;
[0033] Figure 7 It is a schematic diagram of the cabin area detection effect of the present invention; DETAILED DESCRIPTION
[0034] The present invention is described in detail below in conjunction with specific embodiments.
[0035] A ship loader anti-collision system and method for cabin detection based on three-dimensional point cloud in this embodiment includes a three-dimensional laser scanner, a cabin detection and positioning device, a boom projection length measuring device, and a control device.
[0036] like Figure 1 As shown, a ship loader anti-collision system and method for cabin detection based on three-dimensional point cloud in this embodiment is as follows:
[0037] Step 1: Each time the angle sensor detects that the hull has reached the designated area, the laser scanner sends and receives lasers every 0.25°, and uses the laser information to form an arc-shaped optical detection area. A three-dimensional point cloud map is generated in units of 10 seconds. The specific results are as follows: Figure 2 As shown;
[0038] Step 2: To simplify the calculation, project the 3D point cloud image generated in step 1 into a 2D grayscale image. The x and y coordinates in the grayscale image correspond to the x and y coordinates in the point cloud, and the grayscale value of each point approximately represents the coordinate of the z-axis. The projection conversion formula is: Among them, xc and yc are equivalent to x and y, and only z becomes the corresponding grayscale value. The linear scale in the equation is the mapping coefficient between the z-axis coordinate and the grayscale value, which is determined by the overall coordinates of the 3D point cloud and is selected as 0.25. The specific results are as follows Figure 4 shown.
[0039] Step 3: Since the cabin area needs to be identified in real time through a two-dimensional image, the information contained in the grayscale image is still relatively cumbersome. Therefore, we use the height of the port coastline as the threshold and convert the grayscale image obtained in step 2 into a binary image. The conversion formula is: The above equation sets the cabin area to 0 and the hull to 1. The hatch detection is performed at the junction of 0 and 1. The specific results are as follows Figure 5 shown.
[0040] Step 4: To achieve real-time cabin detection, the laser scanner in step 1 failed to completely scan all the information in the specified area, and there were noise and holes. For the shape analysis of the image, the opening and closing operations were used to fill the small holes and delete unnecessary noise. The specific results are as follows: Figure 6 shown.
[0041] Step five, since we are uncertain about the number and position of the cabins to be detected, we use a seed growth algorithm. First, define the search seed matrix with coordinate position (m,n) and size (l,h), and move from the lower left corner of the image. Since there are only 0 and 1 in the 0-1 matrix obtained in step four, when the search seed matrix detects the intersection points of 0 and 1 that can be approximately fitted with the matrix vertices, they are determined as the coordinates of the cabin corner points, where the approximate fitting angle interval is set between 85° and 95°. If the right side of the detection matrix coincides with the right side of the image, stop the detection and output the corner point coordinates. If the right side of the detection matrix does not reach the right edge of the image, redefine the search seed matrix and continue fitting until it coincides with the right edge of the image. The detection results are as follows. Figure 7 As shown;
[0042] Step 6: Use the binary image coordinates obtained in step 5 to map to the corresponding position of the grayscale image to calculate the z-axis coordinates. The mapping relationship is:
[0043] Step 7: Using the corner point coordinates obtained in step 6, determine the specific position of the point relative to the scanner in the actual space through the internal parameter matrix of the laser scanner. The conversion formula is:
[0044] Step 8: The boom projection length measuring device accurately calculates the positional relationship between the loader boom and the cabin frame to determine the relative distance and relative position between them. By transmitting this positional relationship data to the corresponding control device, the system can obtain key spatial geometric information in real time to perform loading operations more efficiently.
[0045] Step 9: When the control device detects that the position relationship between the boom and the cabin frame is lower than the preset threshold, the control device immediately takes emergency measures. Specifically, the control device will send an emergency stop signal to quickly stop the movement of the ship loader to prevent potential collision events.
[0046] It should be understood that those skilled in the art can make improvements or changes based on the above description, and all these improvements and changes should fall within the scope of protection of the appended claims of the present invention.
Claims
1. A ship loader anti-collision method for cabin detection based on three-dimensional point cloud, It is characterized in that The following steps are involved: Step 1, when the angle sensor on the ship loader determines that the hull enters the detection range, the detection starts; the three-dimensional laser scanner collects real-time cabin point cloud data; wherein, a laser scanner rectangular coordinate system is established according to the laser scanner, the laser scanner rectangular coordinate system takes the scanner light spot as the origin, the laser scanner rotates 0° and the position direction vector is projected to the horizontal plane as the x-axis, the z-axis is opposite to the direction of gravity, the y-axis direction is determined by the right-hand rule, and xoy is the horizontal plane; Step 2, the cabin detection and positioning device detects and converts the three-dimensional image into a two-dimensional black-and-white image, and stores the information of the three-dimensional image through a grayscale image; the x-axis and y-axis coordinates of each point in the black-and-white image are equivalent to the x-axis and y-axis coordinates of the corresponding position in the point cloud, and the grayscale value of each point in the grayscale image corresponds to the z-axis coordinate in the point cloud; Step 3: The laser scanner is fixed in position and can only scan a sector-shaped area. Based on known conditions, a rectangular frame with a variable size and movable search is established as a search seed to determine the coordinates of the corner points of the cabin; Step 4: Use the calibrated LiDAR parameters, combined with the corner point positions and corresponding grayscale values obtained in step 3, to remap the spatial position coordinates in the point cloud data, and then calibrate the cabin border; Step 5, the boom projection length measuring device calculates the positional relationship between the boom of the ship loader and the cabin frame, and sends the positional relationship to the corresponding control device; Step 6: When the control device detects that the position relationship is lower than a preset threshold, it sends an emergency stop signal to avoid a collision.
2. According to claim 1, a ship loader anti-collision method for cabin detection based on three-dimensional point cloud, It is characterized in that The specific steps of step 2 are: Step 2-1: First, filter, enhance and downsample the 3D point cloud to remove noise and discrete points in the data; Step 2-2: Convert the three-dimensional point cloud image obtained in step 2-1 into a two-dimensional grayscale image. The conversion formula is: The "Linear scale" in the equation refers to the mapping coefficient between the z-axis coordinate and the grayscale. Considering the actual situation of the port, the Linear scale is selected as 0.25m -1 ; Step 2-3: Binarize the grayscale image obtained in step 2-2 to further reduce the dimension. Considering the actual situation of the port, the coastline T of the port is selected as the threshold. The conversion formula is: Store a 2D image in a 0-1 matrix.
3. According to claim 1, a ship loader anti-collision method for cabin detection based on three-dimensional point cloud, It is characterized in that The specific steps of step 3 are as follows: Step 3-1, using opening and closing operations on the two-dimensional image obtained in step 2-3 to fill small holes, smooth the edges of objects, remove noise, and improve image quality; Step 3-2, define the search seed matrix with coordinate position (m,n) and size (l,h), and move from the lower left corner of the image; since there are only 0 and 1 in the 0-1 matrix, when the search seed matrix detects the intersection point of 0 and 1 that can be approximately fitted with the matrix vertex, it is determined as the coordinate of the cabin corner point, where the angle interval of the approximate fitting is set between 85° and 95°.
4. According to claim 1, a ship loader anti-collision method for cabin detection based on three-dimensional point cloud, It is characterized in that The specific steps of step 4 are as follows: Step 4-1: Use the grayscale value to infer the z-axis coordinate of the point. The mapping formula is: Step 4-2: The conversion formula for mapping the corner point coordinates obtained in step 3-2 to the point cloud data is: in is the internal parameter matrix of the laser scanner.
5. A ship loader anti-collision system based on three-dimensional point cloud for cabin detection, It is characterized in that A method for preventing a ship loader from collisions by performing cabin detection based on three-dimensional point clouds as described in any one of claims 1 to 4 is run, wherein the system comprises a three-dimensional laser scanner for generating a real-time three-dimensional cabin point cloud map; a cabin detection and positioning device for identifying the position and shape of the cabin by performing a series of processing on the three-dimensional point cloud data of the ship loader obtained by the laser radar; and a boom projection length measuring device for determining the positional relationship between the boom projection of the ship loader and the cabin coordinates; And a control device, which executes an alarm or controls the loader to stop operation according to the above position relationship.
Citation Information
Patent Citations
Continuous ship unloader ship and material identification sensing method
CN112150388A
Cargo ship hatch detection method and system based on laser radar and monocular camera
CN115909216A
Method for calibrating bow direction of ship based on geographic orientation under condition that ship in ship lock is static
CN117974773A
Anti-collision method for continuous ship unloader and apparatus thereof
KR101494323B1
Cited By
Screw ship unloader cabin material collaborative perception and autonomous operation method based on multi-source laser scanning array
CN120589494A
