Next Article in Journal
Students’ Perception of Metaverses for Online Learning in Higher Education: Hype or Hope?
Next Article in Special Issue
Admittance Remodeling Strategy of Grid-Connected Inverter Based on Improving GVF
Previous Article in Journal
Accounting Information Systems as Mediator for Digital Technology and Strategic Performance Interplay
Previous Article in Special Issue
IoT-Based Technologies for Wind Energy Microgrids Management and Control
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Real-Time Detection of Nickel Plated Punched Steel Strip Parameters Based on Improved Circle Fitting Algorithm

1
College of Mathematics and Physics Science, Hunan University of Arts and Science, Changde 415000, China
2
Hunan Provincial Key Laboratory for Control Technology of Distributed Electric Propulsion Aircraft, Changde 415000, China
*
Author to whom correspondence should be addressed.
Submission received: 11 February 2023 / Revised: 8 April 2023 / Accepted: 12 April 2023 / Published: 14 April 2023
(This article belongs to the Special Issue IoT Applications for Renewable Energy Management and Control)

Abstract

:
Nickel-plated punched steel strip is a product obtained by punching holes on the surface of cold-rolled white sheet steel strip and then electrochemical nickel plating. It is necessary to make accurate and fast detection of punching circle parameters, since it is of crucial importance to ensuring the quality of nickel-plated punched steel strips. Accordingly, in this article, an improved circle fitting algorithm of nickel-plated punched steel strip is proposed. Firstly, the least squares fitting is performed to obtain the circle center and radius dataset by iterative algorithm with different values for the initial point positions and intervals. Then, the mean shift algorithm is used to optimize the results after iteration, and the segmented fitted circle centers are all concentrated around the true circle center to obtain the best radius and center coordinates. Finally, comparison experiments with different numbers of circular holes and verification experiments with nickel-plated punched steel strips are carried out. As the results show, the algorithm proposed in this article is more robust than the least squares algorithm in detecting multiple circles and has better real-time performance than the Hough transform. Therefore, it can meet the industrial production needs with high accuracy and real-time requirements, such as nickel-plated punched steel strips.

1. Introduction

