A method of detecting and cutting a welding scar of a ship's lifting lug

By partitioning three-dimensional point clouds and iteratively updating virtual base material surfaces, combined with cutting devices and path generation methods, the problems of high labor intensity and poor accuracy in the treatment of weld scars on ship lifting lugs have been solved, achieving efficient and accurate weld scar detection and cutting.

CN122906071BActive Publication Date: 2026-11-20NANJING UNIV OF INFORMATION SCI & TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611399154.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-09-10
Publication Date
2026-11-20
Estimated Expiration
2046-09-10

AI Technical Summary

Technical Problem

Existing technologies for treating weld scars on ship lifting lugs suffer from high labor intensity, low efficiency, and poor precision. Furthermore, they are difficult to accurately determine the height of weld scar protrusions in complex curved surface environments, leading to undercutting, overcutting, or path deviation.

Method used

By acquiring the 3D point cloud of the area to be inspected on the ship, it is divided into the core residual area, the transition area and the stable base material area. The point set of the reliable transition area is selected by using the reliability evaluation index, and the virtual base material surface is iteratively updated. Combined with the cutting device and the path generation method, high-precision weld scar detection and cutting are achieved.

Benefits of technology

It improves the accuracy of weld spatter detection, avoids undercutting or overcutting, reduces empty cuts and overcutting of the base material, reduces manual labor intensity, and improves the consistency of processing and cutting stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122906071B_ABST
    Figure CN122906071B_ABST
Patent Text Reader

Abstract

The application discloses a kind of ship lifting lug welding scar detection method and cutting method, belong to lifting lug welding scar resection technical field, detection method includes: obtaining the three-dimensional point cloud of ship to be detected area, and it is divided into core residual area, transition area and stable base material area;Initial virtual base material surface is obtained by using the point cloud fitting of stable base material area;From the three-dimensional point cloud in transition area, filter out credible transition area point set;Credible transition area point set and stable base material area point set are combined into credible point set;Iterative update credible point set, and continuously optimize current virtual base material surface based on updated credible point set, reach the virtual base material surface of preset stop condition as computing reference, obtain welding scar protrusion height and geometric feature.The application can reduce the influence of welding pollution area on base material recovery result, improve the precision of welding scar detection, avoid under-cutting, over-cutting or path deviation of welding scar.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of lifting lug weld scar removal technology, specifically relating to a method for detecting and cutting weld scars on ship lifting lugs. Background Technology

[0002] In the modern shipbuilding, assembly, and installation process, to meet the needs of lifting, turning, transferring, and positioning large sections, a large number of lifting lugs are typically temporarily welded to the hull plating or reinforcing structures. After the relevant lifting or assembly operations are completed, these temporary lifting lugs must be removed. However, the welded areas after the lifting lugs are removed often leave raised weld scars, residual weld beads, or uneven areas on the base material surface. This not only seriously affects subsequent painting quality, corrosion resistance, and appearance assembly accuracy, but also easily leads to stress concentration during service, threatening the overall reliability of the hull structure. Therefore, how to efficiently and effectively clean residual weld scars from lifting lugs has become one of the key processes for shipbuilding companies both domestically and internationally to improve manufacturing quality.

[0003] Traditional methods of removing weld scars from lifting lugs, relying on manual experience, have numerous drawbacks and limitations. For a long time, existing weld scar removal operations both domestically and internationally have largely depended on manual observation and marking, supplemented by handheld grinders or pneumatic tools for polishing. This traditional, purely manual labor method is not only extremely labor-intensive and inefficient, but also generates severe dust and high-decibel noise, negatively impacting the health of frontline workers. More importantly, the allowance for manual polishing cannot be quantified, resulting in extremely poor processing consistency. Especially when dealing with complex scenarios involving convex or concave surfaces on the hull plating, or installation tilts, workers find it difficult to consistently and accurately judge the height of the weld scar relative to the actual base material surface using only their naked eyes and experience, easily leading to undercutting, overcutting, and rework.

[0004] Existing technologies already include methods for weld spatter detection and processing that incorporate machine vision and automated control. Two-dimensional (2D) vision methods are commonly used to acquire the weld spatter's outline and geometric boundaries, providing early 2D guidance for automated cutting. Furthermore, some advanced systems are attempting to introduce 3D depth sensors or detection methods using fixed reference planes. These methods aim to acquire height-dimensional information and convert visual coordinates into control coordinates for actuators such as gantry cranes, thereby guiding automated mechanical tools to perform cutting operations instead of manual labor. This has, to some extent, propelled shipbuilding towards digitalization and automation.

[0005] However, existing automated methods still have shortcomings in on-site ship applications: two-dimensional vision lacks height information; fixed reference planes are difficult to adapt to hull curvature and installation tilt; paint layers, orange peel texture, rust spots, and grinding marks can cause false protrusions. These factors can affect the judgment of the true allowance of weld spatter, leading to false detection, undercutting or overcutting, or path deviation. Summary of the Invention

[0006] This invention addresses the shortcomings of existing technologies by providing a method for detecting and cutting weld spatter on ship lifting lugs. This method can reduce the impact of weld contamination on the recovery results of the base material, make the fitted virtual base material surface approximate the real hull surface before the weld spatter formation, improve the accuracy of weld spatter detection, and avoid undercutting, overcutting, or path deviation of the weld spatter.

[0007] This invention provides the following technical solution: Firstly, a method for detecting weld spatter on ship lifting lugs is provided, including: Step S1: Obtain the 3D point cloud of the area to be inspected on the ship and divide it into the core residual area, the transition area and the stable parent material area; Step S2: Use the point cloud data of the stable parent material region to perform surface fitting to obtain the initial virtual parent material surface; Step S3: Using the constructed credibility evaluation index, select a set of credible transition region points from the 3D point cloud within the transition region; Step S4: Combine the set of points in the reliable transition region and the set of points in the stable parent material region into a set of reliable points; for each reliable point, iteratively update the set of reliable points by calculating the height residual between it and the corresponding fitting point of the current virtual parent material surface. In each iteration, re-optimize the current virtual parent material surface based on the updated set of reliable points until the preset stopping condition is reached, and output the final virtual parent material surface. Step S5: Using the output virtual base material surface as the calculation benchmark, obtain the weld scar protrusion height and geometric features based on the three-dimensional point cloud of the core residual region.

