Ship unloader path planning system based on three-dimensional point cloud recognition and image recognition
By combining 3D point cloud and image recognition technology, the 3D shape and ship number features of the ship are extracted, achieving more accurate ship identification and path planning, solving the problem of laser 3D vision being difficult to use color and texture information, and improving recognition and planning. accuracy and stability.
Patent Information
- Application Number
- CN202410908228.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-08
AI Technical Summary
The existing ship unloader path planning system based on laser 3D vision is difficult to effectively utilize the color and texture information of the ship, resulting in poor identification and path planning results when materials are transferred between multiple ships.
Using a system based on 3D point cloud recognition and image recognition, the 3D point cloud scanning module is used to obtain the 3D shape characteristics of the ship and the image acquisition module is used to obtain the ship number characteristics. It combines feature fusion and similarity matching to identify the target ship and plan the ship unloader path. .
It improves the accuracy and stability of ship identification and ship unloader path planning, overcomes the limitations of laser 3D vision technology in color and texture recognition, and enhances adaptability and efficiency in complex environments.
Smart Images

Figure CN118723630A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent control and ship unloaders, and in particular to a ship unloader path planning system based on three-dimensional point cloud recognition and image recognition. Background Art
[0002] The ship unloader at the port is a mechanical device specially used to unload cargo from large ships. Its structure is similar to that of a tower crane, but it has a larger working range and lifting capacity. The ship unloader can safely and quickly unload cargo of various shapes and weights, such as bulk materials, containers, and liquid cargoes, from the ship and transfer them to the conveying system at the dock. It is an indispensable and important equipment in the port logistics system.
[0003] With the development of automation in logistics and transportation, the path planning of ship unloaders has become particularly important. Reasonable path planning can not only improve the efficiency of ship unloading, reduce the time ships stay in port, and increase the turnover rate of ships, but also reduce logistics costs and reduce environmental pollution. At the same time, through automated path planning, it is also possible to reduce the errors and risks of manual operations and improve operational safety. In recent years, with the development of laser three-dimensional scanning technology, the path planning of ship unloaders based on laser three-dimensional vision has become a hot topic. For example, the Chinese patent with publication number CN116161453A discloses the "Automatic Control System for Screw Ship Unloaders". The system uses a laser scanning module to perform laser scanning on the environment, and uses a three-dimensional model building module to perform three-dimensional modeling, so that the system automatically sets up a safe working area through a safe working area setting module, and automatically plans the load path through a load path planning module, and at the same time, the load swing of a single machine reclaimer is established through a single machine reclaimer load swing module, thereby improving the data basis for automatic unloading.
[0004] The existing method realizes the path planning of the ship unloader based on laser 3D vision. The laser 3D vision technology scans the ship unloader operation scene through a laser scanner, which can obtain a large amount of accurate point cloud data, thereby realizing the 3D high-precision reconstruction of the scene. This high-precision measurement capability provides a solid foundation for subsequent path planning. In addition, the laser 3D vision technology has good anti-interference ability and can work stably in harsh dock operating environments.
[0005] In actual application scenarios, when transferring materials between multiple ships, it is necessary to use a ship unloader to unload the materials of one or more ships to the transfer area, and then transfer the materials to another or more ships through other equipment. At this time, during the material transfer process, the berthing distance of multiple ships is very close, so that in the process of ship unloader path planning, it is necessary to accurately identify and distinguish multiple ships before locating the ship to be unloaded, and then complete the path planning and cargo unloading. The applicant found that when the distance between multiple ships is relatively close or the appearance is similar (or the same model), the ships can generally only be distinguished by the ship license plate number. However, the ship license plate number involves color and texture, but laser three-dimensional vision mainly captures the geometric shape and position of the object, and has limited perception of color and texture. As a result, the existing solution for realizing ship unloader path planning through laser three-dimensional vision cannot effectively use the color and texture information of the ship license plate number to distinguish ships, resulting in poor effects of ship identification and ship unloader path planning. Summary of the invention
[0006] In view of the above-mentioned deficiencies in the prior art, the technical problem to be solved by the present invention is: how to provide a ship unloader path planning system based on three-dimensional point cloud recognition and image recognition, and simultaneously obtain the three-dimensional shape point cloud features and license plate number features of the ship through the fusion of three-dimensional visual point cloud and image recognition technology, and realize ship identification through feature fusion and similarity matching, thereby improving the accuracy and stability of port ship identification and ship unloader path planning.
[0007] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0008] A ship unloader path planning system based on three-dimensional point cloud recognition and image recognition, comprising:
[0009] 3D point cloud scanning module, used to obtain 3D point cloud data of ports in the berthing area of ships;
[0010] An image acquisition module, used to obtain port images of the ship berthing area;
[0011] Point cloud feature extraction module, used to extract the point cloud features of the hull shape of each ship from the three-dimensional point cloud data of the port;
[0012] Image feature extraction module, used to extract the license plate features of each ship from the port image;
[0013] A feature fusion module is used to fuse the point cloud features of the ship's hull shape and the features of the ship's license plate number to generate a fused feature vector for each ship;
[0014] The target vessel matching module is used to perform similarity matching between the fused feature vectors of each vessel and the pre-stored feature vectors of the vessel to be unloaded, so as to identify the target vessel to be unloaded;
[0015] The path planning module is used to plan the unloading movement path of the ship unloader according to the location information of the target ship.
[0016] Preferably, the point cloud feature extraction module extracts the point cloud features of the hull shape through the following steps:
[0017] S11: filtering the port three-dimensional point cloud data to generate pre-processed point cloud data;
[0018] S12: Using the spatial distribution characteristics of the port's three-dimensional point cloud data, the ship docking area is segmented from other areas through a clustering algorithm to obtain a point cloud of the ship docking area;
[0019] S13: identifying and extracting the point cloud data area where the ship is located by setting a threshold in the point cloud of the ship docking area, and obtaining the ship point cloud data;
[0020] S14: Segment the ship point cloud data by an edge detection algorithm to obtain point cloud data of each ship, and then extract contour and size features from the point cloud data of the ship as point cloud features of the hull shape of each ship.
[0021] Preferably, the image feature extraction module extracts the ship license plate number features through the following steps:
[0022] S21: performing image preprocessing on the port image to obtain a preprocessed image;
[0023] S22: Perform ship target detection on the preprocessed image through a deep learning-based target detection model to identify the position and bounding box of each ship target;
[0024] S23: Identify the ship license plate area from the bounding box of each ship target through edge detection and template matching technology;
[0025] S24: performing character recognition on the license plate area of each ship through an OCR algorithm, and using the character recognition result of the license plate as the license plate feature of each ship.
[0026] Preferably, in step S22, the target detection model constructed based on YOLO is used to detect the ship target, and the specific steps are as follows:
[0027] S221: extracting multiple levels of features from the preprocessed image through the backbone network to obtain multiple levels of semantic feature maps; wherein the backbone network introduces a convolutional attention module;
[0028] S222: The semantic feature maps at different levels are fused through the neck network to generate fused feature maps at multiple scales;
[0029] S223: Output the position and bounding box of each ship target based on the fused feature maps of multiple scales through the head network.
[0030] Preferably, in step S221, the backbone network is provided with a convolutional attention module at the output of each residual module; the convolutional attention module includes a space-by-space attention mechanism and a channel-by-channel attention mechanism;
[0031] The calculation formula of the convolutional attention module is as follows:
[0032]
[0033] Where: X′ represents the output of the convolutional attention module, that is, the relevant context information in the pixel domain and channel domain; X represents the input of the convolutional attention module; α and β are two learnable parameters; X2 and X1 represent the pixel-by-pixel attention feature map and the channel-by-channel attention feature map, respectively; K2 represents the pixel-by-pixel attention coefficient; T represents the transpose operation; Represents matrix multiplication; Indicates that the output is constrained by the normalization factor; K1 represents the channel attention coefficient.
[0034] Preferably, in step S23, the processing steps for identifying the vessel license plate number area are as follows:
[0035] S231: Performing a ship license plate edge detection on the bounding box of the ship target by using a Canny edge detector to generate a plurality of candidate regions;
[0036] S232: Acquire several ship license plate template images of different styles;
[0037] S233: performing edge detection on the ship license plate number template image so as to match it with the edge of the candidate area;
[0038] S234: Matching the edge-detected ship license plate number template image with each candidate area, and taking the candidate area with the highest matching degree as the ship license plate number area.
[0039] Preferably, in step S24, the processing steps of the OCR algorithm for character recognition are as follows:
[0040] S241: Segment each character in the ship license plate number area according to the interval or specific features between the characters to obtain a plurality of independent character images;
[0041] S242: extracting features from each segmented character image to obtain character features of each character image;
[0042] S243: Input each character feature into the trained support vector machine and output the character recognition result of the ship license plate number.
[0043] Preferably, the feature fusion module generates a fused feature vector through the following steps:
[0044] S31: The hull shape point cloud features and the ship license plate number features are converted into feature vectors of the same dimension through a fully connected layer to obtain a hull shape point cloud feature vector and a ship license plate number feature vector;
[0045] S32: By means of feature concatenation, the hull shape point cloud feature vector and the ship license plate number feature vector are connected end to end to form a longer feature vector, thereby generating a fused feature vector.
[0046] Preferably, the target vessel matching module calculates the similarity between each vessel and the vessel to be unloaded by calculating the cosine similarity between the fused feature vector and the pre-stored feature vector of the vessel to be unloaded, and then selects the vessel with the highest similarity that exceeds a threshold as the target vessel to be unloaded.
[0047] Preferably, the path planning module uses a path planning algorithm to perform path planning with the current position of the ship unloader as the starting point, the position of the target vessel as the end point, and obstacle avoidance as the goal to generate the unloading movement path of the ship unloader.
[0048] Compared with the prior art, the ship unloader path planning system based on three-dimensional point cloud recognition and image recognition in the present invention has the following beneficial effects:
[0049] The present invention extracts the hull shape point cloud features and the ship license plate features of the ship respectively and fuses them to generate a fused feature vector, and then identifies the target ship by matching the fused feature vector with the similarity of the feature vector pre-stored in the ship to be unloaded. First, by extracting the hull shape point cloud features and the ship license plate features respectively and using these two features for feature fusion, the characteristics of the ship can be described more comprehensively, wherein the fused feature vector not only contains the shape profile information of the ship, but also contains the unique identification (ship license plate number) of the ship, thereby improving the accuracy of ship identification and ship unloader path planning. Secondly, the method of vector similarity matching can quickly identify the target ship among many ships. Compared with the traditional method based on manual identification or single feature identification, the matching method based on fused feature vector is more efficient, can greatly reduce the identification time, and improves the efficiency of ship identification and ship unloader path planning. Finally, in a complex environment such as a port, factors such as the docking position, angle and lighting conditions of the ship may affect the accuracy of identification. By fusing the hull shape point cloud features and the ship license plate features, these unfavorable factors can be overcome, thereby improving the stability of ship identification and ship unloader path planning.
[0050] The present invention realizes ship recognition through the fusion of three-dimensional visual point cloud and image recognition technology. First, by combining three-dimensional visual point cloud and image recognition technology, the three-dimensional shape information and the text information of the license plate number of the ship can be obtained at the same time, and the description of the ship is more comprehensive and accurate through the fusion of multi-source information. Secondly, the three-dimensional visual point cloud technology can capture the three-dimensional shape and structural information of the ship, while the image recognition technology can extract key information such as the license plate number. The fusion of these two technologies can make up for each other's shortcomings in certain aspects and improve the adaptability of the algorithm under different environmental conditions. Finally, a single technology may have limitations. For example, the three-dimensional visual point cloud technology may not be able to accurately extract detailed information such as the license plate number in some cases, while the image recognition technology may be affected by factors such as illumination and occlusion. By integrating these two technologies, they can complement each other and improve the accuracy of overall recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to make the purpose, technical solution and advantages of the invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings, in which:
[0052] Figure 1 This is the logical block diagram of the ship unloader path planning system based on three-dimensional point cloud recognition and image recognition. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but only represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present invention.
[0054] It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. In the description of the present invention, it should be noted that the orientation or position relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, or the orientation or position relationship in which the invention product is usually placed when used, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance. In addition, the terms "horizontal", "vertical", etc. do not mean that the components are required to be absolutely horizontal or suspended, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", and does not mean that the structure must be completely horizontal, but can be slightly tilted. In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0055] The following is a further detailed description through specific implementation methods:
[0056] Example:
[0057] This embodiment discloses a ship unloader path planning system based on three-dimensional point cloud recognition and image recognition.
[0058] like Figure 1 As shown, the ship unloader path planning system based on three-dimensional point cloud recognition and image recognition includes:
[0059] 3D point cloud scanning module, used to obtain 3D point cloud data of ports in the berthing area of ships;
[0060] 3D point cloud scanning module, used to obtain 3D point cloud data of ports in the berthing area of ships;
[0061] An image acquisition module, used to obtain port images of the ship berthing area;
[0062] Point cloud feature extraction module, used to extract the point cloud features of the hull shape of each ship from the three-dimensional point cloud data of the port;
[0063] Image feature extraction module, used to extract the license plate features of each ship from the port image;
[0064] A feature fusion module is used to fuse the point cloud features of the ship's hull shape and the features of the ship's license plate number to generate a fused feature vector for each ship;
[0065] The target vessel matching module is used to perform similarity matching between the fused feature vectors of each vessel and the pre-stored feature vectors of the vessel to be unloaded, so as to identify the target vessel to be unloaded;
[0066] The path planning module is used to plan the unloading movement path of the ship unloader according to the location information of the target ship.
[0067] In this embodiment, the location information of the target ship can be obtained by existing means.
[0068] The present invention extracts the hull shape point cloud features and the ship license plate features of the ship respectively and fuses them to generate a fused feature vector, and then identifies the target ship by matching the fused feature vector with the similarity of the feature vector pre-stored in the ship to be unloaded. First, by extracting the hull shape point cloud features and the ship license plate features respectively and using these two features for feature fusion, the characteristics of the ship can be described more comprehensively, wherein the fused feature vector not only contains the shape profile information of the ship, but also contains the unique identification (ship license plate number) of the ship, thereby improving the accuracy of ship identification and ship unloader path planning. Secondly, the method of vector similarity matching can quickly identify the target ship among many ships. Compared with the traditional method based on manual identification or single feature identification, the matching method based on fused feature vector is more efficient, can greatly reduce the identification time, and improves the efficiency of ship identification and ship unloader path planning. Finally, in a complex environment such as a port, factors such as the docking position, angle and lighting conditions of the ship may affect the accuracy of identification. By fusing the hull shape point cloud features and the ship license plate features, these unfavorable factors can be overcome, thereby improving the stability of ship identification and ship unloader path planning.
[0069] The present invention realizes ship recognition through the fusion of three-dimensional visual point cloud and image recognition technology. First, by combining three-dimensional visual point cloud and image recognition technology, the three-dimensional shape information and the text information of the license plate number of the ship can be obtained at the same time, and the description of the ship is more comprehensive and accurate through the fusion of multi-source information. Secondly, the three-dimensional visual point cloud technology can capture the three-dimensional shape and structural information of the ship, while the image recognition technology can extract key information such as the license plate number. The fusion of these two technologies can make up for each other's shortcomings in certain aspects and improve the adaptability of the algorithm under different environmental conditions. Finally, a single technology may have limitations. For example, the three-dimensional visual point cloud technology may not be able to accurately extract detailed information such as the license plate number in some cases, while the image recognition technology may be affected by factors such as illumination and occlusion. By integrating these two technologies, they can complement each other and improve the accuracy of overall recognition.
[0070] In the specific implementation process, the point cloud feature extraction module extracts the point cloud features of the hull shape through the following steps:
[0071] S11: filtering the port three-dimensional point cloud data to generate pre-processed point cloud data;
[0072] In this embodiment, the noise points introduced by factors such as equipment errors and environmental interference in the three-dimensional point cloud data of the port can be removed through filtering processing, thereby improving the data quality.
[0073] S12: Using the spatial distribution characteristics of the port 3D point cloud data, the ship berthing area is segmented from other areas through a clustering algorithm (such as K-means, DBSCAN) or an edge detection-based method to obtain a point cloud of the ship berthing area;
[0074] S13: identifying and extracting the point cloud data area where the ship is located by setting a threshold or applying a specific algorithm in the point cloud of the ship docking area, thereby obtaining the ship point cloud data;
[0075] In this embodiment, after extracting the point cloud of the ship area, the extracted ship point cloud data can be further refined to remove possible non-ship parts, such as the ground in the docking area, other irrelevant objects, etc.
[0076] S14: Use edge detection algorithms (such as Canny, Sobel, etc.) to segment the ship point cloud data to obtain point cloud data of each ship, and then extract the contour and size features of the ship point cloud data as the hull shape point cloud features of each ship. The contour and size features can effectively reflect the hull shape, thereby improving the accuracy of ship identification and ship unloader path planning.
[0077] In the specific implementation process, the image feature extraction module extracts the features of the ship license plate number through the following steps:
[0078] S21: performing image preprocessing on the port image to obtain a preprocessed image;
[0079] In this embodiment, image preprocessing includes graying, denoising and binarization. Graying is to convert the original color port image into a gray image, reduce the amount of calculation and highlight the edge and texture information in the image. Filtering denoising refers to using a filter (such as a Gaussian filter) to remove noise in the image and improve the quality of the gray image. Binarization is to convert the gray image into a binary image, and divide the pixels in the gray image into foreground (ship and number) and background by setting a threshold.
[0080] S22: The pre-processed image is subjected to ship target detection through a deep learning-based target detection model to identify the position and bounding box of each ship target. Due to the complexity of the port environment (such as light changes, obstructions, etc.), the initially located ship license plate area can also be verified and corrected as needed.
[0081] S23: Identify the ship license plate area from the bounding box of each ship target through edge detection and template matching technology;
[0082] S24: performing character recognition on the license plate area of each ship through an OCR algorithm, and using the character recognition result of the license plate as the license plate feature of each ship.
[0083] In the specific implementation process, the target detection model built based on YOLO realizes the detection of ship targets. The specific steps are as follows:
[0084] S221: The backbone network is used to perform multi-level feature extraction on the preprocessed image to obtain multi-level semantic feature maps; the backbone network introduces a convolutional block attention module (CBAM) to enhance the sensitivity to the key features of the target, and also introduces a lightweight convolution module.
[0085] S222: The semantic feature maps at different levels are fused through the neck network to generate fused feature maps at multiple scales;
[0086] S223: Output the position and bounding box of each ship target based on the fused feature maps of multiple scales through the head network.
[0087] The present invention introduces a convolutional attention module into the backbone network of the YOLO model to enhance the sensitivity to the key features of the target. First, the convolutional attention module solves the challenges of target detection in complex scenes, such as illumination changes, complex textures or target occlusion, by enhancing the sensitivity to the key features of the target. This attention mechanism helps the model to better focus on important features and improve the recognition accuracy of ship targets. Secondly, the convolutional attention module can calculate the attention weights of different scales in the multi-layer feature map and highlight the important scale information, so that the model pays more attention to the features of targets of different scales, thereby further improving the accuracy of ship target detection. Finally, traditional target detection algorithms may have difficulties in processing multi-scale targets, but this problem can be well solved by introducing the convolutional attention module, because it can give different attention weights according to different scale information, thereby better detecting various types of ship targets.
[0088] Specifically, the backbone network is provided with a convolutional attention module and a lightweight convolutional module at the output of each residual module; the convolutional attention module includes a space-by-space attention mechanism and a channel-by-channel attention mechanism; the lightweight convolutional module includes a convolution operation, a depth-separable convolution operation, and a pixel shuffle operation;
[0089] The calculation formula of the convolutional attention module is as follows:
[0090]
[0091] Where: X′ represents the output of the convolutional attention module, that is, the relevant context information in the pixel domain and channel domain; X represents the input of the convolutional attention module; α and β are two learnable parameters; X2 and X1 represent the pixel-by-pixel attention feature map and the channel-by-channel attention feature map, respectively; K2 represents the pixel-by-pixel attention coefficient; T represents the transpose operation; Represents matrix multiplication; Indicates that the output is constrained by the normalization factor; K1 represents the channel attention coefficient.
[0092] The calculation formula of the lightweight convolution module is as follows:
[0093] X″=Shuffle(Conv(X)+DWConv(Conv(X)));
[0094] Where: X″ represents the output of the lightweight convolution module; X represents the input feature map; Conv() represents the convolution operation; DWConv() represents the depthwise separable convolution operation; Shuffle() represents the pixel shuffling operation.
[0095] Specifically, the neck network includes a lightweight convolutional module, a connection layer, and a C2F module that are sequentially connected end to end.
[0096] The lightweight convolution module of the present invention can reduce the computational complexity of the model while maintaining performance, so that the model can complete the target detection task in a shorter time. Secondly, the lightweight convolution module usually has fewer parameters and a smaller model size, which helps to reduce memory usage, allowing the model to run on devices with limited resources, thereby improving the practicality of target detection. Finally, due to the introduction of the lightweight convolution module, the YOLO model can achieve higher real-time performance while maintaining high accuracy, which is crucial for application scenarios that require fast response.
[0097] The C2F module extracts features through a series of lightweight convolution modules and thin-neck. The C2F module includes the first lightweight convolution module, the channel splitting layer, the connection layer, and the second lightweight convolution module connected end to end; the outputs of the first lightweight convolution module and the channel splitting layer are used as the input of the connection layer;
[0098] The input of the first lightweight convolution module is the input of the C2F module;
[0099] The output of the second lightweight convolutional module is the output of the C2F module.
[0100] The present invention can better capture the complex features in the image by introducing the C2F module, thereby achieving better results in the target detection task. In addition, the C2F module of the present invention also has good scalability, and can further improve the performance of the model without significantly increasing the computational cost.
[0101] Specifically, the task head network includes three heads whose inputs are fused feature maps of the first scale, the second scale and the third scale respectively, and each head includes a first branch and a second branch; the three heads calculate the bounding box regression loss through the first branch to obtain the bounding box position and confidence of the detected target, and calculate the classification loss through the second branch to obtain the (classification) category of the detected target; the first branch includes a lightweight convolution module, a convolution layer and a BboxLoss layer connected end to end in sequence; the second branch includes a lightweight convolution module, a convolution layer and a ClsLoss layer connected end to end in sequence.
[0102] The three heads are used to detect targets of different scales: the first head is responsible for detecting small-sized ship targets, which can improve the model's detection sensitivity for small ship targets; the second head is responsible for detecting medium-sized ship targets, which helps the model to locate medium-sized ship targets more accurately; the third head is responsible for detecting large-sized ship targets, which can increase the model's detection capability for large ship targets.
[0103] In the specific implementation process, in step S23, the processing steps for identifying the ship license plate number area are as follows:
[0104] S231: Performing a ship license plate edge detection on the bounding box of the ship target by using a Canny edge detector to generate a plurality of candidate regions;
[0105] S232: Acquire several ship license plate template images of different styles;
[0106] In this embodiment, the ship license plate number template should cover as many ship license plate number styles as possible that may appear in actual use.
[0107] S233: performing edge detection on the ship license plate number template image so as to match it with the edge of the candidate area;
[0108] S234: Match the edge-detected license plate template image with each candidate area (such as using normalized cross-correlation or feature-based matching methods). At the same time, consider using a sliding window technique to search within the vessel edge detection area, and only perform detailed matching on areas that are similar in shape and size to the possible license plate number. Finally, the candidate area with the highest matching degree (such as similarity score) is used as the license plate number area.
[0109] In the specific implementation process, in step S24, the processing steps of the OCR algorithm for character recognition are as follows:
[0110] S241: Segment each character in the ship license plate number area according to the interval or specific features between the characters to obtain a plurality of independent character images;
[0111] S242: extracting features from each segmented character image to obtain character features of each character image;
[0112] In this embodiment, statistical features such as HOG features, LBP features, etc. can be used.
[0113] S243: Input each character feature into a trained support vector machine (SVM) and output the character recognition result of the ship license plate number.
[0114] In the specific implementation process, the feature fusion module generates a fused feature vector through the following steps:
[0115] S31: converting the hull shape point cloud features and the ship license plate number features into feature vectors of the same dimension through fully connected layers or embedding layers to obtain the hull shape point cloud feature vector and the ship license plate number feature vector;
[0116] In this embodiment, it is also necessary to ensure that the hull shape point cloud features and the ship license plate number features have the same dimensions before fusion. If their dimensions are different, their dimensions can be adjusted by adding additional fully connected layers or embedding layers.
[0117] S32: By means of feature concatenation, the hull shape point cloud feature vector and the ship license plate number feature vector are connected end to end to form a longer feature vector, thereby generating a fused feature vector.
[0118] During the specific implementation process, the target ship matching module calculates the similarity between each ship and the ship to be unloaded by calculating the cosine similarity between the fused feature vector and the pre-stored feature vector of the ship to be unloaded, and then selects the ship with the highest similarity that exceeds the threshold as the target ship to be unloaded.
[0119] During the specific implementation process, the path planning module uses the path planning algorithm to plan the path with the current position of the ship unloader as the starting point, the position of the target ship as the end point, and avoiding obstacles as the goal, to generate the unloading movement path of the ship unloader.
[0120] In this embodiment, the path planning of the ship unloader can be achieved through existing mature technology or software.
[0121] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit the technical solution. Those skilled in the art should understand that those modifications or equivalent substitutions of the technical solution of the present invention that do not depart from the purpose and scope of the technical solution should be included in the scope of the claims of the present invention.
Claims
1. A ship unloader path planning system based on three-dimensional point cloud recognition and image recognition, characterized in that: include: 3D point cloud scanning module, used to obtain 3D point cloud data of ports in the berthing area of ships; An image acquisition module, used to obtain port images of the ship berthing area; Point cloud feature extraction module, used to extract the point cloud features of the hull shape of each ship from the three-dimensional point cloud data of the port; Image feature extraction module, used to extract the license plate features of each ship from the port image; A feature fusion module is used to fuse the point cloud features of the ship's hull shape and the features of the ship's license plate number to generate a fused feature vector for each ship; The target vessel matching module is used to perform similarity matching between the fused feature vectors of each vessel and the pre-stored feature vectors of the vessel to be unloaded, so as to identify the target vessel to be unloaded; The path planning module is used to plan the unloading movement path of the ship unloader according to the location information of the target ship.
2. The ship unloader path planning system based on three-dimensional point cloud recognition and image recognition as claimed in claim 1, characterized in that: The point cloud feature extraction module extracts the point cloud features of the hull shape through the following steps: S11: filtering the port three-dimensional point cloud data to generate pre-processed point cloud data; S12: Using the spatial distribution characteristics of the port's three-dimensional point cloud data, the ship docking area is segmented from other areas through a clustering algorithm to obtain a point cloud of the ship docking area; S13: identifying and extracting the point cloud data area where the ship is located by setting a threshold in the point cloud of the ship docking area, and obtaining the ship point cloud data; S14: Segment the ship point cloud data by an edge detection algorithm to obtain point cloud data of each ship, and then extract contour and size features from the point cloud data of the ship as point cloud features of the hull shape of each ship.
3. The ship unloader path planning system based on three-dimensional point cloud recognition and image recognition as claimed in claim 1, characterized in that: The image feature extraction module extracts the features of the ship license plate through the following steps: S21: performing image preprocessing on the port image to obtain a preprocessed image; S22: Perform ship target detection on the preprocessed image through a deep learning-based target detection model to identify the position and bounding box of each ship target; S23: Identify the ship license plate area from the bounding box of each ship target through edge detection and template matching technology; S24: performing character recognition on the license plate area of each ship through an OCR algorithm, and using the character recognition result of the license plate as the license plate feature of each ship.
4. The ship unloader path planning system based on three-dimensional point cloud recognition and image recognition as claimed in claim 3, characterized in that: In step S22, the target detection model constructed based on YOLO is used to detect the ship target. The specific steps are as follows: S221: extracting multiple levels of features from the preprocessed image through the backbone network to obtain multiple levels of semantic feature maps; wherein the backbone network introduces a convolutional attention module; S222: The semantic feature maps at different levels are fused through the neck network to generate fused feature maps at multiple scales; S223: Output the position and bounding box of each ship target based on the fused feature maps of multiple scales through the head network.
5. The ship unloader path planning system based on three-dimensional point cloud recognition and image recognition as claimed in claim 4, characterized in that: In step S221, the backbone network is provided with a convolutional attention module at the output of each residual module; the convolutional attention module includes a space-by-space attention mechanism and a channel-by-channel attention mechanism; The calculation formula of the convolutional attention module is as follows: Where: X′ represents the output of the convolutional attention module, that is, the relevant context information in the pixel domain and channel domain; X represents the input of the convolutional attention module; α and β are two learnable parameters; X2 and X1 represent the pixel-by-pixel attention feature map and the channel-by-channel attention feature map, respectively; K2 represents the pixel-by-pixel attention coefficient; T represents the transpose operation; Represents matrix multiplication; Indicates that the output is constrained by the normalization factor; K1 represents the channel attention coefficient.
6. The ship unloader path planning system based on three-dimensional point cloud recognition and image recognition as claimed in claim 3, characterized in that: In step S23, the processing steps for identifying the vessel license plate number area are as follows: S231: Performing a ship license plate edge detection on the bounding box of the ship target by using a Canny edge detector to generate a plurality of candidate regions; S232: Acquire several ship license plate template images of different styles; S233: performing edge detection on the ship license plate number template image so as to match it with the edge of the candidate area; S234: Matching the edge-detected ship license plate number template image with each candidate area, and taking the candidate area with the highest matching degree as the ship license plate number area.
7. The ship unloader path planning system based on three-dimensional point cloud recognition and image recognition as claimed in claim 3, characterized in that: In step S24, the processing steps of the OCR algorithm for character recognition are as follows: S241: Segment each character in the ship license plate number area according to the interval or specific features between the characters to obtain a plurality of independent character images; S242: extracting features from each segmented character image to obtain character features of each character image; S243: Input each character feature into the trained support vector machine and output the character recognition result of the ship license plate number.
8. The ship unloader path planning system based on three-dimensional point cloud recognition and image recognition as claimed in claim 1, characterized in that: Feature Fusion The module generates a fused feature vector through the following steps: S31: The hull shape point cloud features and the ship license plate number features are converted into feature vectors of the same dimension through a fully connected layer to obtain a hull shape point cloud feature vector and a ship license plate number feature vector; S32: By means of feature concatenation, the hull shape point cloud feature vector and the ship license plate number feature vector are connected end to end to form a longer feature vector, thereby generating a fused feature vector.
9. The ship unloader path planning system based on three-dimensional point cloud recognition and image recognition as claimed in claim 1, characterized in that: The target vessel matching module calculates the similarity between each vessel and the vessel to be unloaded by calculating the cosine similarity between the fused feature vector and the pre-stored feature vector of the vessel to be unloaded, and then selects the vessel with the highest similarity that exceeds the threshold as the target vessel to be unloaded.
10. The ship unloader path planning system based on three-dimensional point cloud recognition and image recognition as claimed in claim 1, characterized in that: The path planning module uses the path planning algorithm to plan the path with the current position of the ship unloader as the starting point, the position of the target ship as the end point, and avoiding obstacles as the goal, to generate the unloading movement path of the ship unloader.
Citation Information
Patent Citations
License plate localization and identification method based on high-definition image
CN101937508A
Ship license plate recognition method and system based on deep learning
CN112183233A
Multi-view ship identity recognition method based on local feature fusion
CN114463640A
Partial-to-partial point cloud registration method based on multiple attention fusion network
CN117036431A
Ship identity recognition method based on vision and radar
CN117935183A