Under the goal of “dual carbon” in the world, countries have reduced demand for fossil fuels. The application of clean energy such as electricity is becoming more and more extensive. Electric vehicles are developing rapidly in this context. High-performance power batteries, which store electricity and provide it to motors, are the core components of electric vehicles. Moreover, the performance of the battery determines the comprehensive performance and range of the electric vehicle. Nickel-plated punched steel strip is currently the key basic material for the preparation of high-performance power battery [1,2]. Nickel-plated punched steel strip is usually used as a battery current collector material, and its manufacturing process includes two parts: punching on the surface of cold rolled white steel strip and plating electrochemical nickel. It has good electrical conductivity and corrosion resistance and high-cost performance, suitable for large-scale continuous production. The punching process in the processing of nickel-plated punched steel strip is the key link in the formation of the product. The perforation hole diameter, horizontal hole distance and vertical hole distance are the key technical indicators of the punching system. Due to various reasons, the punched holes may have defects such as blind holes, uneven steps and continuous holes. The industrial site requires real-time and accurate detection of punching circle parameters so that these defects can be checkedin time to ensure product performance and quality.
At present, the site uses manual sampling inspection, but the manual sampling inspection has the problem of low efficiency and easy to miss detection. In addition, manual sampling is not possible during the production process since perforated steel strips are produced continuously in rolls, resulting in quality defects that cannot be detected in time even if they exist. Therefore, accurate and rapid inspection of punching circle parameters is very important to ensure the quality of nickel-plated punched steel strip.
Given the fact that the manual inspection is labor-intensive and of low efficiency and low accuracy, in recent years, automatic surface inspection using machine vision has been applied [3,4,5,6,7,8]. Generally, the defect detection based on machine vision could be regarded as a special object detection task.
Currently, the more widely used methods for detecting circle parameters are Hough transform [9,10,11,12] and least squares fitting method [13,14]. Among them, the Hough transform detects circle parameters by mapping the image space to the parameter space and accumulating the edge points in the parameter space. However, the detection result is obtained from the parameter calculation of the accumulated values, suffering from the problem of time complexity and space complexity. To overcome these problems, the theoretical properties and application methods of the Hough transform have been improved, such as Marco et al. [15] who present a randomized iterative workflow, which exploits geometrical properties of isophotes in the image to select the most meaningful edge pixels and to classify them in subsets of equal isophote curvature. Barbosa et al. [10] present an improvement on the voting process to detect multiple circles using Hough transform to avoid false positives, and the experiments show that the voting process leads to a more robust detection, reducing the number of false positives and providing a more accurate detection even with large number of circles. Another parameter detection method for circles is the least squares fitting method. Although the conventional least squares circle fitting algorithm has excellent results, it is difficult to meet the accuracy requirements because the punched steel strip image studied in this article has more punched circles and high-accuracy requirements. The mean shift algorithm is a density-based nonparametric clustering algorithm [16,17,18], which is widely used in image processing and computer vision technology, such as image denoising, image segmentation, motion tracking, etc. In order to solve this problem and to improve the real-time accuracy of circle fitting as the starting point, an improved algorithm for multi-circle fitting of punched steel strips is proposed in this article.
In summary, the main contributions of this article are given as follows.
(1) There are generally 20–30 punching circles on the image of the punched steel strip studied in this article and using Hough transform tends to cause the parameter space of the circle to become larger and the program to run slower [10,15]. In addition, it would make the real-time needs of the system hard to meet. Hence, an improved circle fitting algorithm based on the least squares method is proposed in this article;
(2) Firstly, the least squares fitting is performed to obtain the circle center and radius dataset by iterative algorithm with different values for the initial point positions and intervals. Then, the mean shift algorithm is used to optimize the results after iteration, and the segmented fitted circle centers are all concentrated around the true circle center to obtain the best radius and center coordinates;
(3) Finally, comparison experiments with a different number of circular holes and verification experiments with nickel-plated punched steel strips are carried out. The proposed method has better performance considering the computational accuracy of the parameters and the real-time performance.
The rest of this article is organized as follows. Section 2 presents improved multi-circle fitting algorithm based on the least squares method of punched steel strip. Section 3 describes the experiments and the analysis of results. Finally, Section 4 presents the conclusions of this study.

2. Improved Multi-Circle Fitting Algorithm Based on the Least Squares Method of Punched Steel Strip

The improved circle fitting algorithm proposed in this article is as follows. Firstly, the acquired punched steel strip images are preprocessed, specifically including median filtering, threshold segmentation, morphological erosion and edge extraction. Secondly, the least squares fitting is performed to obtain the circle center and radius datasets by an iterative algorithm with different values for the initial point locations and intervals. Finally, the mean shift algorithm is used to optimize the iterated results, and the segmented fits are focused on the true circle centers to obtain the best radius and center coordinates.

2.1. Circle Detection and Parameter Iteration

Using the concept that any three points in the plane can determine a unique circle, three points are first selected each time. Due to the extremely high accuracy requirements of this experimental object, the remaining points that are not co-linear are also selected at equal intervals to improve the accuracy of circle detection and make the calculation process simpler. This series of pixel points X i , Y i i ( 1 , 2 , 3 . N ) fall approximately on a circle, then the distance d i from the point in X i , Y i to the center of the circle X 0 , Y 0 is described as follows [12,19,20]:
d i 2 = ( X i X 0 ) 2 + ( Y i Y 0 ) 2
where X i , Y i i ( 1 , 2 , 3 . N ) is the coordinates of the feature point on the arc. N is the number of feature points participating in the fit. The radius of the circle is assumed as r, the optimization objective function of the error squared is defined as follows
S = i = 1 N [ ( X i X 0 ) 2 + ( Y i Y 0 ) 2 r ] 2
An improved method to define the error squared while avoiding the square root, while maintaining this optimized objective function characteristic, is given by the following definition
E = i = 1 N [ ( X i X 0 ) 2 + ( Y i Y 0 ) 2 r 2 ]
Then, expanding Equation (3)
E = i = 1 N ( X i 2 2 X 0 X i + X 0 2 + Y i 2 2 Y i Y 0 + Y 0 2 r 2 )
Let B = 2 Y 0 , A = 2 X 0 , C = X 0 2 + Y 0 2 r 2 , and then bring A, B, C into Equation (4), so we can get Equation (5) as follows:
E = i = 1 N ( X i 2 + Y i 2 + A X i + B Y i + C )
According to the principle of least squares, when E takes a very small value, the coordinates of the center of the fitted circle, the fitted value of the radius r is found as follows:
X 0 = A 2 , Y 0 = B 2 , r = 1 2 A 2 + B 2 4 C
In this article, the iteration is performed by using the values of the iterative variables T and Tb for the initial point position and the fetch interval of the circle fit, respectively.
The specific iterative steps (Algorithm 1) are as follows:
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
  •  Ta = T;
  •  Ta = Ta + Tb;
  •  If the number of Ta < Maximum number of points;
  •  Tb++;
  •  Ta = Ta + Tb;
  •  If the number of Ta < 3;
  •  T++;
  •  Ta = T;
  •  Else Ta performs least squares.