[0008] Optionally, step S1 specifically includes: S1.1: Collect the 3D point cloud of the area to be detected; S1.2: For any point in the 3D point cloud of the region to be detected Calculate the degree of change in local height, normal, surface condition, and local curvature; S1.3: Construct a first evaluation index for welding influence based on the degree of local height change and normal change; screen points whose first evaluation index is greater than a set threshold as candidate core residual points; cluster the preprocessed candidate core residual points, with each cluster corresponding to a core residual region; and extract the outer boundary of each core residual region as the first influence boundary. S1.4: Based on the degree of local curvature change, normal change, and surface condition change, a second evaluation index for welding influence is constructed; searching outward from the first influence boundary, when the second evaluation index of each point in the continuous area of ​​the three-dimensional point cloud is lower than the set threshold, the boundary closest to the first influence boundary in the continuous area is defined as the second stable boundary, and the area outside the second stable boundary is the stable base material area; the three-dimensional point cloud between the first influence boundary and the second stable boundary is the transition area.

[0009] Optionally, step S3 specifically includes: For any point in the 3D point cloud of the transition region, its reliability evaluation index is calculated based on its local height change, normal change, surface state change, and local curvature change. Points with reliability evaluation indices less than a set threshold are selected as reliable transition region points.

[0010] Optionally, step S4, the specific steps for iteratively updating the set of trustworthy points, are as follows: For the In the next iteration, calculate the height residual for each confidence point: ; in, For credibility The height residual, For credibility The actual three-dimensional coordinates, For the first Credible points in the virtual parent material surface of the next iteration Fitted coordinates; The risk score for each confidence point is calculated using the following formula, and points with risk scores less than a threshold are selected. The trusted points are used as the updated set of trusted points; ; in, For credibility Risk score, and Respective points The degree of change in normal and the degree of change in local curvature; , and They are respectively , and The corresponding weighting coefficients; The virtual parent material surface is re-optimized according to the following formula: ; in, For the first Virtual parent material surface of the next iteration For the index of the trusted point in the updated trusted point set, For credibility The actual three-dimensional coordinates, For the first Credible points in the virtual parent material surface of the next iteration Fitted coordinates, As a weight for the local curvature continuity, For credibility The degree of local curvature change, This is a curvature continuity reference value determined based on the curvature variation relationship between adjacent reliable points.

[0011] Optionally, step S5 specifically includes: S5.1: Using the output virtual base material surface as the calculation benchmark, calculate the protrusion height of each point in the core residual area, and construct the initial candidate mask after filtering out the weld scar candidate points according to the preset threshold. S5.2: Perform two-level screening on the initial candidate mask to obtain the final target weld scar region; the first level of screening is morphological opening operation, closing operation, connected component analysis and area constraint screening, and the second level of screening is screening based on region area, main direction, skeleton structure, height continuity and spatial geometric features. S5.3: For each target weld scar area, the skeleton is refined to obtain the geometric features of the target weld scar area, including the area of ​​the target weld scar area, the length-to-width ratio, the length of the skeleton trunk, the number of skeleton branches, the height continuity index and the height distribution characteristics. At the same time, the protrusion height of each point in the target weld scar area is output as the weld scar protrusion height.

[0012] Secondly, a method for cutting weld spalls on ship lifting lugs is provided, based on a cutting device and the method for detecting weld spalls on ship lifting lugs as described in any one of the first aspects. The cutting device includes a gantry crane, a point cloud acquisition module mounted on the gantry crane, and a cutting tool. The cutting method includes the following steps: The transformation matrix from the coordinate system of the calibration point cloud acquisition module to the gantry coordinate system is used to transform the acquired three-dimensional point coordinates of the weld scar to the gantry coordinate system, and tool tip offset compensation is performed to obtain the execution coordinates of the weld scar area. Based on the obtained geometric features of the weld spatter, the type of each weld spatter is determined, including: strip-shaped weld spatter, I-shaped weld spatter, and irregular weld spatter; The weld scar area is divided into multiple cutting layers based on its height distribution; For strip-shaped or I-shaped weld scars, a skeleton is used to guide the generation of the cutting path for each cutting layer; for irregular weld scars, each cutting layer is divided into multiple local regions, and a cutting path is generated independently for each local region. The generated cutting path is used to perform layered cutting of the weld scar area of ​​the ship. During the cutting process, local paths are added to areas where the sweep coverage is insufficient and the residual exceeds the limit, and potential out-of-bounds paths are trimmed.

[0013] Optionally, the execution coordinates of the weld scar region for: ; in, The transformation matrix for installing the reference coordinate system of the cutting tool relative to the gantry coordinate system. This represents the current position of the gantry crane. This is a fixed transformation matrix from the coordinate system of the point cloud acquisition module to the coordinate system of the cutting tool mounting reference. The coordinates of the weld scar in the coordinate system of the point cloud acquisition module are the three-dimensional points. Install the rotation matrix of the reference coordinate system relative to the gantry coordinate system for the cutting tool. This refers to the fixed offset of the tool tip's point of action relative to the cutting tool's mounting reference point.

[0014] Optionally, during the cutting process, signals representing changes in cutting load are collected, including cutting motor current, spindle speed fluctuations, feed resistance, or tool vibration signals. When the cutting load increases, the feed rate is reduced, the depth of cut is decreased, or the number of compensation cycles is increased. During the cutting process, the vibration signal of the gantry is collected. If the vibration exceeds the limit, the feed is reduced or the cutting is paused. During the cutting process, if the cutting is paused due to excessive vibration or after the cutting of a set number of layers is completed, the three-dimensional point cloud of the area to be inspected on the ship is re-acquired, the virtual base material surface is updated, and the weld scars and cutting weld scars are re-inspected until the remaining height of the weld scars is less than the allowable threshold, then the cutting is considered complete.

