A 3D Vision-Based Weld Seam Extraction Method for Arbitrarily Placed Spatial Planar Weldments
Abstract
:1. Introduction
2. Improved RANSAC for Plane Segmentation
2.1. Three-Dimensional Reconstruction
2.2. Improved RANSAC
2.2.1. Optimization for Point Sampling
- Rule 1. Sample validation.
2.2.2. Optimization for Candidate Plane Validation
- Rule 2. Candidate plane validation.
2.2.3. Optimization for Inlier Validation and Update Criterion
- Rule 3. Inlier validation.
- Rule 4. Update criterion.
2.2.4. Optimization for Final Output
- Rule 5. Final refinements.
- (a)
- Least-square fitting is performed on each cluster of inliers, leading to a corresponding number of plane models. That is to say,
- (b)
- Choose a plane as the final output that satisfies
2.3. Consecutive Plane Segmentation
2.4. Algorithm Implementation
2.4.1. Implementation for Improved RANSAC Algorithm
Algorithm 1 Improved RANSAC Algorithm | |
1 | Input: the point cloud and the corresponding normal vectors ; |
2 | Output: segmented plane model and its inliers |
3 | = 0 |
4 | |
5 | for in : |
6 | |
7 | |
8 | for in : |
9 | |
10 | if ): |
11 | |
12 | break |
13 | if : |
14 | continue |
15 | |
16 | if not : |
17 | continue |
18 | for in : |
19 | if : |
20 | ) |
21 | if : |
22 | |
23 | if : |
24 | break |
25 | |
26 | , |
27 | return , |
2.4.2. Implementation for Consecutive Plane Segmentation
Algorithm 2 Consecutive Plane Segmentation Algorithm | |
1 | Input: the point cloud and the corresponding normal vectors ; |
2 | Output: segmented plane models and their corresponding inliers |
3 | |
4 | |
5 | |
6 | while : |
7 | |
8 | if : |
9 | break |
10 | , , |
11 | if : |
12 | break |
13 | |
14 | |
15 | |
16 | return , |
3. Weld Seam Extraction
3.1. Intersection Point Calculation
3.2. Vertex Validation
3.3. Edge Convexity Validation
3.4. Algorithm Implementation for WSE
Algorithm 3 WSE Algorithm | |
1 | Input: the point cloud ; the segmented planes and their inliers (each element in is a list of point indices representing the inliers of the corresponding plane). |
2 | Output: list of vertices ; list of binary tuples representing the indices of the points to be connected as weld seams. |
3 | |
4 | |
5 | |
6 | |
7 | for in : |
8 | if not : |
9 | continue |
10 | , , |
11 | if not : |
12 | continue |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | for in : |
20 | , , |
21 | |
22 | if == 2: |
23 | if not in and not in : |
24 | |
25 | |
26 | |
27 | for in : |
28 | if not : |
29 | |
30 | |
31 | |
32 | if < 0: |
33 | |
34 | return , |
4. Experimental Verification
4.1. Experiment Setup
- (1)
- (2)
- All frames of point clouds are merged into one with point cloud registration, where and are the main parameters. The calculation of and is turned into the optimization of the point cloud registration that leads to the minimum registration error, which is further decomposed into axis calibration and center point calibration. The result is recorded in Table 1.
Variable | Result |
---|---|
(mm) |
- (3)
- Point cloud registration is performed on all the point clouds obtained in step (1) with the parameters calculated in step (2), as depicted in Figure 14b.
- (4)
4.2. Experiment for 3D Reconstruction
4.3. Experiment for Plane Segmentation
4.4. Experiment for Weld Seam Extraction
4.5. Discussion
5. Conclusions
- (1)
- By introducing point cloud registration with multiple frames of point clouds captured from a weldment, a three-dimensional reconstruction of the weldment is carried out without knowing the position and posture of the weldment. Due to the universality of this method, it may be applied to most scenarios that require a complete 3D digital twin model.
- (2)
- We propose an improved RANSAC algorithm designed to execute consecutive plane segmentation with remarkable accuracy. This algorithm is adept at handling the plane segmentation of complex spatial planar weldments, a task challenging for conventional similar algorithms. As demonstrated by the experiments, the average errors are reduced by 90.3% to 99.8% over the traditional RANSAC algorithm, and the standard deviations are reduced by 64.8% to 97.0%. This method can also be used in other processing techniques that require obtaining planar features through point clouds.
- (3)
- Additionally, we present a weld seam extraction (WSE) algorithm for multiple weld seam extraction, which calculates all the edges from the segmented planes and selects valid weld seams with vertex validation and edge convexity validation utilizing the half-edge data structure.
- (1)
- This research uses a single-axis turntable to expand the 3D camera’s FOV. When the workpiece shape is particularly complex, there could still be geometric features that are difficult to capture. To further achieve the 3D reconstruction capability, we consider introducing multi-axis turntables as a replacement. The calibration of multi-axis turntables will become a research focus.
- (2)
- The WSE method proposed in this paper approximates the weld seams as the intersection lines of adjacent planes in the workpiece. For the case where welding grooves are to be concerned, further microscopic analysis and modeling of the grooves is required before it is used for robot welding path planning. Also, due to the poor performance of RANSAC (even the improved version proposed in the paper) in identifying narrow and long planes, this method only applies to plate structures with a thickness of more than 2 mm.
- (3)
- To improve the method’s scope of application, our future investigations will center on weldments featuring free surfaces.
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Johan, N.F.; Mohd Shah, H.N.; Sulaiman, M.; Naji, O.A.A.M.; Arshad, M.A. Weld seam feature point extraction using laser and vision sensor. Int. J. Adv. Manuf. Technol. 2023, 127, 5155–5170. [Google Scholar] [CrossRef]
- Muhammad, J.; Altun, H.; Abo-Serie, E. A robust butt welding seam finding technique for intelligent robotic welding system using active laser vision. Int. J. Adv. Manuf. Technol. 2018, 94, 13–29. [Google Scholar] [CrossRef]
- Guo, F.; Zheng, W.; Lian, G.; Yao, M. A V-shaped weld seam measuring system for large workpieces based on image recognition. Int. J. Adv. Manuf. Technol. 2023, 124, 229–243. [Google Scholar] [CrossRef]
- Chen, X.; Ma, Q.; He, Z.; Sun, X.; Ren, Y. Real-time detection and localization method for weld seam of narrow butt joint based on semantic segmentation. Meas. Sci. Technol. 2023, 35, 035205. [Google Scholar] [CrossRef]
- Wang, H.; Chen, C.; Liu, Y.; Ren, B.Q.; Zhang, Y.W.; Zhao, X.H.; Chi, Y.P. A novel approach for robotic welding trajectory recognition based on pseudo-binocular stereo vision. Opt. Laser Technol. 2024, 174, 18. [Google Scholar] [CrossRef]
- Yuankai, Z.; Yong, J.; Xincheng, T.; Xiaolong, X.; Yusen, G.; Min, L. A point cloud-based welding trajectory planning method for plane welds. Int. J. Adv. Manuf. Technol. 2023, 125, 1645–1659. [Google Scholar] [CrossRef]
- Yang, L.; Li, E.; Long, T.; Fan, J.; Liang, Z. A novel 3-D path extraction method for arc welding robot based on stereo structured light sensor. IEEE Sens. J. 2018, 19, 763–773. [Google Scholar] [CrossRef]
- Lu, Z.; Fan, J.; Hou, Z.; Deng, S.; Zhou, C.; Jing, F. Automatic 3D seam extraction method for welding robot based on monocular structured light. IEEE Sens. J. 2021, 21, 16359–16370. [Google Scholar] [CrossRef]
- Zhang, Y.K.; Geng, Y.S.; Tian, X.C.; Zheng, F.Q.; Jiang, Y.; Lai, M. A Feature Extraction Approach Over Workpiece Point Clouds for Robotic Welding. IEEE Trans. Autom. Sci. Eng. 2024, 1–10. [Google Scholar] [CrossRef]
- Wang, H.; Huang, Y.; Zhang, G.; Rong, Y. A novel method for dense point cloud reconstruction and weld seam detection for tubesheet welding robot. Opt. Laser Technol. 2023, 163, 109346. [Google Scholar] [CrossRef]
- Yan, M.; Zhang, K.; Liu, D.; Yang, H.; Li, Z. Autonomous programming and adaptive filling of lap joint based on three-dimensional welding-seam model by laser scanning. J. Manuf. Process. 2020, 53, 396–405. [Google Scholar] [CrossRef]
- Suszyński, M.; Peta, K.; Černohlávek, V.; Svoboda, M. Mechanical Assembly Sequence Determination Using Artificial Neural Networks Based on Selected DFA Rating Factors. Symmetry 2022, 14, 1013. [Google Scholar] [CrossRef]
- Yang, L.; Liu, Y.; Peng, J.; Liang, Z. A novel system for off-line 3D seam extraction and path planning based on point cloud segmentation for arc welding robot. Robot. Comput.-Integr. Manuf. 2020, 64, 101929. [Google Scholar] [CrossRef]
- Geng, Y.; Lai, M.; Tian, X.; Xu, X.; Jiang, Y.; Zhang, Y. A novel seam extraction and path planning method for robotic welding of medium-thickness plate structural parts based on 3D vision. Robot. Comput.-Integr. Manuf. 2023, 79, 102433. [Google Scholar] [CrossRef]
- Bahraini, M.S.; Bozorg, M.; Rad, A.B. SLAM in dynamic environments via ML-RANSAC. Mechatronics 2018, 49, 105–118. [Google Scholar] [CrossRef]
- Giulietti, N.; Allevi, G.; Castellini, P.; Garinei, A.; Martarelli, M. Rivers’ Water Level Assessment Using UAV Photogrammetry and RANSAC Method and the Analysis of Sensitivity to Uncertainty Sources. Sensors 2022, 22, 5319. [Google Scholar] [CrossRef]
- El-Sayed, E.; Abdel-Kader, R.F.; Nashaat, H.; Marei, M. Plane detection in 3D point cloud using octree-balanced density down-sampling and iterative adaptive plane extraction. IET Image Process. 2018, 12, 1595–1605. [Google Scholar] [CrossRef]
- Xing, Y.; Lv, C.; Chen, L.; Wang, H.; Wang, H.; Cao, D.; Velenis, E.; Wang, F.Y. Advances in Vision-Based Lane Detection: Algorithms, Integration, Assessment, and Perspectives on ACP-Based Parallel Vision. IEEE/CAA J. Autom. Sin. 2018, 5, 645–661. [Google Scholar] [CrossRef]
- Hast, A.; Nysjö, J.; Marchetti, A. Optimal RANSAC-towards a repeatable algorithm for finding the optimal set. J. WSCG 2013, 21, 21–30. [Google Scholar]
- Derpanis, K.G. Overview of the RANSAC Algorithm. Image Rochester NY 2010, 4, 2–3. [Google Scholar]
- Berkmann, J.; Caelli, T. Computation of surface geometry and segmentation using covariance techniques. IEEE Trans. Pattern Anal. Mach. Intell. 1994, 16, 1114–1116. [Google Scholar] [CrossRef]
- Rusu, R.B. Semantic 3D object maps for everyday manipulation in human living environments. KI-Künstliche Intell. 2010, 24, 345–348. [Google Scholar] [CrossRef]
- Muller, D.E.; Preparata, F.P. Finding the intersection of two convex polyhedra. Theor. Comput. Sci. 1978, 7, 217–236. [Google Scholar] [CrossRef]
- Yang, B.; Wang, Z.; Xu, Y.; Hu, S.; Fu, J. An SVD-based turntable calibration method with multiple reference planes segmented from point clouds. Meas. Sci. Technol. 2023, 35, 015002. [Google Scholar] [CrossRef]
- Rusu, R.B.; Cousins, S. 3D is here: Point cloud library (PCL). In Proceedings of the 2011 IEEE International Conference on Robotics and Automation, Shanghai, China, 9–13 May 2011; pp. 1–4. [Google Scholar]
Variable | Vanilla RANSAC | Non-Clustering RANSAC | Improved RANSAC (Proposed) | ||
---|---|---|---|---|---|
Value | Value | Comparison * | Value | Comparison * | |
average error (mm) | 0.40 | +42.9% | −74.3% | ||
standard deviation | 0.0030 | +30.4% | −64.8% | ||
execution time (s) | +528% | +246% | |||
correct planes segmented | 0% | 0% | |||
incorrect planes segmented | 0 | 0 | 0% | 0 | 0% |
total points (downsampled) | 0% | 0% | |||
inliers | −3.2% | −3.17% |
Variable | Vanilla RANSAC | Non-Clustering RANSAC | Improved RANSAC (Proposed) | ||
---|---|---|---|---|---|
Value | Value | Comparison | Value | Comparison | |
average error (mm) | +23.5% | −99.7% | |||
standard deviation | +18.2% | −97.0% | |||
execution time (s) | +682% | +55.0% | |||
correct planes segmented | −13.3% | +40% | |||
incorrect planes segmented | 10 | 9 | −10% | 0 | −100% |
total points (downsampled) | 0% | 0% | |||
inliers | −0.33% | −4.3% |
Variable | Vanilla RANSAC | Non-Clustering RANSAC | Improved RANSAC (Proposed) | ||
---|---|---|---|---|---|
Value | Value | Comparison | Value | Comparison | |
average error (mm) | −77.0% | −99.8% | |||
standard deviation | −82.3% | −95% | |||
execution time (s) | +699% | +674% | |||
correct planes segmented | +6.67% | +40% | |||
incorrect planes segmented | 7 | 0 | −100% | 0 | −100% |
total points (downsampled) | 0% | 0% | |||
inliers | −9.94% | −7.81% |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Yang, B.; Wang, Z.; Xu, Y.; Hu, S.; Fu, J. A 3D Vision-Based Weld Seam Extraction Method for Arbitrarily Placed Spatial Planar Weldments. Appl. Sci. 2024, 14, 8493. https://doi.org/10.3390/app14188493
Yang B, Wang Z, Xu Y, Hu S, Fu J. A 3D Vision-Based Weld Seam Extraction Method for Arbitrarily Placed Spatial Planar Weldments. Applied Sciences. 2024; 14(18):8493. https://doi.org/10.3390/app14188493
Chicago/Turabian StyleYang, Bo, Zhengtuo Wang, Yuetong Xu, Songyu Hu, and Jianzhong Fu. 2024. "A 3D Vision-Based Weld Seam Extraction Method for Arbitrarily Placed Spatial Planar Weldments" Applied Sciences 14, no. 18: 8493. https://doi.org/10.3390/app14188493
APA StyleYang, B., Wang, Z., Xu, Y., Hu, S., & Fu, J. (2024). A 3D Vision-Based Weld Seam Extraction Method for Arbitrarily Placed Spatial Planar Weldments. Applied Sciences, 14(18), 8493. https://doi.org/10.3390/app14188493