The above iterative algorithm and the least squares method are used to calculate the circular hole parameters of the nickel-plated punched steel strip and obtain the dataset of circle center coordinates and radius, which can effectively eliminate some noise points in the fitting results and improve the robustness of the fitting.

2.2. Mean Shift-Based Parameter Optimization

The centers of the circles fitted by least squares segmentation are concentrated around the true center of the circle. In order to obtain the best radius and center coordinates, the Mean Shift algorithm is used in this article to optimize the results after iteration. The mean shift algorithm is a density-based nonparametric clustering algorithm [16,17], which is calculated by assuming that the dataset containing n objects follows different probability density distributions. First, the initial values of the parameters are determined, including the number of cluster sets and the radius of the high-dimensional region h. Then, for any point x in the cluster set space, the mean shift vector M(x) is derived, defined as follows:
M h ( x ) = 1 / k x i S k ( x i x )
where S k is a high-dimensional region of radius h , the set S k ( x i ) of xi points satisfying the following relation:
S k ( x i ) = x i : ( x i x ) ( x i x ) < h 2
k indicates that in these samples, k landing points fall in the region. x is the starting point. After that, for each point x in the cluster set space is updated and its mean shift vector is calculated as follows:
x : = x + M ( x )
If the value of M(x) is less than a threshold or the number of iterations reaches a certain threshold, the algorithm is stopped. Otherwise, the region is updated using the center of mass of the mean shift vector as the high-dimensional region round point, and the above operation is continued.

2.3. Our Proposed Improved Circle Fitting Algorithm

The specific process of the improved circle fitting algorithm proposed in this article is as follows. Firstly, the acquired punched steel strip images are pre-processed, specifically including median filtering, threshold segmentation, morphological erosion and edge extraction. Then, the least-squares fitting is performed to obtain the circle center and radius dataset by taking different values for the initial point positions and intervals through an iterative algorithm. Finally, the mean shift algorithm is used to optimize the fitted set of circular hole parameters to obtain the circle center and radius parameters. The detailed steps of the algorithm proposed in this article are as shown below.
Step 1: Image preprocessing.
First, the acquired image is smoothed by median filtering, and the Otsu threshold segmentation algorithm is used to segment the target circle from the image background of the punched steel strip image, and the black part is obtained after binarization. Then, the incomplete circle in the boundary area is rejected, and the judgment criterion is to scan the incomplete circle in the boundary area with a circle composed of the calibrated circle center and radius, and get the number of pixels of the scanned circle and the boundary area circle. If the number of overlapping target pixel points is greater than 0.8 of the average circle pixel points, it is judged to be a complete circle, and its circle center coordinates and aperture parameters are recorded; otherwise, it is discarded. See the reference [21] for more image preprocessing details.
Step 2: Using Algorithm 1 in Section 2.1, the circle center parameters and radius of the points taken out at different initial points and different intervals are calculated. After extracting the contour points using contours, each subset Ci obtained is saved, and then the number of segment points count is set, and each point is least-squares fitted once according to count, and finally the group of N center points of a circle {X1, X2, …, Xn} is obtained.
Step 3: Using the mean shift algorithm to find the optimal circle center coordinates and radius for the fitted set of circle hole parameters.
  • 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.
