Real-Time Detection of Nickel Plated Punched Steel Strip Parameters Based on Improved Circle Fitting Algorithm
Abstract
:1. Introduction
2. Improved Multi-Circle Fitting Algorithm Based on the Least Squares Method of Punched Steel Strip
2.1. Circle Detection and Parameter Iteration
Algorithm 1. Iterative algorithm |
Input: T, Tb (T is the initial position of the circle fit, and Tb is the interval between the points) Output: Ta
|
2.2. Mean Shift-Based Parameter Optimization
2.3. Our Proposed Improved Circle Fitting Algorithm
- The center of mass of the initial group of centroid points is found, marked as oldCenter, and the value of the mean variable in the mean shift algorithm is replaced by the value of the center of mass, which is calculated as follows, with the oldCenter as the center of the scan set according to the scan radius R set in advance parameters.
- To find the center of mass of the group of circle centers in the scan area, update the scan center and assign its value to the variable newCenter.
- The accuracy is first calculated from the oldCenter and newCenter, and the expression is as follows:If the accuracy does not meet the initial set threshold, continue to execute Step 4, update the value of newCenter, oldCenter with the initial center of mass value remains unchanged, until the initial set accuracy Ess is met.
- Calculating the Euclidean distance between the final center of mass and the other circle centers within the scan radius, finding the circle center with the smallest distance, and drawing the circle corresponding to that center, thus deriving the group of N center points {X1, X2, …, Xn} of a certain circle of the fitted final circle centers.
3. Experiments and Analysis of Results
3.1. Experimental Setups
3.2. Multi-Circle Parameter Measurement and Performance Comparison
3.3. Parameter Measurement and Result Analysis of 145 Type of Punched Steel Strip
4. Conclusions
Author Contributions
Funding
Conflicts of Interest
References
- Li, C. A Study on Electrochemical Machining of Hole-Punched Steel Strip and Processes and Fundamentals of Nickel Electrodeposition. Ph.D. Thesis, Central South University, Changsha, China, 2013. [Google Scholar]
- Tang, Y.; He, Y.; Zhong, J. A Kind of Perforated Steel Strip for Battery Plate. Chinese Patent CN 2715354Y, 3 August 2005. [Google Scholar]
- Padilla, R.; Passos, W.L.; Dias, T.L.B.; Netto, S.L.; da Silva, E.A.B. A comparative analysis of object detection metrics with a companion open-source toolkit. Electronics 2021, 10, 279. [Google Scholar] [CrossRef]
- Xin, M.; Wang, Y. Research on image classification model based on deep convolution neural network. EURASIP J. Image Video Process. 2019, 2019, 40. [Google Scholar] [CrossRef] [Green Version]
- Huang, Z.; Yang, S.; Zhou, M.C.; Gong, Z.; Abusorrah, A.; Lin, C.; Huang, Z. Making accurate object detection at the edge: Review and new approach. Artif. Intell. Rev. 2022, 55, 2245–2274. [Google Scholar] [CrossRef]
- Kvietkauskas, T.; Stefanovič, P. Influence of Training Parameters on Real-Time Similar Object Detection Using YOLOv5s. Appl. Sci. 2023, 13, 3761. [Google Scholar] [CrossRef]
- Andriyanov, N.A.; Dementiev, V.E.; Tashlinskii, A.G. Detection of objects in the images: From likelihood relationships towards scalable and efficient neural networks. Comput. Opt. 2022, 46, 139–159. [Google Scholar] [CrossRef]
- Malekjafarian, A.; Caprani, C.C.; Blacoe, S.; Guo, D.; Malekjafarian, A. Detection of vehicle wheels from images using a pseudo-wavelet filter for analysis of congested traffic. IET Image Process. 2018, 12, 12–20. [Google Scholar]
- Djekoune, A.O.; Messaoudi, K.; Amara, K. Incremental circle hough transform: An improved method for circle detection. Opt.—Int. J. Light Electron Opt. 2017, 133, 17–31. [Google Scholar] [CrossRef]
- Barbosa, W.O.; Vieira, A.W. On the improvement of multiple circles detection from images using hough transform. TEMA 2019, 20, 331–342. [Google Scholar] [CrossRef]
- Gu, Y.; Lu, Y.; Yang, H.; Huo, J. Concentric circle detection method based on minimum enveloping circle and ellipse fitting. In Proceedings of the 2019 IEEE 10th International Conference on Software Engineering and Service Science (ICSESS), Beijing, China, 18–20 October 2019; pp. 523–527. [Google Scholar]
- Lin, J.; Shi, Q. Circle Recognition Through a Point Hough Transformation. Comput. Eng. 2003, 29, 17–18. [Google Scholar]
- Shakarji, C.M.; Srinivasan, V. On Algorithms and Heuristics for Constrained Least-Squares Fitting of Circles and Spheres to Support Standards. J. Comput. Inf. Sci. Eng. 2019, 19, 31011–31012. [Google Scholar] [CrossRef] [Green Version]
- Zhang, J.; Chen, H.; Liu, F. Remote Sensing Image Fusion Based on Multivariate Empirical Mode Decomposition and Weighted Least Squares Filter. Acta Photonica Sin. 2019, 48, 199–210. [Google Scholar]
- De Marco, T.; Cazzato, D.; Leo, M.; Distante, C. Randomized circle detection with isophotes curvature analysis. Pattern Recognit. 2015, 48, 411–421. [Google Scholar] [CrossRef]
- Comaniciu, D.; Meer, P. Mean shift: A Robust Approach Toward Feature Space Analysis. IEEE Trans. Pattern Anal. Mach. Intell. 2002, 24, 603–619. [Google Scholar] [CrossRef] [Green Version]
- Yang, J.; Rahardja, S.; Frnti, P. Mean-shift outlier detection and filtering. Pattern Recognit. 2021, 115, 107874. [Google Scholar] [CrossRef]
- Bahraini, T.; Azimpour, P.; Yazdi, H.S. Modified-mean-shift-based noisy label detection for hyperspectral image classification. Comput. Geosci. 2021, 155, 104843. [Google Scholar] [CrossRef]
- Chaudhuri, D. A simple least squares method for fitting of ellipses and circles depends on border points of a two-tone image and their 3-D extensions. Pattern Recognit. Lett. 2010, 31, 818–829. [Google Scholar] [CrossRef]
- Wei, T.; Liang, B. Iris location based on improved least square fitting. Comput. Age Era. 2016, 6, 75–79. [Google Scholar]
- Yang, L.; Zeng, C.; Zhang, Y. An edge detection method for gray image based on mathematical morphology. Foreign Electron. Meas. Technol. 2012, 31, 27–30. [Google Scholar]
Methods | Images | ||||
---|---|---|---|---|---|
Figure 2b | Figure 2c | Figure 2d | Figure 2e | Figure 2f | |
Least squares method | 1.3175 | 1.8281 | 2.5156 | 2.7344 | 3.2656 |
Hough transform | 2.6563 | 3.1250 | 4.3813 | 5.0344 | 5.5781 |
Proposed method | 2.0313 | 2.2813 | 2.5313 | 2.6875 | 2.8281 |
Methods | Images | ||||
---|---|---|---|---|---|
Figure 2b | Figure 2c | Figure 2d | Figure 2e | Figure 2f | |
Least squares method | 1.5184 | 1.5187 | 1.5169 | 1.5163 | 1.5167 |
Hough transform | 1.5151 | 1.5143 | 1.5145 | 1.5155 | 1.5147 |
Proposed method | 1.5140 | 1.5141 | 1.5140 | 1.5141 | 1.5143 |
Parameters | Average Hole Diameter (mm) | Diameter Absolute Error (mm) | Diameter Deviation Variance (mm) | Diameter Deviation Variance MSE (r) (mm2) | Running Time (s) |
---|---|---|---|---|---|
Standard value | 1.963 | <10 um | / | / | / |
Proposed method | 1.9615 | 0.0015 | 0.000029 | 0.0034 | 3.4375 |
Least squares method | 1.9614 | 0.0016 | 0.000073 | 0.01655 | 3.3906 |
Hough transform | 1.9571 | 0.0059 | 0.000066 | 0.0154 | 7.7154 |
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. |
© 2023 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
Cao, B.; Li, J.; Liang, Y.; Sun, X.; Li, W. Real-Time Detection of Nickel Plated Punched Steel Strip Parameters Based on Improved Circle Fitting Algorithm. Electronics 2023, 12, 1865. https://doi.org/10.3390/electronics12081865
Cao B, Li J, Liang Y, Sun X, Li W. Real-Time Detection of Nickel Plated Punched Steel Strip Parameters Based on Improved Circle Fitting Algorithm. Electronics. 2023; 12(8):1865. https://doi.org/10.3390/electronics12081865
Chicago/Turabian StyleCao, Binfang, Jianqi Li, Yincong Liang, Xuan Sun, and Weihao Li. 2023. "Real-Time Detection of Nickel Plated Punched Steel Strip Parameters Based on Improved Circle Fitting Algorithm" Electronics 12, no. 8: 1865. https://doi.org/10.3390/electronics12081865
APA StyleCao, B., Li, J., Liang, Y., Sun, X., & Li, W. (2023). Real-Time Detection of Nickel Plated Punched Steel Strip Parameters Based on Improved Circle Fitting Algorithm. Electronics, 12(8), 1865. https://doi.org/10.3390/electronics12081865