[0015] Thirdly, a computer device is provided, including a processor and a memory; wherein, when the processor executes a computer program stored in the memory, it implements the steps of the method for detecting weld spatter on ship lifting lugs as described in any one of the first aspects.

[0016] Fourthly, a computer-readable storage medium is provided for storing a computer program; when executed by a processor, the computer program implements the steps of the method for detecting weld spatter on ship lifting lugs as described in any one of the first aspects.

[0017] Compared with the prior art, the beneficial effects of the present invention are: (1) This invention addresses the problem that the actual base material surface is difficult to directly obtain due to factors such as weld scar protrusion, welding heat-affected deformation, paint layer changes, weld spatter, oxidation, and corrosion in the residual area after welding of ship lifting lugs. First, the three-dimensional point cloud data of the area to be inspected is obtained. Based on the height change, normal change, curvature recovery, and surface state change law during the outward diffusion process of the core residual area, the area to be inspected is divided into the core residual area, the transition area, and the stable base material area. Then, by establishing a reliable evaluation index, abnormal point clouds in the transition area affected by paint peeling, weld spatter, oxidation, corrosion, and thermal deformation are identified and eliminated. Finally, after establishing an initial virtual base material surface using the stable base material area, the set of reliable points is continuously iterated and updated. The local real hull surface before the formation of the weld scar is restored by jointly optimizing the height error and curvature continuity. This allows the virtual base material restoration process to avoid being affected by the welding contamination area, improves the accuracy of base material datum restoration in complex hull surface environments, achieves stable identification of the actual height of the weld scar protrusion, and improves the detection accuracy of the weld scar geometric features, thereby providing a reliable basis for subsequent cutting processing.

[0018] (2) The weld scar cutting method of the present invention can perform adaptive cutting for different types of weld scars, so that the cutting trajectory is adapted to the actual shape and remaining height of the weld scar, reducing the empty cut and overcut of the base material caused by the uniform rectangular serpentine path; in addition, the present invention also introduces tool tip offset compensation to convert the three-dimensional measurement results of the weld scar into the execution coordinates for cutting in the gantry coordinate system, realizing high-precision mapping from measurement perception to cutting action domain, and completely eliminating the systematic position drift caused by sensor installation angle deviation, optical axis non-perpendicularity or mechanical arm bending deformation.

[0019] (3) The weld scar cutting method of the present invention generates a layered contour advancement path based on the residual height map, so that the tool gradually cuts inward along the outer contour of the weld scar, reducing errors such as empty cut, overcutting of the base material, and irregular boundary treatment; and combined with cutting load and gantry vibration feedback, it adaptively adjusts the feed rate, single-layer cutting depth, pause and resweep strategies to improve the on-site cutting stability of the vehicle platform. In addition, the weld scar cutting method of the present invention forms a closed-loop process of "visual inspection - path generation - adaptive cutting - re-inspection and compensation", which can reduce the labor intensity of manual grinding and improve the consistency of weld scar treatment of ship lifting lugs. Attached Figure Description

[0020] Figure 1 This is a flowchart of the steps of the ship lifting lug weld scar detection method of the present invention; Figure 2 This is a schematic diagram of the virtual parent material surface fitting of the present invention; Figure 3 This is a flowchart of the steps of the ship lifting lug weld scar cutting method of the present invention. Detailed Implementation

[0021] The present invention will be further described below with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solutions of the present invention and should not be used to limit the scope of protection of the present invention. It should be noted that the term "comprising" and any variations thereof in the specification, claims and the above-mentioned drawings of the present invention are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or devices.

[0022] Example 1: like Figure 1 As shown, a method for detecting weld spatter on ship lifting lugs is provided, comprising the following steps: Step S1: Obtain the 3D point cloud of the area to be inspected on the ship and divide it into the core residual area, the transition area and the stable parent material area.

[0023] Step S1 specifically includes the following sub-steps: S1.1: Collect the 3D point cloud of the area to be detected.

[0024] In this embodiment, the original depth map is acquired by a structured light depth camera and then converted into a 3D point cloud after preprocessing. In some other embodiments, the 3D point cloud can also be acquired directly by a lidar.

[0025] The raw depth map acquired by the structured light depth camera is denoted as: ,in, and These represent the column coordinates and row coordinates of the image, respectively.

[0026] Considering that depth sensors are prone to flypoints, voids, and anomalous jumps under conditions such as metallic reflection, edge occlusion, surface contamination, and long-distance measurement, this implementation first filters the original depth map for its effective range. Let the minimum and maximum allowable depth thresholds be respectively... and The effective pixel set It can be represented as: ; For pixels that do not meet the above conditions, zero-value masking or invalid value marking is used to obtain a filtered depth map. Subsequently, while preserving as much of the geometric features of the weld scar edges as possible, median filtering was applied to the filtered depth map to suppress impulse noise and improve the continuity of the depth map, resulting in a preprocessed depth map. : . This indicates median filtering.

[0027] In the welding area of ​​ship lifting lugs, due to factors such as welding material accumulation, heat input, and subsequent surface treatment, the area near the weld spatter typically includes not only welding residual protrusions but also non-base material factors such as paint layer changes, weld spatter, surface oxidation, corrosion, and localized thermal deformation. Directly using the point cloud around the weld spatter for surface fitting can easily introduce abnormal areas affected by welding into the benchmark model, leading to deviations in the virtual base material recovery. Therefore, this invention, based on the welding attenuation law, divides the area to be detected into a core residual area, a transition area, and a stable base material area, such as... Figure 2 As shown, Figure 2 (a) in the diagram is a top-down planar partitioning diagram within the field of view of the point cloud acquisition module. Figure 2 (b) is a schematic cross-sectional view of the area to be detected divided into three sections; Figure 2 (c) in the figure is a schematic diagram of the virtual parent material surface fitting result.

[0028] S1.2: For any point in the 3D point cloud of the region to be detected Calculate the degree of change in local height, normal, surface condition, and local curvature.