o l d C e n t e r = X i / N
  • 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 E s s is first calculated from the oldCenter and newCenter, and the expression is as follows:
    E s s = D ( o l d C e n t e r , n e w C e n t e r )
    where D denotes the calculation of the Euclidean distance expression, calculated as follows:
    D = ( A x B x ) 2 + ( A y B y ) 2
    where (Ax, Ay), (Bx, By) represent oldCenter, newCenter coordinates, respectively.
    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.
Step 4: Taking the result of the merit search as the center and radius of the current circle.
Step 5: Skipping to step 2, continuing to fit the above algorithm to the group of center points of other circles, finally arriving at all the best center points on the punched steel strip, and drawing all the circles corresponding to the center of the circle.

3. Experiments and Analysis of Results

3.1. Experimental Setups

The punched steel strip surface defect detection system is shown in Figure 1. In order to avoid the impact of surface chromatic aberration and contamination of the material to be tested, the project uses the backlighting method to irradiate the object to be tested. The working process of the system is as follows. Firstly, punching a section of steel strip, when the Programmable Logic Controller (PLC) of the control unit (Siemens S7-226) detects the winding stop signal (external photoelectric switch signal), it starts the image acquisition of the steel strip on the fixed plane. Then, when detecting the punching stop signal (external photoelectric switch signal), it starts the inverter to drive the winding motor for the winding operation, the whole process continuously cycles the winding operation and punching. Finally, the image samples collected are saved and the measured values of the steel strip punching process are calculated and displayed in the software system. The pixel equivalents are X = 0.003826, Y = 0.003826.

3.2. Multi-Circle Parameter Measurement and Performance Comparison

The real-time operation and robustness of the algorithms in this article for multi-circle detection are first tested. MATLAB 2018 (a) programming was used to implement the algorithm of this article, the least squares algorithm and the Hough transform algorithm for multi-circle detection, respectively. A PC with a 2.6 GHZ Intel(R) Core(TM) i7-6498DU CPU and 4 GB RAM was used with a Windows 10 Home Edition platform.
In this article, five images of nickel-plated punched steel strip with different numbers of round holes are used, as shown in Figure 2, where the images with different numbers of round holes are intercepted from the original images of nickel-plated punched steel strip, which can ensure that the parameters of round holes are basically the same.
Firstly, the images of five types of nickel-plated punched steel strip with different numbers of round holes were preprocessed, including median filtering, threshold segmentation, morphological erosion and edge extraction. The median filtering is used to filter out external noise from the factory-acquired image, using a 3 × 3 template and the Otsu threshold segmentation algorithm is used to segment the target circle from the image background of the punched steel strip image, and the black part is obtained after binarization. Then, disc structure elements are selected and morphological corrosion is used to extract the boundary, where the strel parameter is set to se1 = strel (‘disk’, 3).
Then, the proposed method, the least squares algorithm and the Hough transform algorithm were used for multiple circle detection. The time required for multi-circle inspection using the three methods is given in Table 1, and the diameter of the holes obtained using the three different algorithms is given in Table 2. The error curves of the diameter of the holes calculated by the three methods are given in Figure 3, where the absolute error is defined as follows:
Absolute error= |Calculated value − Standard value|
where the standard value of hole diameter is 1.5135 mm. Because there is no standard value for the circular center parameter of the circular hole, no comparison is made in this article.
As can be seen from Table 1, with the increase in the number of circular holes, the running time of all three algorithms increases, but the time increase in the proposed method is smaller. In addition, the real-time performance for multi-circle detection is significantly better than that of the least squares and Hough transform methods. As can be seen from Table 2 and Figure 3, the detection accuracy of our proposed algorithm for circular hole parameters is higher than that of the other two methods. The above results show that the proposed method has high real-time performance and robustness. The reason for this is that the method in this article carries out several iterations based on the good real-time performance of the least squares method, and then the mean shift algorithm is used to optimize the fitted set of circular hole parameters and obtain the center and radius parameters. It not only retains the advantages of the least squares algorithm in terms of good real-time performance, but also improves the disadvantages of the poor robustness of the least squares.

3.3. Parameter Measurement and Result Analysis of 145 Type of Punched Steel Strip

In this article, a nickel-plated punched steel strip of type 180 × 145.6 × 0.09-B (145) is tested. The images of the nickel-plated punched steel strip are shown in Figure 4a, then the median filtering is used to filter out external noise from the factory-acquired image, using a 3 × 3 template.
Figure 4b shows the image after achieving the target circle segmentation of the perforated steel strip image using the Otsu thresholding segmentation algorithm. Figure 4c shows the image after using morphological edge detection, where the strel parameter is set to se1 = strel (‘disk’, 3). Figure 4d shows the fitting results using proposed method, where Ta = 100, Tb = 30, T = 120, the red lines are the fitted circles. It can be clearly seen that the contour of the fitted circle forms a basic match with the round hole of the steel strip, and the center of the circle is marked by the red “+”.
The hole diameter error curve of punched steel strip of No. 145 is shown in Figure 5, where the standard value of hole diameter is 1.963 mm. As shown in Figure 5, comparison curves are given for calculating the hole diameter errors of 145 type of nickel-plated punched steel stripe by three different methods.
To evaluate the accuracy of the fit, we used diameter absolute error, mean diameter deviation AD (r) and diameter deviation variance MSE (r) for fitted round holes and exact round holes.
A D ( r ) = 2 K i = 1 K r i r
M S E ( r ) = 2 K i = 1 K ( r i r ) 2
In the above equation, r is the radius of the circular hole and ri is the estimated circle radius. K is the number of round holes.
The measurement parameters of 145 type of nickel-plated punched steel stripe calculated by three different methods are given in Table 3.
As can be seen from Table 3, the diameter absolute errors calculated by the three methods are within the allowable range of 10 um. As can be seen from the above table, the proposed method has the lowest AD (r) and MSE (r), indicating the superiority of this method.
From the error curve of Figure 5, it can be seen that the diameter error of each circular hole calculated by the three methods varies greatly. However, the diameter error calculated by proposed method is within the allowable range to meet the requirements of the enterprise. In addition, it is not difficult to see that the least squares method has 5 error points that exceed the allowable range, while the Hough transform method has one more error point that exceeds the allowable range. From Table 3, it can be seen that the Hough transform takes the longest time, and the time of proposed method in this article is similar to that of the least squares method. Hence, considering the computational accuracy of the parameters and the real-time performance, this proposed method has better performance.

4. Conclusions

In this article, an improved circle fitting algorithm is proposed and implemented with the following innovations and advantages: (1) The algorithm in this article reduces the impact of noise points on the calculation, the complexity of the algorithm and the requirement of storage space by selecting different numbers of points for calculation several times, as well as improving the real-time performance of the algorithm. (2) The algorithm in this article uses the mean shift algorithm to obtain the optimal solution based on the results of multiple iterations of calculation, which makes the robustness of multi-circle detection significantly improved. Therefore, the algorithm in this article can be used in the multi-circle detection of industrial components with high requirements for real-time and operational accuracy.

Author Contributions

Conceptualization, B.C., J.L., Y.L., X.S. and W.L.; methodology, B.C., J.L., Y.L., X.S. and W.L.; software, B.C. and Y.L.; validation, B.C., Y.L., X.S. and W.L.; formal analysis, B.C., J.L., Y.L., X.S. and W.L.; investigation, B.C., J.L., Y.L., X.S. and W.L.; writing—original draft preparation, B.C., Y.L. and X.S.; writing—review and editing, B.C. and W.L.; visualization, J.L., Y.L. and W.L.; supervision, B.C. and J.L.; funding acquisition, B.C. and J.L. All authors have read and agreed to the published version of the manuscript.

Funding