[0029] ; ; ; , ; in, To represent the degree of local height change, The rate of change of depth in the horizontal direction. For the degree of change in normal direction, For point The normal vector, The average normal vector of the neighborhood point set. ; To represent the degree of local curvature change, For point The curvature is obtained by performing principal component analysis on its neighborhood point set. The average curvature of the neighborhood point set, The degree of change in surface condition. For point Surface roughness, To prevent extremely small positive values ​​from being zero, The average surface roughness of the neighborhood point set. For point neighborhood point set The number of elements, is the perpendicular distance from any point in the neighborhood point set to the neighborhood fitting plane, which is the plane fitted within the neighborhood point set using the least squares method.

[0030] S1.3: Construct a first evaluation index for welding influence based on the degree of local height change and normal change; select points whose first evaluation index is greater than a set threshold as candidate core residual points; cluster the preprocessed candidate core residual points, with each cluster corresponding to a core residual region; and extract the outer boundary of each core residual region as the first influence boundary.

[0031] The formula for calculating the first evaluation indicator is: ;in, For point The first evaluation indicator and These are the corresponding weights for the degree of local height change and the degree of normal change in the first evaluation index.

[0032] Screening from the 3D point cloud of the region to be detected The points are used as candidate core residual points. The preset threshold is set as the first evaluation metric. Candidate core residual points are preprocessed, including removing scattered points, and then clustered. Existing technologies can be referenced for the clustering algorithm. Each cluster corresponds to a core residual region, and the outer boundary of each core residual region is extracted as the first influence boundary.

[0033] The core residual region, due to the accumulation of welding material and the effects of heat, does not participate in the establishment of the virtual base material surface. The core residual region mainly includes the protruding structures formed by residual welding material and areas with strong welding influence, which are used for subsequent calculation of the actual protrusion height of weld scars.

[0034] S1.4: Based on the degree of local curvature change, normal change, and surface condition change, a second evaluation index for welding influence is constructed; searching outward from the first influence boundary, when the second evaluation index of each point in the continuous area of ​​the three-dimensional point cloud is lower than the set threshold, the boundary closest to the first influence boundary in the continuous area is defined as the second stable boundary, and the area outside the second stable boundary is the stable base material area; the three-dimensional point cloud between the first influence boundary and the second stable boundary is the transition area.

[0035] The formula for calculating the second evaluation indicator is: ; For point The second evaluation indicator , and These are the corresponding weights for the degree of local curvature change, the degree of normal change, and the degree of surface state change in the second evaluation index.

[0036] Starting from the first influence boundary, search point by point radially outwards. When a continuous region exists within the point set such that all points within it satisfy... When this occurs, the boundary of the continuous region closest to the core residual region is defined as the second stable boundary. The determination of a continuous region must satisfy both spatial connectivity constraints and minimum region size constraints. To preset the threshold for the second evaluation metric, it can be based on the entire point cloud. The distribution can be determined by selecting and setting quantiles, or it can be based on the stable parent material region. The statistical characteristics are used as a benchmark for determination.

[0037] The transition region is located between the first influence boundary and the second stable boundary. It is mainly used to analyze the welding influence decay process and screen reliable transition region points that can reflect the change trend of the base material. The stable base material region is located outside the second stable boundary and is used to provide the basic geometric constraints required for virtual base material recovery.

[0038] Step S2: Use the point cloud data of the stable parent material region to perform surface fitting to obtain the initial virtual parent material surface.

[0039] The method for fitting the initial virtual parent material surface can refer to existing techniques, such as fitting using the least squares method.

[0040] Step S3: Using the constructed credibility evaluation index, select the credible transition region point set from the 3D point cloud within the transition region.

[0041] Since the transition area may contain abnormal factors such as paint peeling, paint warping, weld spatter, oxidation areas, corrosion pits, and welding thermal deformation, it is necessary to further screen reliable transition area points.

[0042] For point clouds in the transition region, a reliable evaluation index is established by comprehensively considering changes in height, normal, curvature, and surface state.

[0043] ; in, Points within the transition region Credibility evaluation indicators , , and The midpoints of the transition areas are respectively The degree of change in local height, the degree of change in normal, the degree of change in local curvature, and the degree of change in surface condition. , , and They are respectively , , and The corresponding weights.

[0044] filter Points within the transition region are considered as reliable transition region points. The threshold for preset credibility evaluation indicators is set.

[0045] Step S4: Combine the set of points in the reliable transition region and the set of points in the stable parent material region into a set of reliable points; for each reliable point, iteratively update the set of reliable points by calculating the height residual between it and the corresponding fitting point of the current virtual parent material surface. In each iteration, re-optimize the current virtual parent material surface based on the updated set of reliable points until the preset stopping condition is reached, and output the final virtual parent material surface.

[0046] The specific steps for iteratively updating the set of trustworthy points are as follows: Step I: For the first In the next iteration, calculate the height residual for each confidence point: ; in, For credibility The height residual, For credibility The actual 3D coordinates are obtained based on the 3D point cloud of the region to be detected. For the first Credible points in the virtual parent material surface of the next iteration The fitted coordinates.

[0047] Step II: Calculate the risk score for each confidence point according to the following formula, and filter out those with risk scores less than the threshold. The trusted points are used as the updated set of trusted points; ; in, For credibility Risk score, and Respective points The degree of change in normal and the degree of change in local curvature; , and They are respectively , and The corresponding weighting coefficients.

[0048] Step III: Re-optimize the virtual parent material surface according to the following formula: ; in, For the first Virtual parent material surface of the next iteration For the index of the trusted point in the updated trusted point set, For credibility The actual three-dimensional coordinates, For the first In the next iteration, the reliable points in the virtual parent material surface Fitted coordinates, As a weight for the local curvature continuity, For credibility The degree of local curvature change, This is a curvature continuity reference value determined based on the curvature variation relationship between adjacent reliable points. The first term in the above formula is used to constrain the high-fit error, and the second term is used to maintain the local curvature continuity of the recovered surface.

[0049] Step IV: Determine whether the maximum number of iterations has been reached or whether two adjacent iterations satisfy the condition. If so, stop the iteration and output the final virtual parent material surface. Set a preset iteration stop threshold. If not, return to step I based on the updated current virtual parent material surface.

[0050] By continuously updating the set of reliable points and the fitting parameters of the virtual base material surface, the virtual base material surface gradually approximates the real hull surface before the weld scar is formed.

[0051] This application enables the virtual base material restoration process to avoid the influence of weld contamination areas through adaptive division of the weld-affected area, screening of abnormal areas, and iterative updating of reliable points. This improves the accuracy of base material datum restoration in complex hull surface environments and provides a reliable basis for subsequent calculation of the true protrusion height of weld scars and determination of cutting allowances.

[0052] Step S5: Using the output virtual base material surface as the calculation benchmark, obtain the weld scar protrusion height and geometric features based on the three-dimensional point cloud of the core residual region.

[0053] Step S5 is as follows: S5.1: Using the output virtual base material surface as the calculation benchmark, calculate the bulge height of each point in the core residual region, and construct the initial candidate mask after filtering out the candidate points of weld scars according to the preset threshold.

[0054] Since the area where ship lifting lugs are installed typically has a certain curvature, directly calculating the weld scar height using a fixed directional height difference is easily affected by changes in the ship's attitude and local curved surface structures. Therefore, this embodiment selects either a depth-direction height calculation method or a height calculation method along the normal direction of the base material based on the hull surface morphology to obtain the protrusion height of each point in the core residual area.

[0055] When a local area of ​​the hull is approximately flat and the angle between the line of sight of the structured light depth camera and the normal direction of the local surface is small, the depth difference can be used to calculate the height of the protrusion at each point in the core residual area.

[0056] When the direction away from the camera is taken as the positive depth direction, and the weld spatter protrusion area is closer to the camera than the corresponding base material area, the actual depth value of the weld spatter is less than the depth value of the virtual base material surface. Therefore, the protrusion height at any point in the core residual region... Defined as: ;in, This represents the depth value of the virtual parent material surface fitted at the corresponding position, as output in step S4. This represents the actual depth value acquired by the structured light depth camera.

[0057] For areas where the hull exhibits significant tilt or curvature changes, to reduce the impact of the hull's curved surface structure on height calculation, the height of the bulge along the local normal direction of the virtual base material surface output in step S4 is further used for calculation. Let the coordinates of the actual measurement point be... The coordinates of the corresponding points on the virtual parent material curved surface are The unit normal vector at the corresponding position is Then the normal bulge height (the bulge height at any point in the core residual region) is defined as: The spatial protrusion of the core residual area relative to the surface of the actual hull material can be obtained through the above method.

[0058] After calculating the protrusion height, candidate weld scar points are initially extracted based on a height threshold. When the protrusion height of any point in the core residual region satisfies: When this point is identified as a candidate weld spatter point, an initial candidate mask is constructed: ,in, The threshold for determining weld spatter height.

[0059] S5.2: Perform two-stage screening on the initial candidate mask to obtain the final target weld spatter area.

[0060] The first-level screening is used to remove local noise and discontinuous abnormal regions generated during height detection. Specifically, it includes morphological opening and closing operations, connected component analysis, and area constraint screening. Through these processes, pseudo-protrusion regions with excessively small areas, discrete spatial distributions, and insufficient height continuity are removed, resulting in several candidate connected components. It should be noted that the candidate connected components after the first-level screening only represent areas where weld spatter residue may exist and are not directly used as the final detection result output.

[0061] The candidate connected regions obtained after the first-level screening are subjected to a second-level screening. By further analyzing the region area, main direction, skeleton structure, height continuity and spatial geometric features, false detection regions caused by local material residue, mechanical damage or other non-welded protrusions are eliminated.

[0062] The core residual area retained after two levels of screening is the final target weld area, and there is usually at least one target weld area.

[0063] S5.3: For each target weld scar area, the skeleton is refined to obtain the geometric features of the target weld scar area, including the area of ​​the target weld scar area, the length-to-width ratio, the length of the skeleton trunk, the number of skeleton branches, the height continuity index and the height distribution characteristics. At the same time, the protrusion height of each point in the target weld scar area is output as the weld scar protrusion height.

[0064] Due to the influence of welding process, welding path and residual material distribution during the welding of ship lifting lugs, the actual weld scars formed vary in spatial morphology and may manifest as strip structures with obvious directionality, complex structures with local branches, and irregular protrusion structures.

[0065] For each target weld scar area First, the skeleton is refined to extract the internal structural information of the target weld scar area: ; in, Indicates the target weld scar area The refined skeleton, This indicates the skeleton extraction operation. The skeleton structure provides spatial structural information about the target weld scar region, including its main extension direction, skeleton length, number of branches, and local intersections.

[0066] Subsequently, based on the target weld area Calculate the principal direction angle of the second-order central moment: ; in, , and These represent the target weld scar areas. The three values ​​of the second-order central moment, This represents the angle between the overall extension direction of the target weld scar area and the image coordinate system.

[0067] After obtaining the skeleton structure and main orientation information of the target weld scar region, the geometric features of the target weld scar region are further extracted, including: (1) The area of ​​the target weld scar region is used to evaluate whether the size of the target weld scar region meets the characteristics of the welding residue region; (2) Length-to-width ratio, used to describe the extent of extension of the target weld scar area along the welding direction; (3) The length of the main skeleton is used to evaluate the continuity of the main structure of the target weld scar area; (4) The number of skeleton branches and their intersection relationships are used to describe the complex internal structure of the target weld scar area; (5) High continuity index, used to determine whether the target weld scar area has stable protrusion characteristics; (6) Height distribution characteristics, which describe how the height values ​​of the entire weld scar area are distributed in space. Height distribution characteristics include mean, kurtosis, standard deviation and / or skewness.

[0068] Based on the above characteristics, construct the geometric features of the target weld scar region. Comprehensive description: ; in, Indicates the area of ​​the target weld scar region. Indicates the aspect ratio. Indicates the length of the main skeleton. Indicates the number of branches in the skeleton. Indicators representing high continuity This indicates the characteristics of height distribution.

[0069] Example 2: A method for cutting weld spalls on ship lifting lugs is disclosed, based on a cutting device and any one of the ship lifting lug weld spall detection methods in Example 1. The cutting device includes a gantry crane and a point cloud acquisition module and a cutting tool mounted on the gantry crane. More specifically, the cutting device of this application includes: an equipment mounting platform, a Y-axis slide, a Y-axis slider, an X-axis slide, an X-axis slider, a Z-axis slide, a Z-axis slider, a cutting motor, a cutting tool, a structured light depth camera, a depth camera mounting bracket, a PLC controller, and a host computer vision processing module. The gantry crane includes a Y-axis slide, a Y-axis slider, an X-axis slide, an X-axis slider, a Z-axis slide, and a Z-axis slider. The gantry crane is mounted on the equipment mounting platform.

[0070] The equipment mounting platform supports the entire dual Y-axis, dual X-axis, and dual Z-axis motion mechanism and provides an installation reference for the Y-axis slide, PLC controller, host computer vision processing module, and other auxiliary components. As the fundamental support structure of the entire cutting system, the equipment mounting platform ensures the relative positional stability between the various motion axes.

[0071] There are two Y-axis slides, which are mounted parallel to each other on the equipment mounting platform to provide motion guidance for the cutting mechanism along the Y direction. The two Y-axis slides are arranged at intervals and together support the X-axis slide above, thereby improving the rigidity and stability of the overall motion mechanism.

[0072] There are four Y-axis sliders, with two sliders on each Y-axis slide. The corresponding Y-axis sliders on the two Y-axis slides each fix one X-axis slide, thus the two Y-axis slides collectively support the two X-axis slides through the four Y-axis sliders. The Y-axis sliders can reciprocate along the Y-axis slides, thereby driving the X-axis slides above them to move synchronously along the Y-direction.

[0073] There are two X-axis slides, arranged in parallel, which move together with the Y-axis slider along the Y direction. The X-axis slides are used to provide motion guidance for the cutting mechanism along the X direction.

[0074] There are two X-axis sliders, one on each X-axis slide. The two X-axis sliders are arranged facing each other and are used to fix one Z-axis slide. The X-axis sliders can reciprocate along the X-axis slide, thereby driving the Z-axis slide and the cutting motor to move in the X direction.

[0075] There are two Z-axis slides, each fixed to two X-axis sliders arranged face-to-face. The two Z-axis slides are positioned opposite each other and between the two X-axis sliders, providing guidance for the cutting motor's vertical movement along the Z-axis. Supporting the cutting motor with two Z-axis slides improves the stability of Z-axis movement during cutting and reduces skew caused by unilateral force application.

[0076] There are two Z-axis sliders, one on each Z-axis slide. The two Z-axis sliders are arranged facing each other, and the cutting motor is fixedly installed between the two Z-axis sliders. When the Z-axis sliders move up and down along the Z-axis slide, they drive the cutting motor and cutting tool to move closer to or away from the surface of the ship's steel plate, thereby realizing the actions of tool entry, cutting depth control, and tool retraction.

[0077] The cutting motor is fixedly mounted between two Z-axis slides to drive the cutting tool to rotate and complete the cutting operation of the lifting lug weld scar. The cutting motor is clamped and mounted by the two Z-axis slides, which allows the cutting force to be transmitted more evenly to the Z-axis slides on both sides, improving the structural rigidity and machining stability during the cutting process.

[0078] The cutting tool is mounted on the output end of the cutting motor and is used to directly contact and remove the weld scars from the lifting lugs on the surface of the ship's steel plates. The cutting tool rotates under the drive of the cutting motor and, with the combined action of the Y-axis slide, X-axis slide, and Z-axis slide, completes layered cutting according to the planned path.

[0079] The structured light depth camera is used to acquire depth images of the areas containing weld scars on the ship's hull steel plates and lifting lugs, obtaining three-dimensional information of the residual weld core area and the surrounding base material area. The structured light depth camera and the cutting motor have a fixed absolute positional relationship; that is, the spatial position and orientation of the structured light depth camera relative to the cutting motor remain unchanged after installation. Through this fixed absolute positional relationship, the three-dimensional point coordinates of the weld scars identified by the structured light depth camera can be converted into the execution positions of the cutting motor and cutting tool.

[0080] The depth camera mounting bracket is used to secure the structured light depth camera. The bracket is installed near the cutting motor and on a support structure that maintains a rigid connection with the cutting motor, ensuring that the relative position between the structured light depth camera and the cutting motor remains unchanged.

[0081] The PLC controller is connected to the Y-axis slide, X-axis slide, and Z-axis slide respectively. It is used to receive the trajectory point sequence, tool drop command, cutting depth command, and review and compensation command output by the host computer vision processing module, and control the Y-axis, X-axis, Z-axis and cutting motor to perform the movement in a preset order.

[0082] The host computer vision processing module is connected to the structured light depth camera and PLC controller to receive depth images and sensor unit signals, and to complete depth preprocessing, virtual base material restoration based on three-zone welding influence and residual feedback iteration, weld scar height calculation, region identification, coordinate transformation, path generation, cutting parameter adjustment and re-inspection compensation.

[0083] The weld scar on the lifting lug is the residual protruding area left on the surface of the hull steel plate after the lifting lug has been removed. Due to differences in welding process, welding path, and distribution of residual material, the weld scar on the lifting lug can form protruding areas with different spatial structures. The cutting area, cutting depth, and cutting path are determined based on the actual protrusion height of the weld scar relative to the virtual base material surface, the continuity of the area, and the spatial structural characteristics.

[0084] like Figure 3 As shown, a method for cutting weld scars on ship lifting lugs includes the following steps: Step D1: Calibrate the transformation matrix from the point cloud acquisition module coordinate system to the gantry coordinate system, transform the acquired 3D point coordinates of the weld scar to the gantry coordinate system, and perform tool tip offset compensation to obtain the execution coordinates of the weld scar area.

[0085] Execution coordinates of weld scar area for: ; in, The transformation matrix for installing the reference coordinate system of the cutting tool relative to the gantry coordinate system. This represents the current position of the gantry crane. This is a fixed transformation matrix from the coordinate system of the point cloud acquisition module to the coordinate system of the cutting tool mounting reference. The coordinates of the weld scar in the coordinate system of the point cloud acquisition module are the three-dimensional points. Install the rotation matrix of the reference coordinate system relative to the gantry coordinate system for the cutting tool. This refers to the fixed offset of the tool tip's point of action relative to the cutting tool's mounting reference point.

[0086] Step D2: Based on the obtained geometric features of the weld spatter, determine the type of each weld spatter, including: strip-shaped weld spatter, I-shaped weld spatter, and irregular weld spatter.

[0087] The method for determining weld spatter type refers to existing technologies. For strip-shaped weld spatter, it has a clear main extension direction, continuous skeleton structure, and stable height distribution. For I-shaped weld spatter, it has candidate areas with transverse branching structures or local intersection structures. Irregular weld spatter is the target weld spatter area that has not been identified as a strip-shaped or I-shaped weld spatter.

[0088] Step D3: Divide the weld scar area into multiple cutting layers based on the height distribution.

[0089] The corresponding residual outer contour is extracted for each layer.

[0090] Step D4: For strip-shaped or I-shaped weld scars, use a skeleton to guide the generation of the cutting path for each cutting layer; for irregular weld scars, divide each cutting layer into multiple local regions and generate a cutting path for each local region independently.

[0091] Specifically, for strip-shaped or I-shaped weld scars, the main cutting direction is determined by combining the skeleton trunk, branches and local width. The skeleton is used as the geometric control line for path planning. In each cutting layer, a set of continuous tool trajectories parallel to the skeleton or swinging along the skeleton normal are generated with the skeleton as the center. Since the shape of regular weld scars is similar at different height layers and the skeleton structure is stable, the path topology of each cutting layer remains consistent.

[0092] For irregular weld scars, during each cutting layer, the two-dimensional residual contour of each layer is considered as a complex connected domain. Based on the curvature, concave and convex corners, etc., a clustering algorithm can be used to divide the complex connected domain into several simple-shaped (circular or rectangular) local regions, and an optimal feed direction and tool path are generated for each independent local region. Because the shape and size of the complex connected domain vary in each cutting layer, the cutting path planning and partitioning scheme for each layer are independent and dynamically changing.

[0093] Step D5: Use the generated cutting path to perform layered cutting on the weld scar area of ​​the ship. During the cutting process, add local paths to areas where the sweep coverage is insufficient and the residue exceeds the limit, and trim potential out-of-bounds paths.

[0094] Adding local paths to areas with insufficient sweep coverage and residual excesses can completely eliminate redundant margins. Potential boundary-crossing paths refer to parts of the planned path that intrude into the parent material area.

[0095] In some other embodiments, during the cutting process, signals representing changes in cutting load are acquired, including cutting motor current, spindle speed fluctuations, feed resistance, or tool vibration signals. When the cutting load increases, the feed rate is reduced, the depth of cut is decreased, or the number of compensation cycles is increased. During the cutting process, the vibration signal of the gantry is collected. If the vibration exceeds the limit, the feed is reduced or the cutting is paused. During the cutting process, if the cutting is paused due to excessive vibration or after the cutting of a set number of layers is completed, the three-dimensional point cloud of the area to be inspected on the ship is reacquired, the virtual base material surface is updated, and the weld scars and cutting weld scars are re-inspected until the remaining height is less than the allowable threshold, then the cutting is considered complete.

[0096] By combining cutting load and gantry vibration feedback, the feed rate, single-layer cutting depth, pause and re-sweep strategies are adaptively adjusted to improve the on-site cutting stability of the vehicle platform. The cutting method of this invention forms a closed-loop process of "visual inspection - path generation - adaptive cutting - re-inspection and compensation", which can reduce the labor intensity of manual grinding and improve the consistency of weld scar treatment for ship lifting lugs.

[0097] Example 3: The present invention provides a computer device, including a processor and a memory; wherein, when the processor executes the computer program stored in the memory, it implements the steps of the above-described method for detecting weld spatter on ship lifting lugs.

[0098] For a more detailed explanation of the above method, please refer to the relevant content disclosed in the foregoing embodiments, which will not be repeated here.

[0099] Example 4: The present invention provides a computer-readable storage medium for storing a computer program; when the computer program is executed by a processor, it implements the steps of the above-described method for detecting weld spatter on ship lifting lugs.

[0100] For a more detailed explanation of the above method, please refer to the relevant content disclosed in the foregoing embodiments, which will not be repeated here.

[0101] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. Regarding the devices and storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple; relevant details can be found in the method section. Those skilled in the art will clearly understand that the technologies in the embodiments of this invention can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of this invention, in essence or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or certain parts of the embodiments of this invention.

[0102] The above are merely preferred embodiments of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should be considered within the scope of protection of the present invention.

Claims

1. A method for detecting weld scars on ship lifting lugs, characterized in that, include: Step S1: Obtain the 3D point cloud of the area to be inspected on the ship and divide it into the core residual area, the transition area and the stable parent material area; Step S2: Use the point cloud data of the stable parent material region to perform surface fitting to obtain the initial virtual parent material surface; Step S3: Using the constructed credibility evaluation index, select a set of credible transition region points from the 3D point cloud within the transition region; Step S4: Combine the set of points in the reliable transition region and the set of points in the stable parent material region into a set of reliable points; for each reliable point, iteratively update the set of reliable points by calculating the height residual between it and the corresponding fitting point of the current virtual parent material surface. In each iteration, re-optimize the current virtual parent material surface based on the updated set of reliable points until the preset stopping condition is reached, and output the final virtual parent material surface. Step S5: Using the output virtual base material surface as the calculation benchmark, obtain the weld scar protrusion height and geometric features based on the 3D point cloud of the core residual region; Step S1 specifically includes: S1.1: Collect the 3D point cloud of the area to be detected; S1.2: For any point in the 3D point cloud of the region to be detected Calculate the degree of change in local height, normal, surface condition, and local curvature. S1.3: Construct a first evaluation index for welding influence based on the degree of local height change and normal change; screen points whose first evaluation index is greater than a set threshold as candidate core residual points; cluster the preprocessed candidate core residual points, with each cluster corresponding to a core residual region; and extract the outer boundary of each core residual region as the first influence boundary. S1.4: Based on the degree of local curvature change, normal change, and surface condition change, a second evaluation index for welding influence is constructed; searching outward from the first influence boundary, when the second evaluation index of each point in the continuous area of ​​the three-dimensional point cloud is lower than the set threshold, the boundary closest to the first influence boundary in the continuous area is defined as the second stable boundary, and the area outside the second stable boundary is the stable base material area; the three-dimensional point cloud between the first influence boundary and the second stable boundary is the transition area. Step S4, the specific steps for iteratively updating the set of trustworthy points, are as follows: For the In the next iteration, calculate the height residual for each confidence point: ; in, For credibility The height of the residual, For credibility The actual three-dimensional coordinates, For the first Credible points in the virtual parent material surface of the next iteration Fitted coordinates; The risk score for each confidence point is calculated using the following formula, and points with risk scores less than a threshold are selected. The trusted points are used as the updated set of trusted points; ; in, For credibility Risk score, and Respective points The degree of change in normal and the degree of change in local curvature; , and They are respectively , and The corresponding weighting coefficients; The virtual parent material surface is re-optimized according to the following formula: ; in, For the first The virtual parent material surface of the next iteration For the index of the trusted point in the updated trusted point set, For credibility The actual three-dimensional coordinates, For the first Credible points in the virtual parent material surface of the next iteration Fitted coordinates, As a weight for the local curvature continuity, For credibility The degree of local curvature change, This is a curvature continuity reference value determined based on the curvature variation relationship between adjacent reliable points.

2. The method for detecting weld scars on ship lifting lugs according to claim 1, characterized in that, Step S3 specifically involves: For any point in the 3D point cloud of the transition region, its reliability evaluation index is calculated based on its local height change, normal change, surface state change, and local curvature change. Points with reliability evaluation indices less than a set threshold are selected as reliable transition region points.

3. The method for detecting weld scars on ship lifting lugs according to claim 1, characterized in that, Step S5 is as follows: S5.1: Using the output virtual base material surface as the calculation benchmark, calculate the protrusion height of each point in the core residual area, and construct the initial candidate mask after filtering out the weld scar candidate points according to the preset threshold. S5.2: Perform two-stage screening on the initial candidate mask to obtain the final target weld spatter area; The first level of screening involves morphological opening and closing operations, connected component analysis, and area constraint screening. The second level of screening involves screening based on region area, principal direction, skeletal structure, height continuity, and spatial geometric features. S5.3: For each target weld scar area, the skeleton is refined to obtain the geometric features of the target weld scar area, including the area of ​​the target weld scar area, the length-to-width ratio, the length of the skeleton trunk, the number of skeleton branches, the height continuity index and the height distribution characteristics. At the same time, the protrusion height of each point in the target weld scar area is output as the weld scar protrusion height.

4. A method for cutting weld spalls on ship lifting lugs, based on a cutting device and the method for detecting weld spalls on ship lifting lugs according to any one of claims 1-3, wherein the cutting device comprises a gantry crane and a point cloud acquisition module and a cutting tool mounted on the gantry crane, characterized in that, The cutting method includes the following steps: The transformation matrix from the coordinate system of the calibration point cloud acquisition module to the gantry coordinate system is used to transform the acquired three-dimensional point coordinates of the weld scar to the gantry coordinate system, and tool tip offset compensation is performed to obtain the execution coordinates of the weld scar area. Based on the obtained geometric features of the weld spatter, the type of each weld spatter is determined, including: strip-shaped weld spatter, I-shaped weld spatter, and irregular weld spatter; The weld scar area is divided into multiple cutting layers based on its height distribution; For strip-shaped or I-shaped weld scars, a skeleton is used to guide the generation of the cutting path for each cutting layer; for irregular weld scars, each cutting layer is divided into multiple local regions, and a cutting path is generated independently for each local region. The generated cutting path is used to perform layered cutting of the weld scar area of ​​the ship. During the cutting process, local paths are added to areas where the sweep coverage is insufficient and the residual exceeds the limit, and potential out-of-bounds paths are trimmed.

5. The method for cutting weld scars on ship lifting lugs according to claim 4, characterized in that, The execution coordinates of the weld scar area for: ; in, The transformation matrix for installing the reference coordinate system of the cutting tool relative to the gantry coordinate system. This represents the current position of the gantry crane. This is a fixed transformation matrix from the coordinate system of the point cloud acquisition module to the coordinate system of the cutting tool mounting reference. The coordinates of the weld scar in the coordinate system of the point cloud acquisition module are the three-dimensional points. Install the rotation matrix of the reference coordinate system relative to the gantry coordinate system for the cutting tool. This refers to the fixed offset of the tool tip's point of action relative to the cutting tool's mounting reference point.

6. The method for cutting weld scars on ship lifting lugs according to claim 4, characterized in that, During the cutting process, signals representing changes in cutting load are collected, including cutting motor current, spindle speed fluctuations, feed resistance, or tool vibration signals. When the cutting load increases, the feed rate is reduced, the depth of cut is decreased, or the number of compensation cycles is increased. During the cutting process, the vibration signal of the gantry is collected. If the vibration exceeds the limit, the feed is reduced or the cutting is paused. During the cutting process, if the cutting is paused due to excessive vibration or after the cutting of a set number of layers is completed, the three-dimensional point cloud of the area to be inspected on the ship is re-acquired, the virtual base material surface is updated, and the weld scars and cutting weld scars are re-inspected until the remaining height of the weld scars is less than the allowable threshold, then the cutting is considered complete.

7. A computer device, characterized in that, It includes a processor and a memory; wherein, when the processor executes the computer program stored in the memory, it implements the steps of the ship lifting lug weld spatter detection method according to any one of claims 1-3.

8. A computer-readable storage medium, characterized in that, Used to store computer programs; when executed by a processor, the computer programs implement the steps of the ship lifting lug weld spatter detection method according to any one of claims 1-3.

Citation Information

Patent Citations

  • Robot grinding track planning method and device based on machine vision

    CN118342505A

  • Multi-type polishing area detection algorithm for casting autonomous polishing

    CN119494824A