This article was funded by the National Natural Science Foundation of China (grant no. 62273142), the Hunan Province Natural Science Foundation, China (Grant No. 2021JJ30477) and the science and technology innovation Program of Hunan Province (Grant No. 2021GK2010).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. 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]
  2. Tang, Y.; He, Y.; Zhong, J. A Kind of Perforated Steel Strip for Battery Plate. Chinese Patent CN 2715354Y, 3 August 2005. [Google Scholar]
  3. 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]
  4. 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]
  5. 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]
  6. Kvietkauskas, T.; Stefanovič, P. Influence of Training Parameters on Real-Time Similar Object Detection Using YOLOv5s. Appl. Sci. 2023, 13, 3761. [Google Scholar] [CrossRef]
  7. 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]
  8. 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]
  9. 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]
  10. 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]
  11. 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]
  12. Lin, J.; Shi, Q. Circle Recognition Through a Point Hough Transformation. Comput. Eng. 2003, 29, 17–18. [Google Scholar]
  13. 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]
  14. 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]
  15. 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]
  16. 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]
  17. Yang, J.; Rahardja, S.; Frnti, P. Mean-shift outlier detection and filtering. Pattern Recognit. 2021, 115, 107874. [Google Scholar] [CrossRef]
  18. 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]
  19. 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]
  20. Wei, T.; Liang, B. Iris location based on improved least square fitting. Comput. Age Era. 2016, 6, 75–79. [Google Scholar]
  21. 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]
Figure 1. The diagram of hardware system.
Figure 1. The diagram of hardware system.
Electronics 12 01865 g001
Figure 2. Experimental images of different number of punched circles. (a) The original image of nickel-plated punched steel strip. (b) The image of 6 round holes. (c) The image of 10 round holes. (d) The image of 15 round holes. (e) The image of 17 round holes. (f) The image of 21 round holes.
Figure 2. Experimental images of different number of punched circles. (a) The original image of nickel-plated punched steel strip. (b) The image of 6 round holes. (c) The image of 10 round holes. (d) The image of 15 round holes. (e) The image of 17 round holes. (f) The image of 21 round holes.
Electronics 12 01865 g002aElectronics 12 01865 g002b
Figure 3. The error curve of circular hole diameter for different number of punched circles in Figure 2.
Figure 3. The error curve of circular hole diameter for different number of punched circles in Figure 2.
Electronics 12 01865 g003
Figure 4. The fitting effect of 145 type of punched steel stripe. (a) The image of 145 type of punched steel stripe. (b) The image of 145 type of punched steel strip after global threshold processing. (c) The image after using morphological edge detection. (d) Fitting results after using least squares method.
Figure 4. The fitting effect of 145 type of punched steel stripe. (a) The image of 145 type of punched steel stripe. (b) The image of 145 type of punched steel strip after global threshold processing. (c) The image after using morphological edge detection. (d) Fitting results after using least squares method.
Electronics 12 01865 g004aElectronics 12 01865 g004b
Figure 5. The diameter error curve of 145 type of punched steel strip.
Figure 5. The diameter error curve of 145 type of punched steel strip.
Electronics 12 01865 g005
Table 1. The time to detect multiple circles by different algorithms.
Table 1. The time to detect multiple circles by different algorithms.
MethodsImages
Figure 2bFigure 2cFigure 2dFigure 2eFigure 2f
Least squares method1.3175 1.82812.51562.73443.2656
Hough transform2.6563 3.12504.38135.03445.5781
Proposed method2.0313 2.28132.53132.68752.8281
Table 2. The diameter of the circular hole obtained by different algorithms (mm) lists look like this.
Table 2. The diameter of the circular hole obtained by different algorithms (mm) lists look like this.
MethodsImages
Figure 2bFigure 2cFigure 2dFigure 2eFigure 2f
Least squares method1.5184 1.51871.51691.51631.5167
Hough transform1.51511.51431.51451.51551.5147
Proposed method1.51401.51411.51401.51411.5143
Table 3. The measurement parameters of 145 type of punched steel strip.
Table 3. The measurement parameters of 145 type of punched steel strip.
ParametersAverage Hole Diameter (mm)Diameter Absolute Error (mm)Diameter Deviation Variance (mm)Diameter Deviation Variance MSE (r) (mm2)Running Time (s)
Standard value1.963<10 um///
Proposed method1.96150.00150.0000290.00343.4375
Least squares method1.96140.00160.0000730.016553.3906
Hough transform1.95710.00590.0000660.01547.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.

Share and Cite

MDPI and ACS Style

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://0-doi-org.brum.beds.ac.uk/10.3390/electronics12081865

AMA Style

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://0-doi-org.brum.beds.ac.uk/10.3390/electronics12081865

Chicago/Turabian Style

Cao, 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://0-doi-org.brum.beds.ac.uk/10.3390/electronics12081865

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop